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

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

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