Search in sources :

Example 1 with Stepdoc

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());
    }
}
Also used : Stepdoc(org.jbehave.core.steps.Stepdoc)

Example 2 with Stepdoc

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);
}
Also used : StepFinder(org.jbehave.core.steps.StepFinder) Configuration(org.jbehave.core.configuration.Configuration) MostUsefulConfiguration(org.jbehave.core.configuration.MostUsefulConfiguration) Stepdoc(org.jbehave.core.steps.Stepdoc) CandidateSteps(org.jbehave.core.steps.CandidateSteps) StepdocReporter(org.jbehave.core.reporters.StepdocReporter)

Aggregations

Stepdoc (org.jbehave.core.steps.Stepdoc)2 Configuration (org.jbehave.core.configuration.Configuration)1 MostUsefulConfiguration (org.jbehave.core.configuration.MostUsefulConfiguration)1 StepdocReporter (org.jbehave.core.reporters.StepdocReporter)1 CandidateSteps (org.jbehave.core.steps.CandidateSteps)1 StepFinder (org.jbehave.core.steps.StepFinder)1