public interface WaitFailStrategy
Strategy what to do if a condition does not get fulfilled within time. Possible options are to signal just the timeout or that an assertion/assumption failed.
| Modifier and Type | Method and Description |
|---|---|
void |
fail(String reason,
Object function,
Object input,
Throwable throwable,
long consumedMillis)
Makes a condition fail because the expected value could not be retrieved because of repeating
evaluation exceptions.
|
<T> void |
fail(String reason,
Object function,
Object input,
T lastValue,
org.hamcrest.Matcher<? super T> matcher,
long consumedMillis)
Makes a condition fail because the expected value did not get returned in time.
|
<T> void fail(@Nullable String reason, @Nonnull Object function, @Nonnull Object input, @Nullable T lastValue, @Nonnull org.hamcrest.Matcher<? super T> matcher, @Nonnegative long consumedMillis)
T - the value type returned by the functionreason - reason of the failurefunction - function evaluatedinput - original input to the functionlastValue - the last value retrieved via functionmatcher - the matcher which did not matchconsumedMillis - consumed millisecondsvoid fail(@Nullable String reason, @Nonnull Object function, @Nonnull Object input, @Nonnull Throwable throwable, @Nonnegative long consumedMillis)
reason - reason of the failurefunction - function evaluatedinput - original input to the functionthrowable - last exception which got caughtconsumedMillis - consumed millisecondsCopyright © 2011-2017 CoreMedia AG. All Rights Reserved.