@Unstable(reason="needs more tests") public class WaitUntilSupport extends Object
RuntimeException
is
thrown.Constructor and Description |
---|
WaitUntilSupport() |
Modifier and Type | Method and Description |
---|---|
<T> void |
waitUntil(Callable<T> callable,
org.hamcrest.Matcher<? super T> condition,
int timeoutInSeconds)
Waits until the provided callable fulfills the given condition.
|
void |
waitUntil(Node node,
org.hamcrest.Matcher<Object> condition,
int timeoutInSeconds)
Waits until the provided node fulfills the given condition.
|
<T> void |
waitUntil(T value,
org.hamcrest.Matcher<? super T> condition,
int timeoutInSeconds)
Waits until the provided value fulfills the given condition.
|
<T extends Node> |
waitUntil(T node,
Predicate<T> condition,
int timeoutInSeconds)
Waits until the provided node fulfills the given condition.
|
public <T extends Node> void waitUntil(T node, Predicate<T> condition, int timeoutInSeconds)
node
- the nodecondition
- the conditiontimeoutInSeconds
- the number of seconds to wait before timing out. If the time out is reached, a
RuntimeException
is thrown.public void waitUntil(Node node, org.hamcrest.Matcher<Object> condition, int timeoutInSeconds)
node
- the nodecondition
- the conditionpublic <T> void waitUntil(T value, org.hamcrest.Matcher<? super T> condition, int timeoutInSeconds)
value
- the valuecondition
- the conditiontimeoutInSeconds
- the number of seconds to wait before timing out. If the time out is reached, a
RuntimeException
is thrown.public <T> void waitUntil(Callable<T> callable, org.hamcrest.Matcher<? super T> condition, int timeoutInSeconds)
callable
- the callablecondition
- the conditiontimeoutInSeconds
- the number of seconds to wait before timing out. If the time out is reached, a
RuntimeException
is thrown.