|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fest.swing.timing.Condition
public abstract class Condition
Understands a condition to verify, usually used in the method
.
Pause.pause(Condition)
Field Summary | |
---|---|
protected static String |
EMPTY_TEXT
|
Constructor Summary | |
---|---|
Condition(org.fest.assertions.Description description)
Creates a new Condition . |
|
Condition(String description)
Creates a new . |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final String EMPTY_TEXT
Constructor Detail |
---|
public Condition(String description)
Condition
.
description
- describes this condition.public Condition(org.fest.assertions.Description description)
Condition
.
description
- describes this condition.Method Detail |
---|
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.
toString
in class Object
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |