public abstract class Condition extends Object
Pause.pause(Condition)
.Modifier and Type | Field and Description |
---|---|
protected static String |
EMPTY_TEXT |
Constructor and Description |
---|
Condition(org.fest.assertions.Description description)
Creates a new
Condition . |
Condition(String description)
Creates a new
. |
Modifier and Type | Method and Description |
---|---|
protected String |
descriptionAddendum()
Returns any text to be added to this condition's description.
|
protected void |
done()
Notification that this condition has been evaluated.
|
abstract boolean |
test()
Checks if the condition has been satisfied.
|
String |
toString()
Returns the
String representation of this condition, which is its description. |
protected static final String EMPTY_TEXT
public Condition(String description)
Condition
.description
- describes this condition.public Condition(org.fest.assertions.Description description)
Condition
.description
- describes this condition.public abstract boolean test()
true
if the condition has been satisfied, otherwise false
.public final String toString()
String
representation of this condition, which is its description.protected String descriptionAddendum()
String
.String
.protected void done()
Pause.pause(Condition)
(and all overloaded methods) when this condition is evaluated (either
it was satisfied or it timed-out.) This is a good place to do any necessary resource cleanup.Copyright © 2007-2013 FEST (Fixtures for Easy Software Testing). All Rights Reserved.