public class JInternalFrameFixture extends AbstractJPopupMenuInvokerFixture<JInternalFrameFixture,JInternalFrame,JInternalFrameDriver> implements FrameLikeFixture<JInternalFrameFixture>
JInternalFrame
sBACKGROUND_PROPERTY, FONT_PROPERTY, FOREGROUND_PROPERTY
Constructor and Description |
---|
JInternalFrameFixture(Robot robot,
JInternalFrame target)
Creates a new
JInternalFrameFixture . |
JInternalFrameFixture(Robot robot,
String internalFrameName)
Creates a new
JInternalFrameFixture . |
Modifier and Type | Method and Description |
---|---|
void |
close()
Simulates a user closing this fixture's
JInternalFrame . |
protected JInternalFrameDriver |
createDriver(Robot robot) |
JInternalFrameFixture |
deiconify()
Simulates a user deiconifying this fixture's
JInternalFrame . |
JInternalFrameFixture |
iconify()
Simulates a user iconifying this fixture's
JInternalFrame . |
JInternalFrameFixture |
maximize()
Simulates a user maximizing this fixture's
JInternalFrame , deconifying it first if it is iconified. |
JInternalFrameFixture |
moveTo(Point p)
Simulates a user moving this fixture's
JInternalFrame to the given point. |
JInternalFrameFixture |
moveToBack()
Brings this fixture's
JInternalFrame to the back. |
JInternalFrameFixture |
moveToFront()
Brings this fixture's
JInternalFrame to the front. |
JInternalFrameFixture |
normalize()
Simulates a user normalizing this fixture's
JInternalFrame , deconifying it first if it is iconified. |
JInternalFrameFixture |
requireSize(Dimension size)
Asserts that the size of this fixture's
JInternalFrame is equal to given one. |
JInternalFrameFixture |
resizeHeightTo(int height)
Simulates a user resizing vertically this fixture's
JInternalFrame . |
JInternalFrameFixture |
resizeTo(Dimension size)
Simulates a user resizing this fixture's
JInternalFrame . |
JInternalFrameFixture |
resizeWidthTo(int width)
Simulates a user resizing horizontally this fixture's
JInternalFrame . |
showPopupMenu, showPopupMenuAt
clientProperty, requireToolTip, requireToolTip
background, click, click, click, doubleClick, driver, focus, font, foreground, isEnabled, myself, pressAndReleaseKey, pressAndReleaseKeys, pressKey, releaseKey, replaceDriverWith, requireDisabled, requireEnabled, requireEnabled, requireFocused, requireNotVisible, requireShowing, requireVisible, rightClick, robot, target, targetCastedTo
public JInternalFrameFixture(@Nonnull Robot robot, @Nullable String internalFrameName)
JInternalFrameFixture
.robot
- performs simulation of user events on a JInternalFrame
.internalFrameName
- the name of the JInternalFrame
to find using the given Robot
.NullPointerException
- if robot
is null
.ComponentLookupException
- if a matching JInternalFrame
could not be found.ComponentLookupException
- if more than one matching JInternalFrame
is found.public JInternalFrameFixture(@Nonnull Robot robot, @Nonnull JInternalFrame target)
JInternalFrameFixture
.robot
- performs simulation of user events on the given JInternalFrame
.target
- the JInternalFrame
to be managed by this fixture.NullPointerException
- if robot
is null
.NullPointerException
- if target
is null
.@Nonnull protected JInternalFrameDriver createDriver(@Nonnull Robot robot)
createDriver
in class AbstractComponentFixture<JInternalFrameFixture,JInternalFrame,JInternalFrameDriver>
@Nonnull public JInternalFrameFixture moveToFront()
JInternalFrame
to the front.moveToFront
in interface WindowLikeContainerFixture<JInternalFrameFixture>
@Nonnull public JInternalFrameFixture moveToBack()
JInternalFrame
to the back.moveToBack
in interface WindowLikeContainerFixture<JInternalFrameFixture>
@Nonnull public JInternalFrameFixture deiconify()
JInternalFrame
.deiconify
in interface FrameLikeFixture<JInternalFrameFixture>
ActionFailedException
- if the JInternalFrame
vetoes the action.@Nonnull public JInternalFrameFixture iconify()
JInternalFrame
.iconify
in interface FrameLikeFixture<JInternalFrameFixture>
ActionFailedException
- if the given JInternalFrame
is not iconifiable.ActionFailedException
- if the JInternalFrame
vetoes the action.@Nonnull public JInternalFrameFixture maximize()
JInternalFrame
, deconifying it first if it is iconified.maximize
in interface FrameLikeFixture<JInternalFrameFixture>
ActionFailedException
- if the given JInternalFrame
is not maximizable.ActionFailedException
- if the JInternalFrame
vetoes the action.@Nonnull public JInternalFrameFixture normalize()
JInternalFrame
, deconifying it first if it is iconified.normalize
in interface FrameLikeFixture<JInternalFrameFixture>
ActionFailedException
- if the JInternalFrame
vetoes the action.public void close()
JInternalFrame
.close
in interface WindowLikeContainerFixture<JInternalFrameFixture>
ActionFailedException
- if the JInternalFrame
is not closable.@Nonnull public JInternalFrameFixture requireSize(@Nonnull Dimension size)
JInternalFrame
is equal to given one.requireSize
in interface WindowLikeContainerFixture<JInternalFrameFixture>
size
- the given size to match.AssertionError
- if the size of this fixture's JInternalFrame
is not equal to the given size.@Nonnull public JInternalFrameFixture resizeWidthTo(int width)
JInternalFrame
.resizeWidthTo
in interface WindowLikeContainerFixture<JInternalFrameFixture>
width
- the width that this fixture's JInternalFrame
should have after being resized.@Nonnull public JInternalFrameFixture resizeHeightTo(int height)
JInternalFrame
.resizeHeightTo
in interface WindowLikeContainerFixture<JInternalFrameFixture>
height
- the height that this fixture's JInternalFrame
should have after being resized.@Nonnull public JInternalFrameFixture resizeTo(@Nonnull Dimension size)
JInternalFrame
.resizeTo
in interface WindowLikeContainerFixture<JInternalFrameFixture>
size
- the size that the target JInternalFrame
should have after being resized.@Nonnull public JInternalFrameFixture moveTo(@Nonnull Point p)
JInternalFrame
to the given point.moveTo
in interface WindowLikeContainerFixture<JInternalFrameFixture>
p
- the point to move this fixture's JInternalFrame
to.Copyright © 2014-2015 AssertJ. All Rights Reserved.