Package docking.widgets
Class DropDownTextFieldTest
- java.lang.Object
-
- generic.test.AbstractGTest
-
- generic.test.AbstractGenericTest
-
- docking.test.AbstractDockingTest
-
- docking.widgets.AbstractDropDownTextFieldTest<java.lang.String>
-
- docking.widgets.DropDownTextFieldTest
-
public class DropDownTextFieldTest extends AbstractDropDownTextFieldTest<java.lang.String>
This test achieves partial coverage ofDropDownTextField
. Further coverage is provided byDropDownSelectionTextFieldTest
, as that test enables item selection in the widget being tested.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class docking.widgets.AbstractDropDownTextFieldTest
AbstractDropDownTextFieldTest.SpyTestCellEditorListener, AbstractDropDownTextFieldTest.TestChoiceListener
-
Nested classes/interfaces inherited from class generic.test.AbstractGenericTest
AbstractGenericTest.ExceptionHandlingRunner
-
-
Field Summary
-
Fields inherited from class docking.widgets.AbstractDropDownTextFieldTest
listener, parentFrame, 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 DropDownTextFieldTest()
-
Method Summary
-
Methods inherited from class docking.widgets.AbstractDropDownTextFieldTest
assertEditingCancelledEvent, assertEditingStoppedEvent, assertMatchingWindowHidden, assertMatchingWindowShowing, assertNoEditingCancelledEvent, assertNoEditingStoppedEvent, assertNoSelectedListItem, assertSelectedListItem, assertSelectedListItem, assertSelectedValue, assertTextFieldText, assetNoListSelection, clearListSelection, clearText, clearTextSelection, closeMatchingWindow, createDefaultTestModel, createTextField, delete, down, enter, escape, getJList, getListItemAt, getSelectedListItem, getTextFieldText, hideWindowPressKeyThenValidate, initializeGui, installTextFieldIntoFrame, setCaretPosition, setSelectedListIndex, setSelectedValue, setText, setUp, simulateFocusLost, tearDown, tpyeActionKey, typeText, up
-
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
-
-
-
-
Method Detail
-
createModel
protected DropDownTextFieldDataModel<java.lang.String> createModel()
- Specified by:
createModel
in classAbstractDropDownTextFieldTest<java.lang.String>
-
testClickingList
public void testClickingList()
-
testShowDropDownOnTextEntry
public void testShowDropDownOnTextEntry()
-
testEnterKey_MatchingWindowOpen
public void testEnterKey_MatchingWindowOpen()
-
testEnterKey_MatchingWindowOpen_DontConsumeEvent
public void testEnterKey_MatchingWindowOpen_DontConsumeEvent()
-
testEnterKey_MatchingWindowClosed
public void testEnterKey_MatchingWindowClosed()
-
testEnterKey_MatchingWindowClosed_EnterKeyDisabled
public void testEnterKey_MatchingWindowClosed_EnterKeyDisabled()
-
testEscapeKey_MatchingWindowOpen
public void testEscapeKey_MatchingWindowOpen()
-
testEscapeKey_MatchingWindowClosed
public void testEscapeKey_MatchingWindowClosed()
-
testDropdownLocationOnParentMove
public void testDropdownLocationOnParentMove()
-
testDropdownLocationOnResize
public void testDropdownLocationOnResize()
-
testSetText
public void testSetText()
-
testNavigationKeys_UpArrow_NoSelectionTriggered
public void testNavigationKeys_UpArrow_NoSelectionTriggered()
-
testNavigationKeys_DownArrow_NoSelectionTriggered
public void testNavigationKeys_DownArrow_NoSelectionTriggered()
-
testNavigationKeysTriggerCompletionWindowToShow
public void testNavigationKeysTriggerCompletionWindowToShow()
-
testSetSelectedValue_EmptyField
public void testSetSelectedValue_EmptyField()
-
testSetSelectedValue_TextInField_NoItemSelected
public void testSetSelectedValue_TextInField_NoItemSelected()
-
testSetSelectedValue_TextInField_MatchingWindowOpen
public void testSetSelectedValue_TextInField_MatchingWindowOpen()
-
testMovingCaret_WhenFocused
public void testMovingCaret_WhenFocused()
-
testMovingCaret_WhenNotFocused
public void testMovingCaret_WhenNotFocused()
-
testSetMatchingWindowHeight
public void testSetMatchingWindowHeight()
-
testSetMatchingWindowHeight_MatchingWindowOpen
public void testSetMatchingWindowHeight_MatchingWindowOpen()
-
-