rest.RestResourceIterator 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.Iterator;
import java.util.List;
import cucumber.runtime.io.Resource;
public class RestResourceIterator implements Iterator {
private List issues;
private Iterator i;
public RestResourceIterator(List issues) {
this.issues = new ArrayList(issues);
i = this.issues.iterator();
}
public boolean hasNext() {
return i.hasNext();
}
public Resource next() {
return (Resource) i.next();
}
public void remove() {
i.remove();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy