|
|||||||||
| 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_4
public class Changes10_4
Upgrade test cases for 10.4.
If the old version is 10.4 or later then these tests
will not be run.
10.4 Upgrade issues
| Field Summary |
|---|
| 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_4(java.lang.String name)
|
|
| Method Summary | |
|---|---|
private void |
createTablesForIndexTesting(java.sql.Statement s,
java.lang.String prefix)
Creates tables to test indexes during and after soft and hard upgrades |
private void |
prepareTable()
Generates error messages and stores in a table. |
static junit.framework.Test |
suite(int phase)
Return the suite of tests to test the changes made in 10.4. |
void |
testAlterColumnOfUniqueConstraint()
Tests if alter column works for a column in unique constraint. |
void |
testErrorMessage()
check if error message generated during soft upgrade is same as privious version. |
void |
testIndexes()
Test index created before upgrades to insure their behaviour remains same after soft and hard upgrades. |
private void |
testIndexes(java.sql.Statement s,
java.lang.String tableName,
int val,
boolean nulls,
boolean duplicate)
Tests whether or not indexes are exibiting their expected behaviour. |
void |
testMetaDataQueryRunInSYScompilationSchema()
Check that even though we have set schema to a user schema, the metadata queries get run with compilation schema as SYS. |
void |
testRoutineParameters()
Test that routine parameters and return types are handled correctly with 10.4 creating a procedure in soft-upgrade. 10.4 simplified the stored format of the types by ensuring the catalog type was written. |
void |
testTableFunctionDeclaration()
Check that you must be hard-upgraded to 10.4 or later in order to declare table functions. |
void |
testUniqueConstraint()
Tests Unique constraint in soft and hard upgrade enviornment. |
private void |
verifyError()
Verifies error messages priviously generated. |
| 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 |
| Constructor Detail |
|---|
public Changes10_4(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 testMetaDataQueryRunInSYScompilationSchema()
throws java.sql.SQLException
java.sql.SQLException
public void testTableFunctionDeclaration()
throws java.sql.SQLException
java.sql.SQLException
public void testRoutineParameters()
throws java.sql.SQLException
java.sql.SQLException
private void testIndexes(java.sql.Statement s,
java.lang.String tableName,
int val,
boolean nulls,
boolean duplicate)
throws java.lang.Exception
s - StatementtableName - table name to be used for testingval - value to be used for insertionnulls - if nulls are allowedduplicate - if duplicates are allowed
java.lang.Exception
private void createTablesForIndexTesting(java.sql.Statement s,
java.lang.String prefix)
throws java.lang.Exception
s - Statementprefix - prefix for table names
java.lang.Exception
public void testIndexes()
throws java.lang.Exception
java.lang.Exception
public void testUniqueConstraint()
throws java.sql.SQLException
java.sql.SQLException - at any unexpected failure.
private void verifyError()
throws java.sql.SQLException
java.sql.SQLException
private void prepareTable()
throws java.sql.SQLException
java.sql.SQLException
public void testErrorMessage()
throws java.lang.Exception
java.lang.Exception
public void testAlterColumnOfUniqueConstraint()
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 | ||||||||