Search in sources :

Example 56 with Embedder

use of org.jbehave.core.embedder.Embedder in project serenity-jbehave by serenity-bdd.

the class SerenityReportingRunner method buildCandidateSteps.

private List<CandidateSteps> buildCandidateSteps() {
    List<CandidateSteps> candidateSteps;
    InjectableStepsFactory stepsFactory = configurableEmbedder.stepsFactory();
    if (stepsFactory != null) {
        candidateSteps = stepsFactory.createCandidateSteps();
    } else {
        Embedder embedder = getConfiguredEmbedder();
        candidateSteps = embedder.candidateSteps();
        if (candidateSteps == null || candidateSteps.isEmpty()) {
            candidateSteps = embedder.stepsFactory().createCandidateSteps();
        }
    }
    return candidateSteps;
}
Also used : InjectableStepsFactory(org.jbehave.core.steps.InjectableStepsFactory) CandidateSteps(org.jbehave.core.steps.CandidateSteps) ExtendedEmbedder(net.serenitybdd.jbehave.embedders.ExtendedEmbedder) Embedder(org.jbehave.core.embedder.Embedder) ConfigurableEmbedder(org.jbehave.core.ConfigurableEmbedder)

Aggregations

Embedder (org.jbehave.core.embedder.Embedder)56 Test (org.junit.Test)33 InjectableEmbedder (org.jbehave.core.InjectableEmbedder)25 ConfigurableEmbedder (org.jbehave.core.ConfigurableEmbedder)10 MojoFailureException (org.apache.maven.plugin.MojoFailureException)8 EmbedderControls (org.jbehave.core.embedder.EmbedderControls)7 Configuration (org.jbehave.core.configuration.Configuration)6 MostUsefulConfiguration (org.jbehave.core.configuration.MostUsefulConfiguration)6 File (java.io.File)5 Properties (java.util.Properties)5 Matchers.containsString (org.hamcrest.Matchers.containsString)5 UsingEmbedder (org.jbehave.core.annotations.UsingEmbedder)5 CandidateSteps (org.jbehave.core.steps.CandidateSteps)5 StoryPathResolver (org.jbehave.core.io.StoryPathResolver)4 HashSet (java.util.HashSet)3 Artifact (org.apache.maven.artifact.Artifact)3 Build (org.apache.maven.model.Build)3 MavenProject (org.apache.maven.project.MavenProject)3 ArchiverManager (org.codehaus.plexus.archiver.manager.ArchiverManager)3 StoryFinder (org.jbehave.core.io.StoryFinder)3