use of org.jbehave.core.embedder.PerformableTree.ExamplePerformableScenario in project serenity-jbehave by serenity-bdd.
the class JUnitDescriptionGenerator method insertDescriptionForExamples.
private void insertDescriptionForExamples(PerformableScenario performableScenario, Description scenarioDescription) {
Scenario scenario = performableScenario.getScenario();
for (ExamplePerformableScenario examplePerformableScenario : performableScenario.getExamples()) {
Description exampleRowDescription = Description.createSuiteDescription(configuration.keywords().examplesTableRow() + " " + examplePerformableScenario.getParameters());
scenarioDescription.addChild(exampleRowDescription);
if (hasGivenStories(scenario)) {
insertGivenStories(scenario, exampleRowDescription);
}
addScenarioSteps(ScenarioType.EXAMPLE, scenario, exampleRowDescription);
}
}
Aggregations