T - the type of the value which will be verifiedpublic interface FailSafeCondition<T> extends Condition<T>
| Modifier and Type | Method and Description |
|---|---|
FailSafeCondition<T> |
runBefore(Runnable runnable)
Define runnable to execute before the condition is being performed.
|
FailSafeCondition<T> |
runFinally(Runnable runnable)
Define runnable to execute after the condition has been performed.
|
FailSafeCondition<T> |
withMessage(String message)
The message to print on failure.
|
FailSafeCondition<T> |
withTimeoutFactor(double factor)
Sets a factor to speed up or slow down tests.
|
assertEquals, assertThat, assumeEquals, assumeThat, await, await, get, waitUntil, waitUntilEquals@Nonnull FailSafeCondition<T> runFinally(@Nullable Runnable runnable)
runnable - runnable to execute; null to disable execution@Nonnull FailSafeCondition<T> runBefore(@Nullable Runnable runnable)
runnable - runnable to execute; null to disable execution@Nonnull FailSafeCondition<T> withMessage(@Nullable String message)
ConditionwithMessage in interface Condition<T>message - message with debugging hints; null to remove the message@Nonnull FailSafeCondition<T> withTimeoutFactor(@Nonnegative double factor)
ConditionwithTimeoutFactor in interface Condition<T>factor - factor by which to increase the timeout for this conditionCopyright © 2011-2017 CoreMedia AG. All Rights Reserved.