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

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

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

import org.apache.commons.lang3.builder.HashCodeBuilder;

import java.math.BigDecimal;
import java.util.Set;

import static org.apache.commons.lang3.builder.EqualsBuilder.reflectionEquals;
import static org.apache.commons.lang3.builder.ToStringBuilder.reflectionToString;

public class WeightedCucumberScenario {

    public final String featurePath;
    public final String feature;
    public final String scenario;
    public final int scenarioCount;
    public final BigDecimal weighting;
    public final Set tags;

    public WeightedCucumberScenario(String featurePath, String feature, String scenario, BigDecimal weighting, Set tags, int scenarioCount) {
        this.featurePath = featurePath;
        this.feature = feature;
        this.scenario = scenario;
        this.weighting = weighting;
        this.tags = tags;
        this.scenarioCount = scenarioCount;
    }

    public BigDecimal weighting() {
        return weighting;
    }

    @Override
    public int hashCode() {
        return HashCodeBuilder.reflectionHashCode(this);
    }

    @Override
    public boolean equals(Object obj) {
        return reflectionEquals(this, obj);
    }

    @Override
    public String toString() {
        return reflectionToString(this);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy