com.qmetry.qaf.automation.cucumber.bdd2.model.BDD2ScenarioOutline Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qaf-cucumber Show documentation
Show all versions of qaf-cucumber Show documentation
Functional test automation framework for web, mobile-web, mobile native and web-service
package com.qmetry.qaf.automation.cucumber.bdd2.model;
import java.util.Collection;
import java.util.List;
import java.util.stream.Collectors;
import gherkin.ast.ScenarioDefinition;
import io.cucumber.core.gherkin.Examples;
import io.cucumber.core.gherkin.ScenarioOutline;
public class BDD2ScenarioOutline extends BDD2Scenario implements ScenarioOutline {
private final List children;
BDD2ScenarioOutline(ScenarioDefinition scenarioDefinition) {
super(scenarioDefinition);
this.children = ((gherkin.ast.ScenarioOutline) scenarioDefinition).getExamples().stream()
.map(BDD2Examples::new)
.collect(Collectors.toList());
}
@Override
public Collection children() {
return children;
}
}