All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.serenitybdd.screenplay.Performable Maven / Gradle / Ivy

There is a newer version: 4.2.9
Show newest version
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()
 * --
 *
 */
@FunctionalInterface
public interface  Performable extends SkipNested {
     void performAs(T actor);
    default Performable then(Performable nextPerformable) {
        return CompositePerformable.from(this, nextPerformable);
    };
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy