use of org.jbehave.core.steps.Stepdoc in project jbehave-core by jbehave.
the class PrintStreamStepdocReporter method outputStepdocs.
private void outputStepdocs(List<Stepdoc> stepdocs) {
for (Stepdoc stepdoc : stepdocs) {
output(format(STEPDOC, stepdoc.getStartingWord(), stepdoc.getPattern()));
output(stepdoc.getMethodSignature());
}
}
use of org.jbehave.core.steps.Stepdoc in project jbehave-core by jbehave.
the class Embedder method reportMatchingStepdocs.
public void reportMatchingStepdocs(String stepAsString) {
Configuration configuration = configuration();
List<CandidateSteps> candidateSteps = candidateSteps();
StepFinder finder = configuration.stepFinder();
StepdocReporter reporter = configuration.stepdocReporter();
List<Stepdoc> matching = finder.findMatching(stepAsString, candidateSteps);
List<Object> stepsInstances = finder.stepsInstances(candidateSteps);
reporter.stepdocsMatching(stepAsString, matching, stepsInstances);
}
Aggregations