public class JMenuItemFixture extends AbstractJComponentFixture<JMenuItemFixture,JMenuItem,JMenuItemDriver>
JMenuItems.BACKGROUND_PROPERTY, FONT_PROPERTY, FOREGROUND_PROPERTY| Constructor and Description |
|---|
JMenuItemFixture(Robot robot,
JMenuItem target)
Creates a new
JMenuItemFixture. |
JMenuItemFixture(Robot robot,
String menuItemName)
Creates a new
JMenuItemFixture. |
| Modifier and Type | Method and Description |
|---|---|
protected JMenuItemDriver |
createDriver(Robot robot) |
clientProperty, requireToolTip, requireToolTipbackground, 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, targetCastedTopublic JMenuItemFixture(@Nonnull Robot robot, @Nullable String menuItemName)
JMenuItemFixture.robot - performs simulation of user events on a JMenuItem.menuItemName - the name of the JMenuItem to find using the given Robot.NullPointerException - if robot is null.ComponentLookupException - if a matching JMenuItem could not be found.ComponentLookupException - if more than one matching JMenuItem is found.public JMenuItemFixture(@Nonnull Robot robot, @Nonnull JMenuItem target)
JMenuItemFixture.robot - performs simulation of user events on the given JMenuItem.target - the JMenuItem to be managed by this fixture.NullPointerException - if robot is null.NullPointerException - if target is null.@Nonnull protected JMenuItemDriver createDriver(@Nonnull Robot robot)
createDriver in class AbstractComponentFixture<JMenuItemFixture,JMenuItem,JMenuItemDriver>Copyright © 2014 AssertJ. All rights reserved.