public class FrameFixture extends AbstractWindowFixture<FrameFixture,Frame,FrameDriver> implements FrameLikeFixture<FrameFixture>
Frame
s.BACKGROUND_PROPERTY, FONT_PROPERTY, FOREGROUND_PROPERTY
Constructor and Description |
---|
FrameFixture(Frame target)
Creates a new
FrameFixture . |
FrameFixture(Robot robot,
Frame target)
Creates a new
FrameFixture . |
FrameFixture(Robot robot,
String name)
Creates a new
FrameFixture . |
FrameFixture(String name)
Creates a new
FrameFixture . |
Modifier and Type | Method and Description |
---|---|
protected FrameDriver |
createDriver(Robot robot) |
FrameFixture |
deiconify()
Simulates a user deiconifying this fixture's
Frame . |
FrameFixture |
iconify()
Simulates a user iconifying this fixture's
Frame . |
FrameFixture |
maximize()
Simulates a user maximizing this fixture's
Frame . |
FrameFixture |
normalize()
Simulates a user normalizing this fixture's
Frame . |
FrameFixture |
requireTitle(String expected)
Verifies that the title of the given frame is equal to the expected one.
|
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
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
close, moveTo, moveToBack, moveToFront, requireSize, resizeHeightTo, resizeTo, resizeWidthTo
public FrameFixture(@Nonnull Frame target)
FrameFixture
. This constructor creates a new Robot
containing the current AWT
hierarchy.target
- the Frame
to be managed by this fixture.NullPointerException
- if the given frame is null
.BasicRobot.robotWithCurrentAwtHierarchy()
public FrameFixture(@Nonnull Robot robot, @Nonnull Frame target)
FrameFixture
.robot
- performs user events on the given window and verifies expected output.target
- the Frame
to be managed by this fixture.NullPointerException
- if the given robot is null
.NullPointerException
- if the given frame is null
.public FrameFixture(@Nonnull Robot robot, @Nullable String name)
FrameFixture
.robot
- performs user events on the given window and verifies expected output.name
- the name of the Frame
to find using the given Robot
.NullPointerException
- if the given robot is null
.ComponentLookupException
- if a Frame
having a matching name could not be found.ComponentLookupException
- if more than one Frame
having a matching name is found.public FrameFixture(@Nullable String name)
FrameFixture
. This constructor creates a new Robot
containing the current AWT
hierarchy.name
- the name of the Frame
to find.ComponentLookupException
- if a Frame
having a matching name could not be found.ComponentLookupException
- if more than one Frame
having a matching name is found.@Nonnull protected FrameDriver createDriver(@Nonnull Robot robot)
createDriver
in class AbstractComponentFixture<FrameFixture,Frame,FrameDriver>
@Nonnull public FrameFixture iconify()
Frame
.iconify
in interface FrameLikeFixture<FrameFixture>
@Nonnull public FrameFixture deiconify()
Frame
.deiconify
in interface FrameLikeFixture<FrameFixture>
@Nonnull public FrameFixture maximize()
Frame
.maximize
in interface FrameLikeFixture<FrameFixture>
ActionFailedException
- if the operating system does not support maximizing frames.@Nonnull public FrameFixture normalize()
Frame
.normalize
in interface FrameLikeFixture<FrameFixture>
@Nonnull public FrameFixture requireTitle(String expected)
FrameLikeFixture
requireTitle
in interface FrameLikeFixture<FrameFixture>
expected
- the expected title.Copyright © 2014–2019 AssertJ. All rights reserved.