Package db
Class DBTest
- java.lang.Object
-
public class DBTest extends AbstractGenericTest
Test the creation of a new database with indexed and non-indexed tables. Tests include the removal of tables and are performed for both a stored and non-stored database.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class generic.test.AbstractGenericTest
AbstractGenericTest.ExceptionHandlingRunner
-
-
Field Summary
-
Fields inherited from class generic.test.AbstractGenericTest
concurrentTestExceptionRule, DEFAULT_TEST_TOOL_NAME, ruleChain, TESTDATA_DIRECTORY_NAME, watchman
-
Fields inherited from class generic.test.AbstractGTest
BATCH_MODE, DEFAULT_WAIT_DELAY, DEFAULT_WAIT_TIMEOUT, DEFAULT_WINDOW_TIMEOUT, PARALLEL_MODE, PRIVATE_LONG_WAIT_TIMEOUT, testName
-
-
Constructor Summary
Constructors Constructor Description DBTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setUp()
void
tearDown()
void
testCreateDatabase()
void
testCreateDatabaseCopies()
void
testCreateExistingDatabase()
void
testCreateLongKeyTable()
void
testCreateVarKeyTable()
void
testIndexedTables()
void
testLargeMasterTable()
void
testMasterTableUndo()
void
testNonIndexedTables()
void
testOpenForReadOnlyDuringUpdate()
void
testRemoveIndexedTables()
void
testRemoveNonIndexedTables()
void
testStoredCreateLongKeyTable()
void
testStoredCreateVarKeyTable()
void
testStoredIndexedTables()
void
testStoredLargeMasterTable()
void
testStoredNonIndexedTables()
void
testStoredRemoveIndexedTables()
void
testStoredRemoveNonIndexedTables()
void
testTableWithIndexRecreateUndo()
-
Methods inherited from class generic.test.AbstractGenericTest
clickMouse, clickMouse, clickTableCell, createApplicationConfiguration, createApplicationLayout, createStackTraceForAllThreads, createTempDirectory, createTempFile, createTempFile, createTempFileForTest, createTempFileForTest, createTempFilePath, createTempFilePath, deleteMatchingTempFiles, deleteSimilarTempFiles, doubleClick, dragMouse, editCell, executeOnSwingWithoutBlocking, findAbstractButtonByName, findAbstractButtonByText, findButtonByIcon, findButtonByText, findComponent, findComponent, findComponentByName, findComponentByName, findComponentsByName, findOwnedWindows, findPathToText, findTestDataFile, findTreePathToText, fixupGUI, getAllWindows, getDebugFileDirectory, getInstanceField, getInstanceFieldByClassType, getLocalResourceFile, getTestDataDir, getTestDataDirectory, getTestDataFile, getText, hasTestFailed, initializeLayout, initializeSystemProperties, invokeConstructor, invokeInstanceMethod, invokeInstanceMethod, leftClick, loadTextResource, loadTextResource, middleClick, moveMouse, postEvent, pressButton, pressButton, pressButtonByName, pressButtonByName, pressButtonByText, pressButtonByText, printMemory, privateWaitForPostedSwingRunnables_SwingSafe, rightClick, runSwing, runSwing, runSwing, setComboBoxSelection, setInstanceField, setText, testFailed, toString, waitForPostedSwingRunnables, waitForSwing, waitForTasks, windowForComponent, yieldToSwing
-
Methods inherited from class generic.test.AbstractGTest
assertArraysEqualOrdered, assertArraysEqualUnordered, assertArraysEqualUnordered, assertContainsExactly, assertContainsExactly, assertListEqualOrdered, assertListEqualOrdered, assertListEqualsArrayOrdered, assertListEqualsArrayUnordered, assertListEqualUnordered, failWithException, getName, getRandomInt, getRandomInt, getRandomString, getRandomString, getTestDirectoryPath, sleep, waitFor, waitFor, waitFor, waitForCondition, waitForCondition, waitForConditionWithoutFailing, waitForValue, waitForValueWithoutFailing
-
-
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception
- Throws:
java.lang.Exception
-
tearDown
public void tearDown() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testCreateDatabase
public void testCreateDatabase()
-
testCreateExistingDatabase
public void testCreateExistingDatabase() throws java.io.IOException
- Throws:
java.io.IOException
-
testCreateDatabaseCopies
public void testCreateDatabaseCopies() throws java.io.IOException
- Throws:
java.io.IOException
-
testOpenForReadOnlyDuringUpdate
public void testOpenForReadOnlyDuringUpdate() throws java.io.IOException
- Throws:
java.io.IOException
-
testCreateLongKeyTable
public void testCreateLongKeyTable() throws java.io.IOException
- Throws:
java.io.IOException
-
testCreateVarKeyTable
public void testCreateVarKeyTable() throws java.io.IOException
- Throws:
java.io.IOException
-
testStoredCreateLongKeyTable
public void testStoredCreateLongKeyTable() throws java.io.IOException
- Throws:
java.io.IOException
-
testStoredCreateVarKeyTable
public void testStoredCreateVarKeyTable() throws java.io.IOException
- Throws:
java.io.IOException
-
testNonIndexedTables
public void testNonIndexedTables() throws java.io.IOException
- Throws:
java.io.IOException
-
testStoredNonIndexedTables
public void testStoredNonIndexedTables() throws java.io.IOException
- Throws:
java.io.IOException
-
testIndexedTables
public void testIndexedTables() throws java.io.IOException
- Throws:
java.io.IOException
-
testStoredIndexedTables
public void testStoredIndexedTables() throws java.io.IOException
- Throws:
java.io.IOException
-
testRemoveNonIndexedTables
public void testRemoveNonIndexedTables() throws java.io.IOException
- Throws:
java.io.IOException
-
testStoredRemoveNonIndexedTables
public void testStoredRemoveNonIndexedTables() throws java.io.IOException
- Throws:
java.io.IOException
-
testRemoveIndexedTables
public void testRemoveIndexedTables() throws java.io.IOException
- Throws:
java.io.IOException
-
testStoredRemoveIndexedTables
public void testStoredRemoveIndexedTables() throws java.io.IOException
- Throws:
java.io.IOException
-
testLargeMasterTable
public void testLargeMasterTable() throws java.io.IOException
- Throws:
java.io.IOException
-
testStoredLargeMasterTable
public void testStoredLargeMasterTable() throws java.io.IOException
- Throws:
java.io.IOException
-
testMasterTableUndo
public void testMasterTableUndo() throws java.io.IOException
- Throws:
java.io.IOException
-
testTableWithIndexRecreateUndo
public void testTableWithIndexRecreateUndo() throws java.io.IOException
- Throws:
java.io.IOException
-
-