org.fest.swing.driver
Class DialogDriver

java.lang.Object
  extended by org.fest.swing.driver.ComponentDriver
      extended by org.fest.swing.driver.ContainerDriver
          extended by org.fest.swing.driver.WindowDriver
              extended by org.fest.swing.driver.DialogDriver

public class DialogDriver
extends WindowDriver

Understands functional testing of Dialogs:

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

Field Summary
 
Fields inherited from class org.fest.swing.driver.ComponentDriver
robot
 
Constructor Summary
DialogDriver(Robot robot)
          Creates a new DialogDriver.
 
Method Summary
 void requireModal(Dialog dialog)
          Asserts that theDialog is modal.
 
Methods inherited from class org.fest.swing.driver.WindowDriver
close, moveTo, moveToBack, moveToFront, resizeHeightTo, resizeTo, resizeWidthTo, show, show
 
Methods inherited from class org.fest.swing.driver.ContainerDriver
move, resize, resizeHeight, resizeWidth
 
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
 

Constructor Detail

DialogDriver

public DialogDriver(Robot robot)
Creates a new DialogDriver.

Parameters:
robot - the robot to use to simulate user input.
Method Detail

requireModal

@RunsInEDT
public void requireModal(Dialog dialog)
Asserts that theDialog 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.