public class DialogFixture extends AbstractWindowFixture<DialogFixture,Dialog,DialogDriver>
Dialog
s.BACKGROUND_PROPERTY, FONT_PROPERTY, FOREGROUND_PROPERTY
Constructor and Description |
---|
DialogFixture(Dialog target)
Creates a new
DialogFixture . |
DialogFixture(Robot robot,
Dialog target)
Creates a new
DialogFixture . |
DialogFixture(Robot robot,
String dialogName)
Creates a new
DialogFixture . |
DialogFixture(String dialogName)
Creates a new
DialogFixture . |
Modifier and Type | Method and Description |
---|---|
protected DialogDriver |
createDriver(Robot robot) |
DialogFixture |
requireModal()
Asserts that this fixture's
Dialog is modal. |
cleanUp, close, moveTo, moveToBack, moveToFront, requireSize, resizeHeightTo, resizeTo, resizeWidthTo, show, show, showPopupMenu, showPopupMenuAt
button, button, button, checkBox, checkBox, checkBox, comboBox, comboBox, comboBox, defaultDialogLookupTimeout, dialog, dialog, dialog, dialog, dialog, dialog, fileChooser, fileChooser, fileChooser, fileChooser, fileChooser, fileChooser, find, findByName, findByType, finder, internalFrame, internalFrame, internalFrame, label, label, label, list, list, list, menuItem, menuItem, menuItemWithPath, optionPane, optionPane, panel, panel, panel, progressBar, progressBar, progressBar, radioButton, radioButton, radioButton, scrollBar, scrollBar, scrollBar, scrollPane, scrollPane, scrollPane, slider, slider, slider, spinner, spinner, spinner, splitPane, splitPane, splitPane, tabbedPane, tabbedPane, tabbedPane, table, table, table, textBox, textBox, textBox, toggleButton, toggleButton, toggleButton, toolBar, toolBar, toolBar, tree, tree, tree, with
background, click, click, click, doubleClick, driver, drop, equals, focus, font, foreground, hashCode, isEnabled, myself, pressAndReleaseKey, pressAndReleaseKeys, pressKey, pressKeyWhileRunning, releaseKey, replaceDriverWith, requireDisabled, requireEnabled, requireEnabled, requireFocused, requireNotVisible, requireShowing, requireVisible, rightClick, robot, target, targetCastedTo
public DialogFixture(@Nonnull Dialog target)
DialogFixture
. This constructor creates a new Robot
containing the current AWT
hierarchy.target
- the Dialog
to be managed by this fixture.NullPointerException
- if target
is null
.BasicRobot.robotWithCurrentAwtHierarchy()
public DialogFixture(@Nonnull Robot robot, @Nonnull Dialog target)
DialogFixture
.robot
- performs simulation of user events on the given Dialog
.target
- the Dialog
to be managed by this fixture.NullPointerException
- if robot
is null
.NullPointerException
- if target
is null
.public DialogFixture(@Nonnull Robot robot, @Nullable String dialogName)
DialogFixture
.robot
- performs simulation of user events on a Dialog
.dialogName
- the name of the Dialog
to find using the given Robot
.NullPointerException
- if robot
is null
.ComponentLookupException
- if a Dialog
having a matching name could not be found.ComponentLookupException
- if more than one Dialog
having a matching name is found.public DialogFixture(@Nullable String dialogName)
DialogFixture
. This constructor creates a new Robot
containing the current AWT
hierarchy.dialogName
- the name of the Dialog
to find.ComponentLookupException
- if a Dialog
having a matching name could not be found.ComponentLookupException
- if more than one Dialog
having a matching name is found.BasicRobot.robotWithCurrentAwtHierarchy()
@Nonnull protected DialogDriver createDriver(@Nonnull Robot robot)
createDriver
in class AbstractComponentFixture<DialogFixture,Dialog,DialogDriver>
@Nonnull public DialogFixture requireModal()
Dialog
is modal.AssertionError
- if this fixture's Dialog
is not modal.Copyright © 2014–2019 AssertJ. All rights reserved.