public class DefaultBooleanCondition extends DefaultCondition<Boolean> implements BooleanCondition
| Constructor and Description |
|---|
DefaultBooleanCondition(Expression<Boolean> expression,
Timeout timeout) |
| Modifier and Type | Method and Description |
|---|---|
void |
assertFalse()
Convenience method to assert the condition to become false.
|
void |
assertTrue()
Convenience method to assert the condition to become true.
|
void |
assumeFalse()
Convenience method to assume the condition to become false.
|
void |
assumeTrue()
Convenience method to assume the condition to become true.
|
DefaultBooleanCondition |
runBefore(Runnable runnable)
Define runnable to execute before the condition is being performed.
|
DefaultBooleanCondition |
runFinally(Runnable runnable)
Define runnable to execute after the condition has been performed.
|
void |
waitUntilFalse()
Convenience method to wait until the condition becomes false.
|
void |
waitUntilTrue()
Convenience method to wait until the condition becomes true.
|
DefaultBooleanCondition |
withMessage(String newMessage)
The message to print on failure.
|
DefaultBooleanCondition |
withTimeoutFactor(double newFactor)
Sets a factor to speed up or slow down tests.
|
assertEquals, assertThat, assumeEquals, assumeThat, await, await, get, toString, waitUntil, waitUntilEqualsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitassertEquals, assertThat, assumeEquals, assumeThat, await, await, get, waitUntil, waitUntilEqualspublic DefaultBooleanCondition(@Nonnull Expression<Boolean> expression, @Nonnull Timeout timeout)
public final void assumeTrue()
BooleanConditionassumeTrue in interface BooleanConditionpublic final void assumeFalse()
BooleanConditionassumeFalse in interface BooleanConditionpublic final void assertTrue()
BooleanConditionassertTrue in interface BooleanConditionpublic final void assertFalse()
BooleanConditionassertFalse in interface BooleanConditionpublic void waitUntilFalse()
BooleanConditionwaitUntilFalse in interface BooleanConditionpublic void waitUntilTrue()
BooleanConditionwaitUntilTrue in interface BooleanCondition@Nonnull public DefaultBooleanCondition runFinally(@Nullable Runnable runnable)
FailSafeConditionrunFinally in interface FailSafeCondition<Boolean>runFinally in class DefaultCondition<Boolean>runnable - runnable to execute; null to disable execution@Nonnull public DefaultBooleanCondition runBefore(@Nullable Runnable runnable)
FailSafeConditionrunBefore in interface FailSafeCondition<Boolean>runBefore in class DefaultCondition<Boolean>runnable - runnable to execute; null to disable execution@Nonnull public DefaultBooleanCondition withMessage(@Nullable String newMessage)
ConditionwithMessage in interface BooleanConditionwithMessage in interface Condition<Boolean>withMessage in interface FailSafeCondition<Boolean>withMessage in class DefaultCondition<Boolean>newMessage - message with debugging hints; null to remove the message@Nonnull public DefaultBooleanCondition withTimeoutFactor(@Nonnegative double newFactor)
ConditionwithTimeoutFactor in interface BooleanConditionwithTimeoutFactor in interface Condition<Boolean>withTimeoutFactor in interface FailSafeCondition<Boolean>withTimeoutFactor in class DefaultCondition<Boolean>newFactor - factor by which to increase the timeout for this conditionCopyright © 2011-2017 CoreMedia AG. All Rights Reserved.