Class ExpectTo

java.lang.Object
com.seeq.utilities.ExpectTo

public class ExpectTo extends Object
Collection of methods related to expectations on conditions
  • Constructor Details

    • ExpectTo

      public ExpectTo()
  • Method Details

    • eventually

      public static boolean eventually(Supplier<Boolean> test) throws InterruptedException
      Loops until eventually the passed condition is true. It gives false if the condition is not true in Constants.GENERAL_TIMEOUTtime
      Parameters:
      test - condition to evaluate
      Returns:
      true if the condition passed in the timeframe given by the Constants.GENERAL_TIMEOUT
      Throws:
      InterruptedException - if interrupted