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
public abstract class BaseConsequence<T> extends java.lang.Object implements Consequence<T>
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Optional<java.lang.String>
explanation
protected java.util.Optional<java.lang.String>
subjectText
-
Constructor Summary
Constructors Constructor Description BaseConsequence()
-
Method Summary
Modifier and Type Method Description protected java.lang.String
addRecordedInputValuesTo(java.lang.String message)
Consequence<T>
after(Performable... actions)
Evaluate the consequence only after performing the specified tasks.Consequence<T>
because(java.lang.String explanation)
protected java.lang.Error
errorFrom(java.lang.Throwable actualError)
protected java.lang.String
inputValues()
BaseConsequence<T>
orComplainWith(java.lang.Class<? extends java.lang.Error> complaintType)
BaseConsequence<T>
orComplainWith(java.lang.Class<? extends java.lang.Error> complaintType, java.lang.String complaintDetails)
protected void
performSetupActionsAs(Actor actor)
protected boolean
thisStepShouldBeIgnored()
protected void
throwComplaintTypeErrorIfSpecified(java.lang.Error actualError)
Consequence<T>
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
protected java.util.Optional<java.lang.String> explanation -
subjectText
protected java.util.Optional<java.lang.String> subjectText
-
-
Constructor Details
-
BaseConsequence
public BaseConsequence()
-
-
Method Details
-
errorFrom
protected java.lang.Error errorFrom(java.lang.Throwable actualError) -
throwComplaintTypeErrorIfSpecified
protected void throwComplaintTypeErrorIfSpecified(java.lang.Error actualError) -
thisStepShouldBeIgnored
protected boolean thisStepShouldBeIgnored() -
orComplainWith
- Specified by:
orComplainWith
in interfaceConsequence<T>
-
orComplainWith
public BaseConsequence<T> orComplainWith(java.lang.Class<? extends java.lang.Error> complaintType, java.lang.String complaintDetails)- Specified by:
orComplainWith
in interfaceConsequence<T>
-
whenAttemptingTo
- Specified by:
whenAttemptingTo
in interfaceConsequence<T>
-
because
- Specified by:
because
in interfaceConsequence<T>
-
inputValues
protected java.lang.String inputValues() -
addRecordedInputValuesTo
protected java.lang.String addRecordedInputValuesTo(java.lang.String message) -
after
Description copied from interface:Consequence
Evaluate the consequence only after performing the specified tasks.- Specified by:
after
in interfaceConsequence<T>
-
performSetupActionsAs
-