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 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

      public BaseConsequence<T> orComplainWith​(java.lang.Class<? extends java.lang.Error> complaintType)
      Specified by:
      orComplainWith in interface Consequence<T>
    • orComplainWith

      public BaseConsequence<T> orComplainWith​(java.lang.Class<? extends java.lang.Error> complaintType, java.lang.String complaintDetails)
      Specified by:
      orComplainWith in interface Consequence<T>
    • whenAttemptingTo

      public Consequence<T> whenAttemptingTo​(Performable performable)
      Specified by:
      whenAttemptingTo in interface Consequence<T>
    • because

      public Consequence<T> because​(java.lang.String explanation)
      Specified by:
      because in interface Consequence<T>
    • inputValues

      protected java.lang.String inputValues()
    • addRecordedInputValuesTo

      protected java.lang.String addRecordedInputValuesTo​(java.lang.String message)
    • after

      public Consequence<T> after​(Performable... actions)
      Description copied from interface: Consequence
      Evaluate the consequence only after performing the specified tasks.
      Specified by:
      after in interface Consequence<T>
    • performSetupActionsAs

      protected void performSetupActionsAs​(Actor actor)