public class JProgressBarFixture extends AbstractJComponentFixture<JProgressBarFixture,JProgressBar,JProgressBarDriver> implements TextDisplayFixture<JProgressBarFixture>
JProgressBars.BACKGROUND_PROPERTY, FONT_PROPERTY, FOREGROUND_PROPERTY| Constructor and Description |
|---|
JProgressBarFixture(Robot robot,
JProgressBar target)
Creates a new
JProgressBarFixture. |
JProgressBarFixture(Robot robot,
String labelName)
Creates a new
JProgressBarFixture. |
| Modifier and Type | Method and Description |
|---|---|
protected JProgressBarDriver |
createDriver(Robot robot) |
JProgressBarFixture |
requireDeterminate()
Asserts that this fixture's
JProgressBar is in determinate mode. |
JProgressBarFixture |
requireIndeterminate()
Asserts that this fixture's
JProgressBar is in indeterminate mode. |
JProgressBarFixture |
requireText(Pattern pattern)
Asserts that the text of this fixture's
JProgressBar matches the given regular expression pattern. |
JProgressBarFixture |
requireText(String expected)
Asserts that the text of this fixture's
JProgressBar is equal to the specified String. |
JProgressBarFixture |
requireValue(int value)
Asserts that the value of this fixture's
JProgressBar is equal to the given one. |
String |
text() |
JProgressBarFixture |
waitUntilIsDeterminate()
Waits until the value of this fixture's
JProgressBar is in determinate mode. |
JProgressBarFixture |
waitUntilIsDeterminate(Timeout timeout)
Waits until the value of this fixture's
JProgressBar is in determinate mode. |
JProgressBarFixture |
waitUntilValueIs(int value)
Waits until the value of this fixture's
JProgressBar is equal to the given value. |
JProgressBarFixture |
waitUntilValueIs(int value,
Timeout timeout)
Waits until the value of this fixture's
JProgressBar is equal to the given value. |
clientProperty, requireToolTip, requireToolTipbackground, 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 JProgressBarFixture(@Nonnull Robot robot, @Nonnull JProgressBar target)
JProgressBarFixture.robot - performs simulation of user events on the given JProgressBar.target - the JProgressBar to be managed by this fixture.NullPointerException - if robot is null.NullPointerException - if target is null.public JProgressBarFixture(@Nonnull Robot robot, @Nonnull String labelName)
JProgressBarFixture.robot - performs simulation of user events on a JProgressBar.labelName - the name of the JProgressBar to find using the given Robot.NullPointerException - if robot is null.ComponentLookupException - if a matching JProgressBar could not be found.ComponentLookupException - if more than one matching JProgressBar is found.@Nonnull protected JProgressBarDriver createDriver(@Nonnull Robot robot)
createDriver in class AbstractComponentFixture<JProgressBarFixture,JProgressBar,JProgressBarDriver>@Nonnull public JProgressBarFixture requireValue(int value)
JProgressBar is equal to the given one.value - the expected value.AssertionError - if the value of this fixture's JProgressBar is not equal to the given one.@Nonnull public JProgressBarFixture requireDeterminate()
JProgressBar is in determinate mode.AssertionError - if this fixture's JProgressBar is not in determinate mode.@Nonnull public JProgressBarFixture requireIndeterminate()
JProgressBar is in indeterminate mode.AssertionError - if this fixture's JProgressBar is not in indeterminate mode.public String text()
text in interface TextDisplayFixture<JProgressBarFixture>JProgressBar.@Nonnull public JProgressBarFixture requireText(@Nullable String expected)
JProgressBar is equal to the specified String.requireText in interface TextDisplayFixture<JProgressBarFixture>expected - the text to match.AssertionError - if the text of this fixture's JProgressBar is not equal to the given one.@Nonnull public JProgressBarFixture requireText(@Nonnull Pattern pattern)
JProgressBar matches the given regular expression pattern.requireText in interface TextDisplayFixture<JProgressBarFixture>pattern - the regular expression pattern to match.AssertionError - if the text of this fixture's JProgressBar does not match the given regular
expression pattern.NullPointerException - if the given regular expression pattern is null.@Nonnull public JProgressBarFixture waitUntilValueIs(int value)
JProgressBar is equal to the given value.value - the expected value.IllegalArgumentException - if the given value is less than the JProgressBar's minimum value.IllegalArgumentException - if the given value is greater than the JProgressBar's maximum value.WaitTimedOutError - if the value of the JProgressBar does not reach the expected value within 30
seconds.@Nonnull public JProgressBarFixture waitUntilValueIs(int value, @Nonnull Timeout timeout)
JProgressBar is equal to the given value.value - the expected value.timeout - the amount of time to wait.IllegalArgumentException - if the given value is less than the JProgressBar's minimum value.IllegalArgumentException - if the given value is greater than the JProgressBar's maximum value.NullPointerException - if the given timeout is null.WaitTimedOutError - if the value of the JProgressBar does not reach the expected value within the
specified timeout.@Nonnull public JProgressBarFixture waitUntilIsDeterminate()
JProgressBar is in determinate mode.WaitTimedOutError - if the JProgressBar does not reach determinate mode within 30 seconds.@Nonnull public JProgressBarFixture waitUntilIsDeterminate(@Nonnull Timeout timeout)
JProgressBar is in determinate mode.timeout - the amount of time to wait.NullPointerException - if the given timeout is null.WaitTimedOutError - if the JProgressBar does not reach determinate mode within the specified timeout.Copyright © 2014–2019 AssertJ. All rights reserved.