net.serenitybdd.screenplay.Consequence Maven / Gradle / Ivy
package net.serenitybdd.screenplay;
public interface Consequence {
void evaluateFor(Actor actor);
Consequence orComplainWith(Class extends Error> complaintType);
Consequence orComplainWith(Class extends Error> complaintType, String complaintDetails);
Consequence whenAttemptingTo(Performable performable);
Consequence because(String explanation);
/**
* Evaluate the consequence only after performing the specified tasks.
*/
Consequence after(Performable... setupActions);
}