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

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

There is a newer version: 4.2.12
Show newest version
package net.serenitybdd.screenplay;

import net.serenitybdd.markers.CanBeSilent;

import java.util.List;

public class AnonymousTask extends AnonymousPerformable implements Task, CanBeSilent {

    private boolean isSilent = false;

    public AnonymousTask(){}

    public AnonymousTask(String title, List steps) {
        super(title, steps);
    }

    public AnonymousPerformableFieldSetter with(String fieldName) {
        return new AnonymousPerformableFieldSetter<>(this, fieldName);
    }

    @Override
    public boolean isSilent() {
        return isSilent;
    }

    public AnonymousTask withNoReporting() {
        this.isSilent = true;
        return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy