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

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

There is a newer version: 4.2.9
Show newest version
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 - 2024 Weber Informatics LLC | Privacy Policy