@InternalApi public class DialogDriver extends WindowDriver
Supports functional testing of AWT or Swing Dialog
s.
Note: This class is intended for internal use only. Please use the classes in the package
org.assertj.swing.fixture
in your tests.
robot
Constructor and Description |
---|
DialogDriver(Robot robot)
Creates a new
DialogDriver . |
Modifier and Type | Method and Description |
---|---|
void |
requireModal(Dialog dialog)
Asserts that the given AWT or Swing
Dialog is modal. |
close, moveTo, moveToBack, moveToFront, resizeHeightTo, resizeTo, resizeWidthTo, show, show
doResizeHeight, doResizeWidth, isResizable, move, resize
backgroundOf, checkInEdtEnabledAndShowing, click, click, click, click, click, doubleClick, drag, dragOver, drop, focus, focusAndWaitForFocusGain, fontOf, foregroundOf, invokePopupMenu, invokePopupMenu, moveMouseIgnoringAnyError, moveMouseIgnoringAnyError, performAccessibleActionOf, pressAndReleaseKey, pressAndReleaseKey, pressAndReleaseKeys, pressKey, propertyName, releaseKey, requireDisabled, requireEnabled, requireEnabled, requireFocused, requireNotVisible, requireSize, requireVisible, rightClick, settings, waitForShowing
public DialogDriver(@Nonnull Robot robot)
DialogDriver
.robot
- the robot to use to simulate user input.@RunsInEDT public void requireModal(@Nonnull Dialog dialog)
Dialog
is modal.dialog
- the given Dialog
.AssertionError
- if the given Dialog
is not modal.Copyright © 2014-2015 AssertJ. All Rights Reserved.