Search in sources :

Example 1 with StepdocReporter

use of org.jbehave.core.reporters.StepdocReporter 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)

Example 2 with StepdocReporter

use of org.jbehave.core.reporters.StepdocReporter in project jbehave-core by jbehave.

the class Embedder method reportStepdocs.

public void reportStepdocs(Configuration configuration, List<CandidateSteps> candidateSteps) {
    StepFinder finder = configuration.stepFinder();
    StepdocReporter reporter = configuration.stepdocReporter();
    List<Object> stepsInstances = finder.stepsInstances(candidateSteps);
    reporter.stepdocs(finder.stepdocs(candidateSteps), stepsInstances);
}
Also used : StepFinder(org.jbehave.core.steps.StepFinder) StepdocReporter(org.jbehave.core.reporters.StepdocReporter)

Aggregations

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