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>explanationprotected java.util.Optional<java.lang.String>subjectText -
Constructor Summary
Constructors Constructor Description BaseConsequence() -
Method Summary
Modifier and Type Method Description protected java.lang.StringaddRecordedInputValuesTo(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.ErrorerrorFrom(java.lang.Throwable actualError)protected java.lang.StringinputValues()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 voidperformSetupActionsAs(Actor actor)protected booleanthisStepShouldBeIgnored()protected voidthrowComplaintTypeErrorIfSpecified(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, waitMethods 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:
orComplainWithin interfaceConsequence<T>
-
orComplainWith
public BaseConsequence<T> orComplainWith(java.lang.Class<? extends java.lang.Error> complaintType, java.lang.String complaintDetails)- Specified by:
orComplainWithin interfaceConsequence<T>
-
whenAttemptingTo
- Specified by:
whenAttemptingToin interfaceConsequence<T>
-
because
- Specified by:
becausein interfaceConsequence<T>
-
inputValues
protected java.lang.String inputValues() -
addRecordedInputValuesTo
protected java.lang.String addRecordedInputValuesTo(java.lang.String message) -
after
Description copied from interface:ConsequenceEvaluate the consequence only after performing the specified tasks.- Specified by:
afterin interfaceConsequence<T>
-
performSetupActionsAs
-