|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.test.selenium.waiting.Wait.Waiting
public static class Wait.Waiting
Class intented to construct by factories in Wait class. Implementation of waiting for satisfaction of condition.
| Nested Class Summary | |
|---|---|
protected static class |
Wait.Waiting.WaitTimeoutException
|
| Field Summary | |
|---|---|
boolean |
isDelayed
Indicates when the first test for the condition should be delayed after waiting starts. |
| Method Summary | ||
|---|---|---|
Wait.Waiting |
dontFail()
Sets no failure after waiting timeout. |
|
Wait.Waiting |
failWith(java.lang.CharSequence failureMessage,
java.lang.Object... args)
Returns preset instance of waiting (@see Waiting) with given failure message parametrized by given objects If failure is set to null, timeout will not result to failure! |
|
Wait.Waiting |
failWith(java.lang.Object failureSubject)
Returns Waiting object initialized with given subject of failure. |
|
Wait.Waiting |
interval(long interval)
Sets condition testing interval to this instance and return it. |
|
Wait.Waiting |
noDelay()
Sets no delay by interval between start waiting and first test for conditions. |
|
protected java.lang.RuntimeException |
processFailure()
Prepares a exception for failing the waiting |
|
Wait.Waiting |
timeout(long timeout)
Sets waiting timeout to this instance and return it. |
|
void |
until(Condition condition)
Stars loop waiting to satisfy condition. |
|
|
waitForChange(T oldValue,
Retrieve<T> retrieve)
Waits until Retrieve's implementation doesn't retrieve value other than oldValue. |
|
|
waitForChangeAndReturn(T oldValue,
Retrieve<T> retrieve)
Waits until Retrieve's implementation doesn't retrieve value other than oldValue and this new value returns. |
|
void |
waitForTimeout()
Waits for predefined amount of time. |
|
Wait.Waiting |
withDelay(boolean isDelayed)
Set if testing condition should be delayed of one interval after the start of waiting. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public boolean isDelayed
| Method Detail |
|---|
public Wait.Waiting interval(long interval)
interval - in miliseconds that will be preset to Waiting
public Wait.Waiting timeout(long timeout)
timeout - in miliseconds that will be preset to Waiting
public Wait.Waiting failWith(java.lang.Object failureSubject)
failureSubject - Throwable (used in cause) or any other object (will be
converted to expection message by its string value)
public Wait.Waiting failWith(java.lang.CharSequence failureMessage,
java.lang.Object... args)
failureMessage - character sequence that will be used as message of exception
thrown in case of waiting timeout or null if waiting timeout
shouldn't result to failureargs - arguments to failureMessage which will be use to
parametrization of failureMessage
protected java.lang.RuntimeException processFailure()
public Wait.Waiting dontFail()
public Wait.Waiting noDelay()
public Wait.Waiting withDelay(boolean isDelayed)
isDelayed - true if condition testing should be delayed; false
otherwise
public void until(Condition condition)
condition - what wait for to be satisfiedpublic void waitForTimeout()
public <T> void waitForChange(T oldValue,
Retrieve<T> retrieve)
T - type of value what we are waiting for changeoldValue - value that we are waiting for changeretrieve - implementation of retrieving actual value
public <T> T waitForChangeAndReturn(T oldValue,
Retrieve<T> retrieve)
T - type of value what we are waiting for changeoldValue - value that we are waiting for changeretrieve - implementation of retrieving actual value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||