Package docking.widgets.table.threaded
Class ThreadedTableTest
- java.lang.Object
-
- generic.test.AbstractGTest
-
- generic.test.AbstractGenericTest
-
- docking.test.AbstractDockingTest
-
- docking.widgets.table.threaded.AbstractThreadedTableTest
-
- docking.widgets.table.threaded.ThreadedTableTest
-
public class ThreadedTableTest extends AbstractThreadedTableTest
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class generic.test.AbstractGenericTest
AbstractGenericTest.ExceptionHandlingRunner
-
-
Field Summary
-
Fields inherited from class docking.widgets.table.threaded.AbstractThreadedTableTest
frame, header, isDisposing, model, table, testTableModelListener, threadedTablePanel
-
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 ThreadedTableTest()
-
Method Summary
-
Methods inherited from class docking.widgets.table.threaded.AbstractThreadedTableTest
addItemToModel, addLong, assertNoRowsFilteredOut, buildFrame, compareValues, createListener, dispose, getSortState, removeItemFromModel, sortByNormalClicking, tearDown, triggerModelFilter, verifyColumnSorted, verifySortDirection, waitForNotBusy
-
Methods inherited from class docking.test.AbstractDockingTest
assertEnabled, assertToggleButtonSelected, capture, checkMessageDisplay, clickComponentProvider, clickComponentProvider, close, close, closeAllWindows, closeAllWindows, closeAllWindowsAndFrames, closeProvider, closeSaveChangesDialog, createApplicationConfiguration, createApplicationLayout, createRenderedImage, createScreenImage, disposeErrorGUI, dockingSetUp, dockingTearDown, expandPath, expandTree, findButtonByActionName, findButtonByIcon, findButtonByText, findComponent, findComponentByName, getAction, getAction, getActions, getClipboardText, getComponentProvider, getDialogComponent, getDialogComponentProvider, getDockableComponent, getNode, getOpenWindowsAsString, getStatusText, getTitleForWindow, getWindow, getWindowByTitle, getWindowByTitleContaining, getWindows, isEnabled, isEnabled, isSelected, isUseErrorGUI, performAction, performAction, performAction, performAction, performDialogAction, pressButtonByText, pressButtonByText, printOpenWindows, selectPath, selectTabIfAvailable, setErrorGUIEnabled, setErrorsExpected, setToggleActionSelected, setToggleActionSelected, setToggleButtonSelected, setToggleButtonSelected, showProvider, triggerActionKey, triggerActionKey, triggerBackspaceKey, triggerEnter, triggerEscapeKey, triggerKey, triggerKey, triggerText, triggerText, waitForComponentProvider, waitForComponentProvider, waitForDialogComponent, waitForDialogComponent, waitForDialogComponent, waitForJDialog, waitForJDialog, waitForTableModel, waitForTree, waitForUpdateOnChooser, waitForWindow, waitForWindow, waitForWindow, waitForWindow, waitForWindowByName, waitForWindowByTitleContaining, waitForWindowByTitleContaining, writeImage, writeImage
-
Methods inherited from class generic.test.AbstractGenericTest
clickMouse, clickMouse, clickTableCell, 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, 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
- Overrides:
setUp
in classAbstractThreadedTableTest
- Throws:
java.lang.Exception
-
testFailed
protected void testFailed(java.lang.Throwable e)
Description copied from class:AbstractGenericTest
A callback for subclasses when a test has failed. This will be called beforetearDown()
- Overrides:
testFailed
in classAbstractGenericTest
- Parameters:
e
- the exception that happened when the test failed
-
createTestModel
protected TestDataKeyModel createTestModel()
- Specified by:
createTestModel
in classAbstractThreadedTableTest
-
testSortingWorksOnFilteredData
public void testSortingWorksOnFilteredData() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testSortingAfterClearingFilter
public void testSortingAfterClearingFilter() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testSortingAfterFilteringGetsCorrectlyRestored
public void testSortingAfterFilteringGetsCorrectlyRestored() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testSortingDoesNotRefilter
public void testSortingDoesNotRefilter() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testRefilterHappensAfterAddRemove
public void testRefilterHappensAfterAddRemove() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testRefilterHappensAfterReload
public void testRefilterHappensAfterReload() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testRefilterWhenDataChangedInternally
public void testRefilterWhenDataChangedInternally() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testAddRemove_NoFilter
public void testAddRemove_NoFilter() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testAdd_WithFilter
public void testAdd_WithFilter() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testRemove_WithFilter
public void testRemove_WithFilter() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testAddSendsEvent
public void testAddSendsEvent()
-
testRemoveSendsEvent
public void testRemoveSendsEvent()
-
testMultipleSorting
public void testMultipleSorting() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testSortingBytes
public void testSortingBytes() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testSortingShorts
public void testSortingShorts() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testSortingInts
public void testSortingInts() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testSortingLong
public void testSortingLong() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testSortingFloats
public void testSortingFloats() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testSortingDoubles
public void testSortingDoubles() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testSortingStrings
public void testSortingStrings() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testAutoLookupOnStringColumn
public void testAutoLookupOnStringColumn() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testDefaultSortColumn
public void testDefaultSortColumn() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testCSV
public void testCSV() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testShowPending
public void testShowPending() throws java.lang.Exception
- Throws:
java.lang.Exception
-
sortByClick
protected void sortByClick(int columnToClick, int modifiers) throws java.lang.Exception
- Overrides:
sortByClick
in classAbstractThreadedTableTest
- Throws:
java.lang.Exception
-
removeSortByClicking
protected void removeSortByClicking(int columnToClick) throws java.lang.Exception
- Overrides:
removeSortByClicking
in classAbstractThreadedTableTest
- Throws:
java.lang.Exception
-
assertRowCount
protected void assertRowCount(int n)
- Overrides:
assertRowCount
in classAbstractThreadedTableTest
-
doTestSorting
protected void doTestSorting(int columnIndex) throws java.lang.Exception
- Overrides:
doTestSorting
in classAbstractThreadedTableTest
- Throws:
java.lang.Exception
-
-