public class JMenuItemFixture extends AbstractJComponentFixture<JMenuItemFixture,JMenuItem,JMenuItemDriver>
JMenuItem
s.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, requireToolTip
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 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–2019 AssertJ. All rights reserved.