public abstract class BaseConsequence<T> extends Object implements Consequence<T>
| Modifier and Type | Field and Description |
|---|---|
protected Optional<String> |
explanation |
protected Optional<String> |
subjectText |
| Constructor and Description |
|---|
BaseConsequence() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
addRecordedInputValuesTo(String message) |
Consequence<T> |
after(Performable... actions)
Evaluate the consequence only after performing the specified tasks.
|
Consequence<T> |
because(String explanation) |
protected Error |
errorFrom(Throwable actualError) |
protected String |
inputValues() |
BaseConsequence<T> |
orComplainWith(Class<? extends Error> complaintType) |
BaseConsequence<T> |
orComplainWith(Class<? extends Error> complaintType,
String complaintDetails) |
protected void |
performSetupActionsAs(Actor actor) |
protected boolean |
thisStepShouldBeIgnored() |
protected void |
throwComplaintTypeErrorIfSpecified(Throwable actualError) |
Consequence<T> |
whenAttemptingTo(Performable performable) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitevaluateForprotected void throwComplaintTypeErrorIfSpecified(Throwable actualError)
protected boolean thisStepShouldBeIgnored()
public BaseConsequence<T> orComplainWith(Class<? extends Error> complaintType)
orComplainWith in interface Consequence<T>public BaseConsequence<T> orComplainWith(Class<? extends Error> complaintType, String complaintDetails)
orComplainWith in interface Consequence<T>public Consequence<T> whenAttemptingTo(Performable performable)
whenAttemptingTo in interface Consequence<T>public Consequence<T> because(String explanation)
because in interface Consequence<T>protected String inputValues()
public Consequence<T> after(Performable... actions)
Consequenceafter in interface Consequence<T>protected void performSetupActionsAs(Actor actor)
Copyright © 2021. All rights reserved.