Package org.fest.swing.driver
Class DialogDriver
java.lang.Object
org.fest.swing.driver.ComponentDriver
org.fest.swing.driver.ContainerDriver
org.fest.swing.driver.WindowDriver
org.fest.swing.driver.DialogDriver
Understands functional testing of
Dialogs:
- user input simulation
- state verification
- property value query
org.fest.swing.fixture in your tests.-
Field Summary
Fields inherited from class org.fest.swing.driver.ComponentDriver
robot -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrequireModal(Dialog dialog) Asserts that theis modal.DialogMethods inherited from class org.fest.swing.driver.WindowDriver
close, moveTo, moveToBack, moveToFront, resizeHeightTo, resizeTo, resizeWidthTo, show, showMethods inherited from class org.fest.swing.driver.ContainerDriver
move, resize, resizeHeight, resizeWidthMethods inherited from class org.fest.swing.driver.ComponentDriver
assertIsEnabledAndShowing, click, click, click, click, click, doubleClick, drag, dragOver, drop, focus, focusAndWaitForFocusGain, invokePopupMenu, invokePopupMenu, moveMouseIgnoringAnyError, moveMouseIgnoringAnyError, performAccessibleActionOf, pressAndReleaseKey, pressAndReleaseKey, pressAndReleaseKeys, pressKey, propertyName, releaseKey, requireDisabled, requireEnabled, requireEnabled, requireFocused, requireNotVisible, requireSize, requireVisible, rightClick, settings, waitForShowing
-
Constructor Details
-
DialogDriver
Creates a newDialogDriver.- Parameters:
robot- the robot to use to simulate user input.
-
-
Method Details
-
requireModal
Asserts that theis modal.Dialog- Parameters:
dialog- the targetDialog.- Throws:
AssertionError- if this fixture'sDialogis not modal.
-