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

io.cucumber.testng.Pickle Maven / Gradle / Ivy

There is a newer version: 7.19.0
Show newest version
package io.cucumber.testng;

import org.apiguardian.api.API;

import java.net.URI;
import java.util.List;

/**
 * Wraps CucumberPickle to avoid exposing it as part of the public api.
 */
@API(status = API.Status.STABLE)
public final class Pickle {

    private final io.cucumber.core.gherkin.Pickle pickle;

    Pickle(io.cucumber.core.gherkin.Pickle pickle) {
        this.pickle = pickle;
    }

    io.cucumber.core.gherkin.Pickle getPickle() {
        return pickle;
    }

    public String getName() {
        return pickle.getName();
    }

    public int getScenarioLine() {
        return pickle.getScenarioLocation().getLine();
    }

    public int getLine() {
        return pickle.getLocation().getLine();
    }

    public List getTags() {
        return pickle.getTags();
    }

    public URI getUri() {
        return pickle.getUri();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy