Package org.jbehave.core.steps
Interface StepCollector
- All Known Implementing Classes:
MarkUnmatchedStepsAsPending
public interface StepCollector
Represents the strategy for the collection of executable
Steps from a story or scenario matching a list of
StepCandidates. It also collects the steps to run at before/after stages.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptioncollectAfterScenarioSteps(List<BeforeOrAfterStep> afterScenarioSteps, Meta storyAndScenarioMeta) Creates steps to be executed after scenario.collectBeforeOrAfterStoriesSteps(List<BeforeOrAfterStep> beforeOrAfterStoriesSteps) Creates steps to be executed either before or after stories.collectBeforeOrAfterStorySteps(List<BeforeOrAfterStep> beforeOrAfterStorySteps, Meta storyMeta) Creates steps to be executed either before or after story.collectBeforeScenarioSteps(List<BeforeOrAfterStep> beforeScenarioSteps, Meta storyAndScenarioMeta) Creates steps to be executed before scenario.collectLifecycleSteps(List<StepCandidate> stepCandidates, Lifecycle lifecycle, Meta storyAndScenarioMeta, Scope scope, Map<String, String> parameters, StepMonitor stepMonitor) Collects all lifecycle steps to execute perStepCollector.Stageof executioncollectScenarioSteps(List<StepCandidate> stepCandidates, Scenario scenario, Map<String, String> parameters, StepMonitor stepMonitor) Collects all of theSteps to execute for a scenario.
-
Method Details
-
collectBeforeOrAfterStoriesSteps
Creates steps to be executed either before or after stories.- Parameters:
beforeOrAfterStoriesSteps- theBeforeOrAfterSteps- Returns:
- A List of the executable
Steps
-
collectBeforeOrAfterStorySteps
List<Step> collectBeforeOrAfterStorySteps(List<BeforeOrAfterStep> beforeOrAfterStorySteps, Meta storyMeta) Creates steps to be executed either before or after story.- Parameters:
beforeOrAfterStorySteps- theBeforeOrAfterStepsstoryMeta- the storyMetaparameters- Returns:
- A List of the executable
Steps
-
collectBeforeScenarioSteps
List<Step> collectBeforeScenarioSteps(List<BeforeOrAfterStep> beforeScenarioSteps, Meta storyAndScenarioMeta) Creates steps to be executed before scenario.- Parameters:
beforeScenarioSteps- theBeforeOrAfterStepsstoryAndScenarioMeta- the story and scenarioMetaparameters- Returns:
- A List of the executable
Steps
-
collectAfterScenarioSteps
List<Step> collectAfterScenarioSteps(List<BeforeOrAfterStep> afterScenarioSteps, Meta storyAndScenarioMeta) Creates steps to be executed after scenario.- Parameters:
afterScenarioSteps- theBeforeOrAfterStepsstoryAndScenarioMeta- the story and scenarioMetaparameters- Returns:
- A List of the executable
Steps
-
collectLifecycleSteps
Map<StepCollector.Stage,List<Step>> collectLifecycleSteps(List<StepCandidate> stepCandidates, Lifecycle lifecycle, Meta storyAndScenarioMeta, Scope scope, Map<String, String> parameters, StepMonitor stepMonitor) Collects all lifecycle steps to execute perStepCollector.Stageof execution- Parameters:
stepCandidates- theStepCandidateslifecycle- theLifecyclestoryAndScenarioMeta- the story and scenarioMetaparametersscope- theScopeof the lifecycle stepsparameters- the parametersstepMonitor- theStepMonitor- Returns:
- A List of executable
Steps
-
collectScenarioSteps
List<Step> collectScenarioSteps(List<StepCandidate> stepCandidates, Scenario scenario, Map<String, String> parameters, StepMonitor stepMonitor) Collects all of theSteps to execute for a scenario.- Parameters:
stepCandidates- theStepCandidatescenario- theScenarioparameters- the parametersstepMonitor- theStepMonitor- Returns:
- A List of executable
Steps
-