| Interface | Description |
|---|---|
| BooleanCondition |
Specialized condition for boolean states (true/false).
|
| Condition<T> |
A test condition to wait for using a given timeout.
|
| ConditionFactory |
Interface for factories providing conditions.
|
| FailSafeCondition<T> |
Condition which ensures that a runnable is executed after the condition
has been performed.
|
| Class | Description |
|---|---|
| DefaultBooleanCondition | |
| DefaultCondition<T> |
An abstract implementation for conditions.
|
| DefaultConditionFactory |
Default implementation of
ConditionFactory. |
| WaitAssertionFailStrategy |
Strategy to fail with an assertion error if the condition is not fulfilled.
|
| WaitAssumptionFailStrategy |
Strategy to fail with an assumption violation if the condition is not fulfilled.
|
Conditions to be used during testing. A condition knows how to get the state of an element to verify and can perform verifications on this element if a requested state is reached.
The central interface is Condition. All class implementing this interface should
also implement FailSafeCondition. This interface is hidden at first
glance to represent a small API to the condition users. Typically those building conditions will need
the interface FailSafeCondition to configure the
behavior of the condition.
Fail Strategies
Conditions provide three ways to fail which refer to JUnit failure states skipped, failed and error:
Sketch of Condition-Expression-Matcher-Triad:
Copyright © 2011-2017 CoreMedia AG. All Rights Reserved.