Package docking.widgets.table.threaded
Class IncrementalThreadedTableTest
- java.lang.Object
-
- generic.test.AbstractGTest
-
- generic.test.AbstractGenericTest
-
- docking.test.AbstractDockingTest
-
- docking.widgets.table.threaded.AbstractThreadedTableTest
-
- docking.widgets.table.threaded.IncrementalThreadedTableTest
-
public class IncrementalThreadedTableTest 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 IncrementalThreadedTableTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TestThreadedTableModelListenercreateListener()protected TestDataKeyModelcreateTestModel()voidsetUp()voidtestCancel()voidtestExceptionWhileLoading()protected voidtestFailed(java.lang.Throwable e)A callback for subclasses when a test has failed.voidtestFilter_FilterDuringDataLoad()voidtestFilter_FilterSetAfterDataLoad()voidtestFilter_FilterSetBeforeDataLoad()voidtestIncrementalLoadingShowsResultsBeforeFinished()voidtestNoShowPendingWhileLoading()voidtestReload()voidtestSelectionRestoringAsIncrementalUpdatesArrive()voidtestSortingBytes()voidtestSortingDoubles()voidtestSortingFloats()voidtestSortingInts()voidtestSortingLong()voidtestSortingShorts()protected voidwaitForNotBusy()-
Methods inherited from class docking.widgets.table.threaded.AbstractThreadedTableTest
addItemToModel, addLong, assertNoRowsFilteredOut, assertRowCount, buildFrame, compareValues, dispose, doTestSorting, getSortState, removeItemFromModel, removeSortByClicking, sortByClick, sortByNormalClicking, tearDown, triggerModelFilter, verifyColumnSorted, verifySortDirection
-
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:
setUpin classAbstractThreadedTableTest- Throws:
java.lang.Exception
-
testFailed
protected void testFailed(java.lang.Throwable e)
Description copied from class:AbstractGenericTestA callback for subclasses when a test has failed. This will be called beforetearDown()- Overrides:
testFailedin classAbstractGenericTest- Parameters:
e- the exception that happened when the test failed
-
createTestModel
protected TestDataKeyModel createTestModel()
- Specified by:
createTestModelin classAbstractThreadedTableTest
-
createListener
protected TestThreadedTableModelListener createListener()
- Overrides:
createListenerin classAbstractThreadedTableTest
-
testIncrementalLoadingShowsResultsBeforeFinished
public void testIncrementalLoadingShowsResultsBeforeFinished() throws java.lang.Exception- Throws:
java.lang.Exception
-
testReload
public void testReload() throws java.lang.Exception- Throws:
java.lang.Exception
-
testCancel
public void testCancel() throws java.lang.Exception- Throws:
java.lang.Exception
-
testNoShowPendingWhileLoading
public void testNoShowPendingWhileLoading() throws java.lang.Exception- Throws:
java.lang.Exception
-
testExceptionWhileLoading
public void testExceptionWhileLoading() 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
-
testFilter_FilterSetBeforeDataLoad
public void testFilter_FilterSetBeforeDataLoad() throws java.lang.Exception- Throws:
java.lang.Exception
-
testFilter_FilterDuringDataLoad
public void testFilter_FilterDuringDataLoad() throws java.lang.Exception- Throws:
java.lang.Exception
-
testFilter_FilterSetAfterDataLoad
public void testFilter_FilterSetAfterDataLoad() throws java.lang.Exception- Throws:
java.lang.Exception
-
testSelectionRestoringAsIncrementalUpdatesArrive
public void testSelectionRestoringAsIncrementalUpdatesArrive() throws java.lang.Exception- Throws:
java.lang.Exception
-
waitForNotBusy
protected void waitForNotBusy()
- Overrides:
waitForNotBusyin classAbstractThreadedTableTest
-
-