|
|||||||||
| 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_5
public class Changes10_5
Upgrade test cases for 10.5.
If the old version is 10.5 or later then these tests
will not be run.
10.5 Upgrade issues
| Field Summary | |
|---|---|
private static java.lang.String |
BAD_SYNTAX
|
| 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_5(java.lang.String name)
|
|
| Method Summary | |
|---|---|
private void |
possibleError(java.lang.String sqlstate,
java.lang.String text)
Run a statement. |
static junit.framework.Test |
suite(int phase)
Return the suite of tests to test the changes made in 10.5. |
void |
testDeterminismKeyword()
Test that the DETERMINISTIC keyword is not allowed until you hard-upgrade to 10.5. |
void |
testGenerationClauses()
Test that generation clauses are not allowed until you hard-upgrade to 10.5. |
void |
testSQLRoles()
Check that when hard-upgraded to 10.5 or later SQL roles can be declared if DB has sqlAuthorization. |
void |
testSQLRolesBasic()
Check that you must be hard-upgraded to 10.5 or later in order to use SQL roles |
void |
testUpdateStatisticsProcdure()
Make sure that SYSCS_UTIL.SYSCS_UPDATE_STATISTICS can only be run in Derby 10.5 and higher. |
| 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
| Constructor Detail |
|---|
public Changes10_5(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 testUpdateStatisticsProcdure()
throws java.sql.SQLException
java.sql.SQLException
public void testDeterminismKeyword()
throws java.sql.SQLException
java.sql.SQLException
public void testGenerationClauses()
throws java.sql.SQLException
java.sql.SQLException
private void possibleError(java.lang.String sqlstate,
java.lang.String text)
throws java.sql.SQLException
Run a statement. If the sqlstate is not null, then we expect that error.
java.sql.SQLException
public void testSQLRolesBasic()
throws java.sql.SQLException
java.sql.SQLException
public void testSQLRoles()
throws java.sql.SQLException
java.sql.SQLException
|
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 | ||||||||