rest.RestRuntime Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rest-cucumber Show documentation
Show all versions of rest-cucumber Show documentation
Rest Cucumber allows you to attach a rest client for retrieval of Cucumber feature files and posting of Cucumber test results
package rest;
import java.util.ArrayList;
import java.util.List;
import cucumber.runtime.ClassFinder;
import cucumber.runtime.Runtime;
import cucumber.runtime.RuntimeOptions;
import cucumber.runtime.io.ResourceLoader;
import cucumber.runtime.model.CucumberFeature;
public class RestRuntime {
private CucumberFeature currentCucumberFeature;
private List results;
private Runtime runtime;
public RestRuntime(ResourceLoader resourceLoader, ClassFinder classFinder,
ClassLoader classLoader, RuntimeOptions runtimeOptions) {
runtime = new Runtime(resourceLoader, classFinder, classLoader, runtimeOptions);
results = new ArrayList();
}
public RestRuntime(Runtime runtime) {
this.runtime = runtime;
results = new ArrayList();
}
public void setCurrentCucumberFeature(CucumberFeature cucumberFeature) {
currentCucumberFeature = cucumberFeature;
}
public CucumberFeature getCurrentCucumberFeature() {
return currentCucumberFeature;
}
public void addContainer(CucumberFeatureResultContainer container) {
results.add(container);
}
public List getResults() {
return results;
}
public Runtime getRuntime() {
return runtime;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy