Class EdtSafeCondition

java.lang.Object
org.fest.swing.timing.Condition
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
  • Constructor Details

    • 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 Details

    • 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.