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
public class DialogDriver
- extends WindowDriver
Understands functional testing of Dialog
s:
- user input simulation
- state verification
- property value query
This class is intended for internal use only. Please use the classes in the package
org.fest.swing.fixture
in your tests.
- Author:
- Alex Ruiz
Methods 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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DialogDriver
public DialogDriver(Robot robot)
- Creates a new
DialogDriver
.
- Parameters:
robot
- the robot to use to simulate user input.
requireModal
@RunsInEDT
public void requireModal(Dialog dialog)
- Asserts that the
Dialog
is modal.
- Parameters:
dialog
- the target Dialog
.
- Throws:
AssertionError
- if this fixture's Dialog
is not modal.
Copyright © 2007-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.