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

rest.RestRuntime Maven / Gradle / Ivy

Go to download

Rest Cucumber allows you to attach a rest client for retrieval of Cucumber feature files and posting of Cucumber test results

There is a newer version: 1.3
Show newest version
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