org.fest.swing.core
Class EdtSafeCondition

java.lang.Object
  extended by org.fest.swing.timing.Condition
      extended by org.fest.swing.core.EdtSafeCondition

public abstract class EdtSafeCondition
extends Condition

Understands a Condition that is evaluated in the event dispatch thread (EDT.)

Since:
1.2
Author:
Alex Ruiz

Field Summary
 
Fields inherited from class org.fest.swing.timing.Condition
EMPTY_TEXT
 
Constructor Summary
EdtSafeCondition(org.fest.assertions.Description description)
          Creates a new EdtSafeCondition.
EdtSafeCondition(String description)
          Creates a new EdtSafeCondition.
 
Method Summary
 boolean test()
          Checks if the condition has been satisfied.
protected abstract  boolean testInEDT()
          Checks if the condition has been satisfied.
 
Methods inherited from class org.fest.swing.timing.Condition
descriptionAddendum, done, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EdtSafeCondition

public EdtSafeCondition(String description)
Creates a new EdtSafeCondition.

Parameters:
description - describes this condition.

EdtSafeCondition

public EdtSafeCondition(org.fest.assertions.Description description)
Creates a new EdtSafeCondition.

Parameters:
description - describes this condition.
Method Detail

test

public final boolean test()
Checks if the condition has been satisfied.

Specified by:
test in class Condition
Returns:
true if the condition has been satisfied, otherwise false.

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:
true if the condition has been satisfied, otherwise false.


Copyright © 2007-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.