
net.serenitybdd.screenplay.EventualConsequenceBuilder 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;
public class EventualConsequenceBuilder {
private final Consequence consequence;
private final long amount;
public EventualConsequenceBuilder(Consequence consequence, long amount) {
this.consequence = consequence;
this.amount = amount;
}
public EventualConsequence milliseconds() {
return new EventualConsequence(consequence, amount);
}
public EventualConsequence seconds() {
return new EventualConsequence(consequence, amount * 1000);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy