public class JInternalFrameFixture extends AbstractContainerFixture<JInternalFrameFixture,JInternalFrame,JInternalFrameDriver> implements FrameLikeFixture<JInternalFrameFixture>, JComponentFixture<JInternalFrameFixture>, JPopupMenuInvokerFixture
JInternalFramesBACKGROUND_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 |
|---|---|
Object |
clientProperty(Object key)
Returns the client property stored in this fixture's
JInternalFrame, under the given key. |
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 |
requireTitle(String expected)
Verifies that the title of the given frame is equal to the expected one.
|
JInternalFrameFixture |
requireToolTip(Pattern pattern)
Asserts that the toolTip in this fixture's
JInternalFrame matches the given regular expression pattern. |
JInternalFrameFixture |
requireToolTip(String expected)
Asserts that the toolTip in this fixture's
JInternalFrame matches the given value. |
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. |
JPopupMenuFixture |
showPopupMenu()
Shows a pop-up menu using this fixture's
JInternalFrame as the invoker of the pop-up menu. |
JPopupMenuFixture |
showPopupMenuAt(Point p)
Shows a pop-up menu at the given point using this fixture's
JInternalFrame as the invoker of the pop-up
menu. |
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, withbackground, 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, targetCastedTopublic 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 requireToolTip(@Nullable String expected)
JInternalFrame matches the given value.requireToolTip in interface JComponentFixture<JInternalFrameFixture>expected - the given value. It can be a regular expression.AssertionError - if the toolTip in this fixture's JInternalFrame does not match the given value.@Nonnull public JInternalFrameFixture requireToolTip(@Nonnull Pattern pattern)
JInternalFrame matches the given regular expression pattern.requireToolTip in interface JComponentFixture<JInternalFrameFixture>pattern - the regular expression pattern to match.NullPointerException - if the given regular expression pattern is null.AssertionError - if the toolTip in this fixture's JInternalFrame does not match the given regular
expression.@Nullable public Object clientProperty(@Nonnull Object key)
JInternalFrame, under the given key.clientProperty in interface JComponentFixture<JInternalFrameFixture>key - the key to use to retrieve the client property.null if the property was not found.NullPointerException - if the given key is null.@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.@Nonnull public JInternalFrameFixture requireTitle(String expected)
FrameLikeFixturerequireTitle in interface FrameLikeFixture<JInternalFrameFixture>expected - the expected title.@Nonnull public JPopupMenuFixture showPopupMenu()
JInternalFrame as the invoker of the pop-up menu.showPopupMenu in interface JPopupMenuInvokerFixtureIllegalStateException - if Settings.clickOnDisabledComponentsAllowed() is false and this
fixture's JInternalFrame is disabled.IllegalStateException - if this fixture's JInternalFrame is not showing on the screen.ComponentLookupException - if a pop-up menu cannot be found.@Nonnull public JPopupMenuFixture showPopupMenuAt(@Nonnull Point p)
JInternalFrame as the invoker of the pop-up
menu.showPopupMenuAt in interface JPopupMenuInvokerFixturep - the given point where to show the pop-up menu.IllegalStateException - if Settings.clickOnDisabledComponentsAllowed() is false and this
fixture's JInternalFrame is disabled.IllegalStateException - if this fixture's JInternalFrame is not showing on the screen.ComponentLookupException - if a pop-up menu cannot be found.Copyright © 2014–2019 AssertJ. All rights reserved.