Package docking.widgets.table.threaded
Class AbstractThreadedTableTest
- java.lang.Object
-
- generic.test.AbstractGTest
-
- generic.test.AbstractGenericTest
-
- docking.test.AbstractDockingTest
-
- docking.widgets.table.threaded.AbstractThreadedTableTest
-
- Direct Known Subclasses:
IncrementalThreadedTableTest,ThreadedTableFilterTest,ThreadedTableTest
public abstract class AbstractThreadedTableTest extends AbstractDockingTest
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class generic.test.AbstractGenericTest
AbstractGenericTest.ExceptionHandlingRunner
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.swing.JFrameframeprotected javax.swing.table.JTableHeaderheaderprotected booleanisDisposingprotected TestDataKeyModelmodelprotected GTabletableprotected TestThreadedTableModelListenertestTableModelListenerprotected GThreadedTablePanel<java.lang.Long>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 AbstractThreadedTableTest()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidaddItemToModel(long value)protected voidaddLong(long value)protected voidassertNoRowsFilteredOut()protected voidassertRowCount(int expectedCount)protected voidbuildFrame()protected intcompareValues(java.lang.Comparable comp1, java.lang.Comparable comp2)protected TestThreadedTableModelListenercreateListener()protected abstract TestDataKeyModelcreateTestModel()protected voiddispose()protected voiddoTestSorting(int columnIndex)protected TableSortStategetSortState(SortedTableModel sortedModel)protected voidremoveItemFromModel(int value)protected voidremoveSortByClicking(int columnToClick)voidsetUp()protected voidsortByClick(int columnToClick, int modifiers)protected voidsortByNormalClicking(int columnToClick)voidtearDown()protected voidtriggerModelFilter()protected voidverifyColumnSorted(int sortedIndex, TableSortState sortState)protected voidverifySortDirection(int columnIndex, SortedTableModel sortedModel)protected voidwaitForNotBusy()-
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, 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
-
-
-
-
Field Detail
-
model
protected TestDataKeyModel model
-
table
protected GTable table
-
header
protected javax.swing.table.JTableHeader header
-
frame
protected javax.swing.JFrame frame
-
testTableModelListener
protected TestThreadedTableModelListener testTableModelListener
-
threadedTablePanel
protected GThreadedTablePanel<java.lang.Long> threadedTablePanel
-
isDisposing
protected volatile boolean isDisposing
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception- Throws:
java.lang.Exception
-
createTestModel
protected abstract TestDataKeyModel createTestModel()
-
createListener
protected TestThreadedTableModelListener createListener()
-
tearDown
public void tearDown() throws java.lang.Exception- Throws:
java.lang.Exception
-
buildFrame
protected void buildFrame()
-
dispose
protected void dispose()
-
addItemToModel
protected void addItemToModel(long value)
-
removeItemFromModel
protected void removeItemFromModel(int value)
-
triggerModelFilter
protected void triggerModelFilter()
-
doTestSorting
protected void doTestSorting(int columnIndex) throws java.lang.Exception- Throws:
java.lang.Exception
-
verifySortDirection
protected void verifySortDirection(int columnIndex, SortedTableModel sortedModel)
-
compareValues
protected int compareValues(java.lang.Comparable comp1, java.lang.Comparable comp2)
-
sortByNormalClicking
protected void sortByNormalClicking(int columnToClick) throws java.lang.Exception- Throws:
java.lang.Exception
-
sortByClick
protected void sortByClick(int columnToClick, int modifiers) throws java.lang.Exception- Throws:
java.lang.Exception
-
getSortState
protected TableSortState getSortState(SortedTableModel sortedModel)
-
removeSortByClicking
protected void removeSortByClicking(int columnToClick) throws java.lang.Exception- Throws:
java.lang.Exception
-
verifyColumnSorted
protected void verifyColumnSorted(int sortedIndex, TableSortState sortState)
-
waitForNotBusy
protected void waitForNotBusy()
-
addLong
protected void addLong(long value)
-
assertRowCount
protected void assertRowCount(int expectedCount)
-
assertNoRowsFilteredOut
protected void assertNoRowsFilteredOut()
-
-