pickles.Pickle Maven / Gradle / Ivy
The newest version!
package pickles;
import java.util.ArrayList;
import java.util.List;
import static java.util.Arrays.asList;
public class Pickle {
private final String name;
private final List steps;
private final List tags;
private final List source;
public Pickle(String name, List steps, List tags, PickleLocation... source) {
this.name = name;
this.tags = tags;
this.steps = new ArrayList<>(steps);
this.source = asList(source);
}
public void addTestStep(PickleStep pickleStep) {
steps.add(pickleStep);
}
public String getName() {
return name;
}
public List getSteps() {
return steps;
}
public List getSource() {
return source;
}
}