use of org.jbehave.core.steps.PendingStepMethodGenerator in project jbehave-core by jbehave.
the class StoryRunner method generatePendingStepMethods.
private void generatePendingStepMethods(RunContext context, List<Step> steps) {
List<PendingStep> pendingSteps = new ArrayList<>();
for (Step step : steps) {
if (step instanceof PendingStep) {
pendingSteps.add((PendingStep) step);
}
}
if (!pendingSteps.isEmpty()) {
PendingStepMethodGenerator generator = new PendingStepMethodGenerator(context.configuration().keywords());
List<String> methods = new ArrayList<>();
for (PendingStep pendingStep : pendingSteps) {
if (!pendingStep.annotated()) {
methods.add(generator.generateMethod(pendingStep));
}
}
reporter.get().pendingMethods(methods);
}
}
Aggregations