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
Modifier and TypeFieldDescription -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
addRecordedInputValuesTo
(String message) after
(Performable... actions) Evaluate the consequence only after performing the specified tasks.protected Error
protected String
orComplainWith
(Class<? extends Error> complaintType) orComplainWith
(Class<? extends Error> complaintType, String complaintDetails) protected void
performSetupActionsAs
(Actor actor) protected boolean
protected void
throwComplaintTypeErrorIfSpecified
(Throwable actualError) whenAttemptingTo
(Performable performable) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
orComplainWith
in interfaceConsequence<T>
-
orComplainWith
public BaseConsequence<T> orComplainWith(Class<? extends Error> complaintType, String complaintDetails) - Specified by:
orComplainWith
in interfaceConsequence<T>
-
whenAttemptingTo
- Specified by:
whenAttemptingTo
in interfaceConsequence<T>
-
because
- Specified by:
because
in interfaceConsequence<T>
-
inputValues
-
addRecordedInputValuesTo
-
after
Description copied from interface:Consequence
Evaluate the consequence only after performing the specified tasks.- Specified by:
after
in interfaceConsequence<T>
-
performSetupActionsAs
-