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;
}
Aggregations