
net.serenitybdd.screenplay.AnonymousTask 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.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