Package org.jbehave.core.steps
Interface StepCollector
-
- All Known Implementing Classes:
MarkUnmatchedStepsAsPending
public interface StepCollector
Represents the strategy for the collection of executableStep
s from a story or scenario matching a list ofStepCandidate
s. It also collects the steps to run at before/after stages.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
StepCollector.Stage
-
Method Summary
Modifier and Type Method Description List<Step>
collectAfterScenarioSteps(List<BeforeOrAfterStep> afterScenarioSteps, Meta storyAndScenarioMeta)
Creates steps to be executed after scenario.List<Step>
collectBeforeOrAfterStoriesSteps(List<BeforeOrAfterStep> beforeOrAfterStoriesSteps)
Creates steps to be executed either before or after stories.List<Step>
collectBeforeOrAfterStorySteps(List<BeforeOrAfterStep> beforeOrAfterStorySteps, Meta storyMeta)
Creates steps to be executed either before or after story.List<Step>
collectBeforeScenarioSteps(List<BeforeOrAfterStep> beforeScenarioSteps, Meta storyAndScenarioMeta)
Creates steps to be executed before scenario.Map<StepCollector.Stage,List<Step>>
collectLifecycleSteps(List<StepCandidate> stepCandidates, Lifecycle lifecycle, Meta storyAndScenarioMeta, Scope scope, StepMonitor stepMonitor)
Collects all lifecycle steps to execute perStepCollector.Stage
of executionList<Step>
collectScenarioSteps(List<StepCandidate> stepCandidates, Scenario scenario, Map<String,String> parameters, StepMonitor stepMonitor)
Collects all of theStep
s to execute for a scenario.
-
-
-
Method Detail
-
collectBeforeOrAfterStoriesSteps
List<Step> collectBeforeOrAfterStoriesSteps(List<BeforeOrAfterStep> beforeOrAfterStoriesSteps)
Creates steps to be executed either before or after stories.- Parameters:
beforeOrAfterStoriesSteps
- theBeforeOrAfterStep
s- Returns:
- A List of the executable
Step
s
-
collectBeforeOrAfterStorySteps
List<Step> collectBeforeOrAfterStorySteps(List<BeforeOrAfterStep> beforeOrAfterStorySteps, Meta storyMeta)
Creates steps to be executed either before or after story.- Parameters:
beforeOrAfterStorySteps
- theBeforeOrAfterStep
sstoryMeta
- the storyMeta
parameters- Returns:
- A List of the executable
Step
s
-
collectBeforeScenarioSteps
List<Step> collectBeforeScenarioSteps(List<BeforeOrAfterStep> beforeScenarioSteps, Meta storyAndScenarioMeta)
Creates steps to be executed before scenario.- Parameters:
beforeScenarioSteps
- theBeforeOrAfterStep
sstoryAndScenarioMeta
- the story and scenarioMeta
parameters- Returns:
- A List of the executable
Step
s
-
collectAfterScenarioSteps
List<Step> collectAfterScenarioSteps(List<BeforeOrAfterStep> afterScenarioSteps, Meta storyAndScenarioMeta)
Creates steps to be executed after scenario.- Parameters:
afterScenarioSteps
- theBeforeOrAfterStep
sstoryAndScenarioMeta
- the story and scenarioMeta
parameters- Returns:
- A List of the executable
Step
s
-
collectLifecycleSteps
Map<StepCollector.Stage,List<Step>> collectLifecycleSteps(List<StepCandidate> stepCandidates, Lifecycle lifecycle, Meta storyAndScenarioMeta, Scope scope, StepMonitor stepMonitor)
Collects all lifecycle steps to execute perStepCollector.Stage
of execution- Parameters:
stepCandidates
- theStepCandidate
slifecycle
- theLifecycle
storyAndScenarioMeta
- the story and scenarioMeta
parametersscope
- theScope
of the lifecycle stepsstepMonitor
- theStepMonitor
- Returns:
- A List of executable
Step
s
-
collectScenarioSteps
List<Step> collectScenarioSteps(List<StepCandidate> stepCandidates, Scenario scenario, Map<String,String> parameters, StepMonitor stepMonitor)
Collects all of theStep
s to execute for a scenario.- Parameters:
stepCandidates
- theStepCandidate
scenario
- theScenario
parameters
- the parametersstepMonitor
- theStepMonitor
- Returns:
- A List of executable
Step
s
-
-