|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.derbyTesting.junit.BaseTestCase
org.apache.derbyTesting.junit.BaseJDBCTestCase
org.apache.derbyTesting.functionTests.tests.upgradeTests.UpgradeChange
org.apache.derbyTesting.functionTests.tests.upgradeTests.Changes10_6
public class Changes10_6
Upgrade test cases for 10.6.
If the old version is 10.6 or later then these tests
will not be run.
10.6 Upgrade issues
| Field Summary | |
|---|---|
private static java.lang.String |
BAD_SYNTAX
|
private static java.lang.String |
CREATE_TYPE_DDL
|
private static java.lang.String |
DROP_TYPE_DDL
|
private static java.lang.String |
QUERY_4215
|
private static java.lang.String |
TABLE_DOES_NOT_EXIST
|
private static java.lang.String |
UPGRADE_REQUIRED
|
| Fields inherited from class org.apache.derbyTesting.functionTests.tests.upgradeTests.UpgradeChange |
|---|
oldVersion, PH_CREATE, PH_HARD_UPGRADE, PH_POST_HARD_UPGRADE, PH_POST_SOFT_UPGRADE, PH_SOFT_UPGRADE, phase, PHASES, SQLSTATE_NEED_UPGRADE |
| Fields inherited from class org.apache.derbyTesting.junit.BaseTestCase |
|---|
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE |
| Constructor Summary | |
|---|---|
Changes10_6(java.lang.String name)
|
|
| Method Summary | |
|---|---|
private int |
getJDBCTypeId(java.lang.Object typeDescriptor)
|
private int |
getMaximumWidth(java.lang.Object typeDescriptor)
|
private java.lang.Object |
getTypeDescriptor(java.lang.Object routineAliasDescriptor)
We would like to just cast the alias descriptor to RoutineAliasDescriptor. |
static junit.framework.Test |
suite(int phase)
Return the suite of tests to test the changes made in 10.6. |
void |
testCLOBGETSUBSTRING()
Make sure that SYSIBM.CLOBGETSUBSTRING has the correct return value. |
void |
testSetXplainStyleProcedure()
Make sure that SYSCS_UTIL.SYSCS_SET_XPLAIN_STYLE can only be run in Derby 10.5 and higher. |
void |
testSYSCS_INPLACE_COMPRESS_TABLE()
Make sure that SYSCS_UTIL.SYSCS_INPLACE_COMPRESS_TABLE has the correct permissons granted to it. |
void |
testUDTs()
Make sure that you can only create UDTs in a hard-upgraded database. |
private void |
vetDERBY_4215(java.sql.Statement s)
Vet the permissions on SYSCS_UTIL.SYSCS_INPLACE_COMPRESS_TABLE. |
| Methods inherited from class org.apache.derbyTesting.functionTests.tests.upgradeTests.UpgradeChange |
|---|
getOldMajor, getOldMinor, getPhase, oldAtLeast, oldIs |
| Methods inherited from class org.apache.derbyTesting.junit.BaseTestCase |
|---|
alarm, assertEquals, assertEquals, assertEquals, assertExecJavaCmdAsExpected, assertSecurityManager, assertThrowableEquals, execJavaCmd, fail, getFailureFolder, getJavaExecutableName, getSystemProperty, getTestConfiguration, getTestResource, openTestResource, println, printStackTrace, readProcessOutput, removeDirectory, removeDirectory, removeSystemProperty, runBare, setSystemProperty, traceit |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runTest, setName, setUp, toString |
| Methods inherited from class junit.framework.Assert |
|---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final java.lang.String BAD_SYNTAX
private static final java.lang.String TABLE_DOES_NOT_EXIST
private static final java.lang.String UPGRADE_REQUIRED
private static final java.lang.String QUERY_4215
private static final java.lang.String CREATE_TYPE_DDL
private static final java.lang.String DROP_TYPE_DDL
| Constructor Detail |
|---|
public Changes10_6(java.lang.String name)
| Method Detail |
|---|
public static junit.framework.Test suite(int phase)
phase - an integer that indicates the current phase in
the upgrade test.
public void testSetXplainStyleProcedure()
throws java.sql.SQLException
java.sql.SQLException
public void testCLOBGETSUBSTRING()
throws java.lang.Exception
java.lang.Exception
public void testSYSCS_INPLACE_COMPRESS_TABLE()
throws java.lang.Exception
java.lang.Exception
private void vetDERBY_4215(java.sql.Statement s)
throws java.lang.Exception
java.lang.Exception
public void testUDTs()
throws java.lang.Exception
java.lang.Exception
private java.lang.Object getTypeDescriptor(java.lang.Object routineAliasDescriptor)
throws java.lang.Exception
java.lang.Exception
private int getJDBCTypeId(java.lang.Object typeDescriptor)
throws java.lang.Exception
java.lang.Exception
private int getMaximumWidth(java.lang.Object typeDescriptor)
throws java.lang.Exception
java.lang.Exception
|
Built on Sat 2009-11-28 18:44:18-0800, from revision 885187 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||