|
|||||||||
| 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.BasicSetup
public class BasicSetup
Basic fixtures and setup for the upgrade test, not tied to any specific release.
| 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 | |
|---|---|
BasicSetup(java.lang.String name)
|
|
| Method Summary | |
|---|---|
void |
noConnectionAfterHardUpgrade()
Ensure that after hard upgrade (with the old version) we can no longer connect to the database. |
static junit.framework.Test |
suite()
|
void |
testCreateTable()
Make sure table created in soft upgrade mode can be accessed after shutdown. |
void |
testDML()
Test general DML. |
void |
testIndex()
Test table with index can be read after shutdown DERBY-2931 |
void |
testOldVersion()
Simple test of the old version from the meta data. |
| 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 BasicSetup(java.lang.String name)
| Method Detail |
|---|
public static junit.framework.Test suite()
public void testOldVersion()
throws java.sql.SQLException
java.sql.SQLException
public void testDML()
throws java.sql.SQLException
java.sql.SQLException
public void testCreateTable()
throws java.sql.SQLException
java.sql.SQLException
public void testIndex()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void noConnectionAfterHardUpgrade()
|
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 | ||||||||