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

net.serenitybdd.cucumber.suiteslicing.SliceBuilder Maven / Gradle / Ivy

There is a newer version: 4.2.9
Show newest version
package net.serenitybdd.cucumber.suiteslicing;

public class SliceBuilder {

    private int sliceNumber;
    private WeightedCucumberScenarios weightedCucumberScenarios;

    public SliceBuilder(int sliceNumber, WeightedCucumberScenarios weightedCucumberScenarios) {
        this.sliceNumber = sliceNumber;
        this.weightedCucumberScenarios = weightedCucumberScenarios;
    }

    public WeightedCucumberScenarios of(int sliceCount) {
        return weightedCucumberScenarios.sliceInto(sliceCount).get(sliceNumber - 1);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy