io.cucumber.testng.Pickle Maven / Gradle / Ivy
The 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();
}
}