Package org.fest.swing.core
Class EdtSafeCondition
java.lang.Object
org.fest.swing.timing.Condition
org.fest.swing.core.EdtSafeCondition
Understands a
Condition that is evaluated in the event dispatch thread (EDT.)- Since:
- 1.2
-
Field Summary
Fields inherited from class org.fest.swing.timing.Condition
EMPTY_TEXT -
Constructor Summary
ConstructorsConstructorDescriptionEdtSafeCondition(String description) Creates a newEdtSafeCondition.EdtSafeCondition(org.fest.assertions.Description description) Creates a newEdtSafeCondition. -
Method Summary
Methods inherited from class org.fest.swing.timing.Condition
descriptionAddendum, done, toString
-
Constructor Details
-
EdtSafeCondition
Creates a newEdtSafeCondition.- Parameters:
description- describes this condition.
-
EdtSafeCondition
public EdtSafeCondition(org.fest.assertions.Description description) Creates a newEdtSafeCondition.- Parameters:
description- describes this condition.
-
-
Method Details
-
test
public final boolean test()Checks if the condition has been satisfied. -
testInEDT
protected abstract boolean testInEDT()Checks if the condition has been satisfied. This method is guaranteed to be executed in the event dispatch thread.- Returns:
trueif the condition has been satisfied, otherwisefalse.
-