public class Changes10_3 extends UpgradeChange
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
UNKNOWN_PROCEDURE |
oldVersion, PH_CREATE, PH_HARD_UPGRADE, PH_POST_HARD_UPGRADE, PH_POST_SOFT_UPGRADE, PH_SOFT_UPGRADE, phase, PHASES, SQLSTATE_NEED_UPGRADEDEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE| Constructor and Description |
|---|
Changes10_3(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
private void |
assertPolicyReloaderDoesNotExist()
Verify whether the policy-reloading procedure exists.
|
private void |
assertPolicyReloaderExists()
Verify that the policy-reloading procedure exists.
|
private void |
checkDataToCase606(int start_value,
int end_value) |
private void |
checkNewHeap(java.lang.String tableName,
java.lang.String value)
Check if we can open the heap.
|
static junit.framework.Test |
suite(int phase)
Return the suite of tests to test the changes made in 10.3.
|
void |
testCompilationSchema()
Verify the compilation schema is nullable after upgrade to 10.3
or later.
|
void |
testImportExportLobsProcedures()
Simple test to ensure new import/export procedures added in 10.3
are working on hard upgrade to 10.3 from previous derby versions.
|
void |
testNegValueSupportedLogRecord()
In 10.3: We will write a LogRecord with a different format
that can also write negative values.
|
void |
testNewHeap()
Test that new format id for Heap is not used in soft upgrade.
|
void |
testPolicyReloadingProcedure()
Ensure that the new policy-file-reloading procedure works after
hard upgrade to 10.3 from previous derby versions.
|
private void |
tryReloading(boolean shouldSucceed,
java.lang.String expectedSQLState)
Call the policy reloading procedure.
|
getOldFixPack, getOldMajor, getOldMinor, getOldPoint, getOldVersion, getOldVersionString, getPhase, getPhaseString, oldAtLeast, oldIs, oldIs, oldLessThanassertCallError, assertCheckTable, assertCompileError, assertEquals, assertEquals, assertEquals, assertEquivalentDataType, assertErrorCode, assertGetIntError, assertNextError, assertPreparedStatementError, assertSQLExceptionEquals, assertSQLState, assertSQLState, assertStatementError, assertStatementError, assertStatementError, assertStatementError, assertStatementErrorUnordered, assertTableRowCount, assertUpdateCount, assertUpdateCount, assertWarning, checkAllConsistency, checkEstimatedRowCount, closeStatement, commit, createStatement, createStatement, createStatement, dropTable, dropTable, dropView, dropView, emptyStatementCache, getClientTransactionID, getConnection, getDatabaseProperty, getLastSQLException, initializeConnection, openConnection, openDefaultConnection, openDefaultConnection, openDefaultConnection, openUserConnection, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, rollback, runBare, runBareOverridable, runScript, runScript, runSQLCommands, setAutoCommit, tearDown, usingDB2Client, usingDerbyNetClient, usingEmbeddedalarm, assertDirectoryDeleted, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertExecJavaCmdAsExpected, assertLaunchedJUnitTestMethod, assertLaunchedJUnitTestMethod, assertSecurityManager, assertThrowableEquals, currentDirectory, execJavaCmd, execJavaCmd, fail, getClassVersionMajor, getEmmaJar, getFailureFolder, getFilesWith, getJavaExecutableName, getSystemProperty, getTestConfiguration, getTestResource, hasInterruptibleIO, isCVM, isIBMJVM, isJ9Platform, isJava5, isJava7, isJava8, isPhoneME, isPlatform, isSunJVM, isWindowsPlatform, openTestResource, println, printStackTrace, readProcessOutput, removeDirectory, removeDirectory, removeFiles, removeSystemProperty, runsWithEmma, runsWithJaCoCo, setSystemProperty, sleep, sleepAtLeastOneTick, traceitassertEquals, 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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runTest, setName, setUp, toStringprivate static final java.lang.String UNKNOWN_PROCEDURE
public static junit.framework.Test suite(int phase)
phase - an integer that indicates the current phase in
the upgrade test.public void testCompilationSchema()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testNegValueSupportedLogRecord()
throws java.sql.SQLException
java.sql.SQLExceptionprivate void checkDataToCase606(int start_value,
int end_value)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testImportExportLobsProcedures()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void testPolicyReloadingProcedure()
throws java.sql.SQLException
java.sql.SQLExceptionprivate void assertPolicyReloaderExists()
throws java.sql.SQLException
java.sql.SQLExceptionprivate void assertPolicyReloaderDoesNotExist()
throws java.sql.SQLException
java.sql.SQLExceptionprivate void tryReloading(boolean shouldSucceed,
java.lang.String expectedSQLState)
throws java.sql.SQLException
java.sql.SQLExceptionprivate void checkNewHeap(java.lang.String tableName,
java.lang.String value)
throws java.sql.SQLException
This test just does a simple select to verify that 10.3 heap conglomerate format id's are working right for all the various upgrade scenarios.
java.sql.SQLExceptionpublic void testNewHeap()
throws java.sql.SQLException
java.sql.SQLExceptionApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.