Package com.seeq.utilities
Class ExpectTo
java.lang.Object
com.seeq.utilities.ExpectTo
Collection of methods related to expectations on conditions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
eventually
(Supplier<Boolean> test) Loops until eventually the passed condition is true.
-
Constructor Details
-
ExpectTo
public ExpectTo()
-
-
Method Details
-
eventually
Loops until eventually the passed condition is true. It gives false if the condition is not true inConstants.GENERAL_TIMEOUT
time- Parameters:
test
- condition to evaluate- Returns:
- true if the condition passed in the timeframe given by the
Constants.GENERAL_TIMEOUT
- Throws:
InterruptedException
- if interrupted
-