net.serenitybdd.screenplay.Performable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of serenity-journey Show documentation
Show all versions of serenity-journey Show documentation
Support for the User Journey pattern in Serenity
package net.serenitybdd.screenplay;
import net.serenitybdd.core.SkipNested;
/**
* A task or action that can be performed by an actor.
*
*
* It is common to use builder methods to create instances of the Performable class, in order to make the tests read
* more fluently. For example:
*
* [source,java]
* --
* purchase().anApple().thatCosts(0).dollars()
* --
*
*/
public interface Performable extends SkipNested {
void performAs(T actor);
}