public class JButtonFixture extends AbstractButtonFixture<JButtonFixture,JButton>
JButtons.BACKGROUND_PROPERTY, FONT_PROPERTY, FOREGROUND_PROPERTY| Constructor and Description |
|---|
JButtonFixture(Robot robot,
JButton target)
Creates a new
JButtonFixture. |
JButtonFixture(Robot robot,
String buttonName)
Creates a new
JButtonFixture. |
createDriver, requireText, requireText, textshowPopupMenu, showPopupMenuAtclientProperty, 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 JButtonFixture(@Nonnull Robot robot, @Nonnull JButton target)
JButtonFixture.target - the JButton to be managed by this fixture.robot - performs simulation of user events on the given JButton.NullPointerException - if robot is null.NullPointerException - if target is null.public JButtonFixture(@Nonnull Robot robot, @Nullable String buttonName)
JButtonFixture.robot - performs simulation of user events on a JButton.buttonName - the name of the JButton to find using the given RobotFixture.NullPointerException - if robot is null.ComponentLookupException - if a matching JButton could not be found.ComponentLookupException - if more than one matching JButton is found.Copyright © 2014 AssertJ. All rights reserved.