Package net.serenitybdd.screenplay
Class BaseConsequence<T>
java.lang.Object
net.serenitybdd.screenplay.BaseConsequence<T>
- All Implemented Interfaces:
Consequence<T>
- Direct Known Subclasses:
BooleanQuestionConsequence,ConsequenceGroup,PredicateConsequence,QuestionConsequence
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringaddRecordedInputValuesTo(String message) after(Performable... actions) Evaluate the consequence only after performing the specified tasks.protected Errorprotected StringorComplainWith(Class<? extends Error> complaintType) orComplainWith(Class<? extends Error> complaintType, String complaintDetails) protected voidperformSetupActionsAs(Actor actor) protected booleanprotected voidthrowComplaintTypeErrorIfSpecified(Throwable actualError) whenAttemptingTo(Performable performable) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.serenitybdd.screenplay.Consequence
evaluateFor
-
Field Details
-
explanation
-
subjectText
-
-
Constructor Details
-
BaseConsequence
public BaseConsequence()
-
-
Method Details
-
errorFrom
-
throwComplaintTypeErrorIfSpecified
-
thisStepShouldBeIgnored
protected boolean thisStepShouldBeIgnored() -
orComplainWith
- Specified by:
orComplainWithin interfaceConsequence<T>
-
orComplainWith
public BaseConsequence<T> orComplainWith(Class<? extends Error> complaintType, String complaintDetails) - Specified by:
orComplainWithin interfaceConsequence<T>
-
whenAttemptingTo
- Specified by:
whenAttemptingToin interfaceConsequence<T>
-
because
- Specified by:
becausein interfaceConsequence<T>
-
inputValues
-
addRecordedInputValuesTo
-
after
Description copied from interface:ConsequenceEvaluate the consequence only after performing the specified tasks.- Specified by:
afterin interfaceConsequence<T>
-
performSetupActionsAs
-