
net.serenitybdd.screenplay.SilentPerformableFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of serenity-screenplay Show documentation
Show all versions of serenity-screenplay Show documentation
Support for the User Journey pattern in Serenity
package net.serenitybdd.screenplay;
import net.serenitybdd.markers.CanBeSilent;
import java.util.function.Consumer;
public class SilentPerformableFunction implements Performable, CanBeSilent {
private final Consumer actions;
public SilentPerformableFunction(Consumer actions) {
this.actions = actions;
}
@Override
public void performAs(T actor) {
actions.accept(actor);
}
@Override
public boolean isSilent() {
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy