public interface Wait
Wait until an expectation is met. Validate the expectation with decelerating polling intervals.
| Modifier and Type | Method and Description |
|---|---|
<F,T> T |
until(F input,
com.google.common.base.Function<? super F,T> stateQuery)
Wait until the given input passes its state query without ignorable exception.
|
<F,T> T |
until(F input,
com.google.common.base.Function<? super F,T> stateQuery,
org.hamcrest.Matcher<? super T> matcher)
Wait until an expectation is met.
|
<F,T> T |
until(String message,
F input,
com.google.common.base.Function<? super F,T> stateQuery,
org.hamcrest.Matcher<? super T> matcher)
Wait until an expectation is met.
|
<F,T> T until(@Nonnull F input, @Nonnull com.google.common.base.Function<? super F,T> stateQuery)
Wait until the given input passes its state query without ignorable exception.
This call is equal to:
until(null, input, stateQuery, null)
F - the input typeT - the return type of the state queryinput - the input to pass to the query function; if implementing SelfDescribing the
description of input will be queried on failurestateQuery - the function to query the state of input; if implementing SelfDescribing the
description of stateQuery will be queried on failureIgnorableStateQueryException<F,T> T until(@Nonnull F input, @Nonnull com.google.common.base.Function<? super F,T> stateQuery, @Nullable org.hamcrest.Matcher<? super T> matcher)
Wait until an expectation is met. Validate the expectation with decelerating polling intervals.
F - the input typeT - the return type of the state queryinput - the input to pass to the query function; if implementing SelfDescribing the
description of input will be queried on failurestateQuery - the function to query the state of input; if implementing SelfDescribing the
description of stateQuery will be queried on failurematcher - the matcher to validate the result of the query; null to match any returned value<F,T> T until(@Nullable String message, @Nonnull F input, @Nonnull com.google.common.base.Function<? super F,T> stateQuery, @Nullable org.hamcrest.Matcher<? super T> matcher)
Wait until an expectation is met. Validate the expectation with decelerating polling intervals.
F - the input typeT - the return type of the state querymessage - the message to print on failure; null for no additional messageinput - the input to pass to the query function; if implementing SelfDescribing the
description of input will be queried on failurestateQuery - the function to query the state of input; if implementing SelfDescribing the
description of stateQuery will be queried on failurematcher - the matcher to validate the result of the query; null to match any returned valueCopyright © 2011-2017 CoreMedia AG. All Rights Reserved.