Package net.serenitybdd.screenplay
Class EventualConsequence<T>
java.lang.Object
net.serenitybdd.screenplay.EventualConsequence<T>
- All Implemented Interfaces:
net.serenitybdd.markers.CanBeSilent,Consequence<T>
public class EventualConsequence<T>
extends Object
implements Consequence<T>, net.serenitybdd.markers.CanBeSilent
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEventualConsequence(Consequence<T> consequenceThatMightTakeSomeTime) EventualConsequence(Consequence<T> consequenceThatMightTakeSomeTime, long timeoutInMilliseconds) EventualConsequence(Consequence<T> consequenceThatMightTakeSomeTime, long timeoutInMilliseconds, boolean isSilent) -
Method Summary
Modifier and TypeMethodDescriptionafter(Performable... actions) Evaluate the consequence only after performing the specified tasks.voidevaluateFor(Actor actor) static <T> EventualConsequence<T> eventually(Consequence<T> consequenceThatMightTakeSomeTime) ignoringExceptions(Class<? extends Throwable>... exceptionsToIgnore) booleanisSilent()orComplainWith(Class<? extends Error> complaintType) orComplainWith(Class<? extends Error> complaintType, String complaintDetails) protected voidperformSetupActionsAs(Actor actor) toString()waitingForNoLongerThan(long amount) whenAttemptingTo(Performable performable)
-
Field Details
-
A_SHORT_PERIOD_BETWEEN_TRIES
public static final int A_SHORT_PERIOD_BETWEEN_TRIES- See Also:
-
-
Constructor Details
-
EventualConsequence
public EventualConsequence(Consequence<T> consequenceThatMightTakeSomeTime, long timeoutInMilliseconds) -
EventualConsequence
public EventualConsequence(Consequence<T> consequenceThatMightTakeSomeTime, long timeoutInMilliseconds, boolean isSilent) -
EventualConsequence
-
-
Method Details
-
eventually
public static <T> EventualConsequence<T> eventually(Consequence<T> consequenceThatMightTakeSomeTime) -
waitingForNoLongerThan
-
evaluateFor
- Specified by:
evaluateForin interfaceConsequence<T>
-
toString
-
orComplainWith
- Specified by:
orComplainWithin interfaceConsequence<T>
-
ignoringExceptions
-
orComplainWith
- Specified by:
orComplainWithin interfaceConsequence<T>
-
whenAttemptingTo
- Specified by:
whenAttemptingToin interfaceConsequence<T>
-
because
- Specified by:
becausein interfaceConsequence<T>
-
isSilent
public boolean isSilent()- Specified by:
isSilentin interfacenet.serenitybdd.markers.CanBeSilent
-
withNoReporting
-
after
Description copied from interface:ConsequenceEvaluate the consequence only after performing the specified tasks.- Specified by:
afterin interfaceConsequence<T>
-
performSetupActionsAs
-