Package docking.widgets
Class AbstractDropDownTextFieldTest<T>
- java.lang.Object
-
- generic.test.AbstractGTest
-
- generic.test.AbstractGenericTest
-
- docking.test.AbstractDockingTest
-
- docking.widgets.AbstractDropDownTextFieldTest<T>
-
- Direct Known Subclasses:
DropDownSelectionTextFieldTest,DropDownTextFieldTest
public abstract class AbstractDropDownTextFieldTest<T> extends AbstractDockingTest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classAbstractDropDownTextFieldTest.SpyTestCellEditorListenerprotected classAbstractDropDownTextFieldTest.TestChoiceListener-
Nested classes/interfaces inherited from class generic.test.AbstractGenericTest
AbstractGenericTest.ExceptionHandlingRunner
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractDropDownTextFieldTest.SpyTestCellEditorListenerlistenerprotected javax.swing.JFrameparentFrameprotected DropDownTextField<T>textField-
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 AbstractDropDownTextFieldTest()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidassertEditingCancelledEvent()protected voidassertEditingStoppedEvent()protected voidassertMatchingWindowHidden()protected voidassertMatchingWindowShowing()protected voidassertNoEditingCancelledEvent()protected voidassertNoEditingStoppedEvent()protected voidassertNoSelectedListItem()protected voidassertSelectedListItem(int expected)The item that is selected in the JList; not the 'selectedValue' in the text fieldprotected voidassertSelectedListItem(T expected)The item that is selected in the JList; not the 'selectedValue' in the text fieldprotected voidassertSelectedValue(T expected)The 'selectedValue' made after the user makes a choiceprotected voidassertTextFieldText(java.lang.String text)protected voidassetNoListSelection()protected voidclearListSelection()protected voidclearText()protected voidclearTextSelection()protected voidcloseMatchingWindow()protected java.util.List<java.lang.String>createDefaultTestModel()protected abstract DropDownTextFieldDataModel<T>createModel()protected DropDownTextField<T>createTextField(DropDownTextFieldDataModel<T> model)protected voiddelete()protected voiddown()protected voidenter()protected voidescape()protected javax.swing.JList<T>getJList()protected TgetListItemAt(int index)protected TgetSelectedListItem()protected java.lang.StringgetTextFieldText()protected voidhideWindowPressKeyThenValidate(int keyCode)protected voidinitializeGui()protected voidinstallTextFieldIntoFrame()protected voidsetCaretPosition(int pos)protected voidsetSelectedListIndex(int index)protected voidsetSelectedValue(T t)protected voidsetText(java.lang.String text)voidsetUp()protected voidsimulateFocusLost()voidtearDown()protected voidtpyeActionKey(int keyCode)protected voidtypeText(java.lang.String text, boolean expectWindow)protected voidup()-
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
-
textField
protected DropDownTextField<T> textField
-
parentFrame
protected javax.swing.JFrame parentFrame
-
listener
protected AbstractDropDownTextFieldTest.SpyTestCellEditorListener listener
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception- Throws:
java.lang.Exception
-
initializeGui
protected void initializeGui()
-
createModel
protected abstract DropDownTextFieldDataModel<T> createModel()
-
createTextField
protected DropDownTextField<T> createTextField(DropDownTextFieldDataModel<T> model)
-
tearDown
public void tearDown() throws java.lang.Exception- Throws:
java.lang.Exception
-
createDefaultTestModel
protected java.util.List<java.lang.String> createDefaultTestModel()
-
installTextFieldIntoFrame
protected void installTextFieldIntoFrame()
-
setSelectedValue
protected void setSelectedValue(T t)
-
clearListSelection
protected void clearListSelection()
-
clearTextSelection
protected void clearTextSelection()
-
getTextFieldText
protected java.lang.String getTextFieldText()
-
setSelectedListIndex
protected void setSelectedListIndex(int index)
-
getSelectedListItem
protected T getSelectedListItem()
-
getListItemAt
protected T getListItemAt(int index)
-
assertSelectedListItem
protected void assertSelectedListItem(int expected)
The item that is selected in the JList; not the 'selectedValue' in the text field
-
assertSelectedListItem
protected void assertSelectedListItem(T expected)
The item that is selected in the JList; not the 'selectedValue' in the text field
-
assertSelectedValue
protected void assertSelectedValue(T expected)
The 'selectedValue' made after the user makes a choice
-
assertNoSelectedListItem
protected void assertNoSelectedListItem()
-
assertNoEditingCancelledEvent
protected void assertNoEditingCancelledEvent()
-
assertNoEditingStoppedEvent
protected void assertNoEditingStoppedEvent()
-
assertEditingStoppedEvent
protected void assertEditingStoppedEvent()
-
assertEditingCancelledEvent
protected void assertEditingCancelledEvent()
-
assertTextFieldText
protected void assertTextFieldText(java.lang.String text)
-
assertMatchingWindowHidden
protected void assertMatchingWindowHidden()
-
assertMatchingWindowShowing
protected void assertMatchingWindowShowing()
-
assetNoListSelection
protected void assetNoListSelection()
-
simulateFocusLost
protected void simulateFocusLost()
-
setCaretPosition
protected void setCaretPosition(int pos)
-
hideWindowPressKeyThenValidate
protected void hideWindowPressKeyThenValidate(int keyCode)
-
tpyeActionKey
protected void tpyeActionKey(int keyCode)
-
setText
protected void setText(java.lang.String text)
-
closeMatchingWindow
protected void closeMatchingWindow()
-
clearText
protected void clearText()
-
delete
protected void delete()
-
enter
protected void enter()
-
escape
protected void escape()
-
up
protected void up()
-
down
protected void down()
-
typeText
protected void typeText(java.lang.String text, boolean expectWindow)
-
getJList
protected javax.swing.JList<T> getJList()
-
-