public class WaitAssertionFailStrategy extends AbstractWaitFailStrategy
Strategy to fail with an assertion error if the condition is not fulfilled.
| Constructor and Description |
|---|
WaitAssertionFailStrategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
fail(String reason,
Object function,
Object input,
Throwable exception,
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.
|
addTimeoutDescriptionpublic void fail(@Nullable String reason, @Nonnull Object function, @Nonnull Object input, @Nonnull Throwable exception, @Nonnegative long consumedMillis)
WaitFailStrategyreason - reason of the failurefunction - function evaluatedinput - original input to the functionexception - last exception which got caughtconsumedMillis - consumed millisecondspublic <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)
WaitFailStrategyT - 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 millisecondsCopyright © 2011-2017 CoreMedia AG. All Rights Reserved.