|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fest.swing.driver.ComponentDriver
org.fest.swing.driver.ContainerDriver
org.fest.swing.driver.JComponentDriver
org.fest.swing.driver.JProgressBarDriver
public class JProgressBarDriver
Understands functional testing of s:
JProgressBar
org.fest.swing.fixture in your tests.
| Field Summary |
|---|
| Fields inherited from class org.fest.swing.driver.ComponentDriver |
|---|
robot |
| Constructor Summary | |
|---|---|
JProgressBarDriver(Robot robot)
Creates a new JProgressBarDriver. |
|
| Method Summary | |
|---|---|
void |
requireDeterminate(JProgressBar progressBar)
Verifies that the given is in determinate mode. |
void |
requireIndeterminate(JProgressBar progressBar)
Verifies that the given is in indeterminate mode. |
void |
requireText(JProgressBar progressBar,
Pattern pattern)
Asserts that the text of the matches the given regular expression pattern. |
void |
requireText(JProgressBar progressBar,
String expected)
Asserts that the text of the is equal to the specified String. |
void |
requireValue(JProgressBar progressBar,
int value)
Verifies that the value of the given is equal to the given one. |
String |
textOf(JProgressBar progressBar)
Returns the text of the given . |
void |
waitUntilIsDeterminate(JProgressBar progressBar)
Waits until the value of the given is in determinate mode. |
void |
waitUntilIsDeterminate(JProgressBar progressBar,
Timeout timeout)
Waits until the value of the given is in determinate mode. |
void |
waitUntilValueIs(JProgressBar progressBar,
int value)
Waits until the value of the given is equal to the given value. |
void |
waitUntilValueIs(JProgressBar progressBar,
int value,
Timeout timeout)
Waits until the value of the given is equal to the given value. |
| Methods inherited from class org.fest.swing.driver.JComponentDriver |
|---|
clientProperty, invokeAction, isVisible, isVisible, requireToolTip, requireToolTip, scrollToVisible |
| Methods inherited from class org.fest.swing.driver.ContainerDriver |
|---|
move, resize, resizeHeight, resizeWidth |
| Methods inherited from class org.fest.swing.driver.ComponentDriver |
|---|
assertIsEnabledAndShowing, click, click, click, click, click, doubleClick, drag, dragOver, drop, focus, focusAndWaitForFocusGain, invokePopupMenu, invokePopupMenu, moveMouseIgnoringAnyError, moveMouseIgnoringAnyError, performAccessibleActionOf, pressAndReleaseKey, pressAndReleaseKey, pressAndReleaseKeys, pressKey, propertyName, releaseKey, requireDisabled, requireEnabled, requireEnabled, requireFocused, requireNotVisible, requireSize, requireVisible, rightClick, settings, waitForShowing |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JProgressBarDriver(Robot robot)
JProgressBarDriver.
robot - the robot to use to simulate user input.| Method Detail |
|---|
@RunsInEDT
public void requireText(JProgressBar progressBar,
String expected)
JProgressBar is equal to the specified String.
requireText in interface TextDisplayDriver<JProgressBar>progressBar - the target JProgressBar.expected - the text to match.
AssertionError - if the text of the JProgressBar is not equal to the given one.JProgressBar.getString()
@RunsInEDT
public void requireText(JProgressBar progressBar,
Pattern pattern)
JProgressBar matches the given regular expression pattern.
requireText in interface TextDisplayDriver<JProgressBar>progressBar - the target JProgressBar.pattern - the regular expression pattern to match.
AssertionError - if the text of the JProgressBar does not match the given regular expression pattern.
NullPointerException - if the given regular expression pattern is null.JProgressBar.getString()
@RunsInEDT
public void requireValue(JProgressBar progressBar,
int value)
JProgressBar is equal to the given one.
progressBar - the target JProgressBar.value - the expected value.
AssertionError - if the value of the JProgressBar is not equal to the given one.@RunsInEDT public void requireIndeterminate(JProgressBar progressBar)
JProgressBar is in indeterminate mode.
progressBar - the target JProgressBar.
AssertionError - if the given JProgressBar is not in indeterminate mode.@RunsInEDT public void requireDeterminate(JProgressBar progressBar)
JProgressBar is in determinate mode.
progressBar - the target JProgressBar.
AssertionError - if the given JProgressBar is not in determinate mode.
@RunsInEDT
public void waitUntilValueIs(JProgressBar progressBar,
int value)
JProgressBar is equal to the given value.
progressBar - the target JProgressBar.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.
@RunsInEDT
public void waitUntilValueIs(JProgressBar progressBar,
int value,
Timeout timeout)
JProgressBar is equal to the given value.
progressBar - the target JProgressBar.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.@RunsInEDT public void waitUntilIsDeterminate(JProgressBar progressBar)
JProgressBar is in determinate mode.
progressBar - the target JProgressBar.
WaitTimedOutError - if the JProgressBar does not reach determinate mode within 30 seconds.
@RunsInEDT
public void waitUntilIsDeterminate(JProgressBar progressBar,
Timeout timeout)
JProgressBar is in determinate mode.
progressBar - the target JProgressBar.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.@RunsInEDT public String textOf(JProgressBar progressBar)
JProgressBar.
textOf in interface TextDisplayDriver<JProgressBar>progressBar - the target JProgressBar.
JProgressBar.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||