Package org.jbehave.core.steps
Class MarkUnmatchedStepsAsPending
java.lang.Object
org.jbehave.core.steps.MarkUnmatchedStepsAsPending
- All Implemented Interfaces:
StepCollector
StepCollector that marks unmatched steps as
AbstractStepResult.Pending
. It uses a
StepFinder
to prioritise StepCandidate
s.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jbehave.core.steps.StepCollector
StepCollector.Stage
-
Constructor Summary
ConstructorDescriptionMarkUnmatchedStepsAsPending
(StepFinder stepFinder) MarkUnmatchedStepsAsPending
(StepFinder stepFinder, Keywords keywords) -
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.Stage
of executioncollectScenarioSteps
(List<StepCandidate> stepCandidates, Scenario scenario, Map<String, String> parameters, StepMonitor stepMonitor) Collects all of theStep
s to execute for a scenario.
-
Constructor Details
-
MarkUnmatchedStepsAsPending
public MarkUnmatchedStepsAsPending() -
MarkUnmatchedStepsAsPending
-
MarkUnmatchedStepsAsPending
-
-
Method Details
-
collectBeforeOrAfterStoriesSteps
public List<Step> collectBeforeOrAfterStoriesSteps(List<BeforeOrAfterStep> beforeOrAfterStoriesSteps) Description copied from interface:StepCollector
Creates steps to be executed either before or after stories.- Specified by:
collectBeforeOrAfterStoriesSteps
in interfaceStepCollector
- Parameters:
beforeOrAfterStoriesSteps
- theBeforeOrAfterStep
s- Returns:
- A List of the executable
Step
s
-
collectBeforeOrAfterStorySteps
public List<Step> collectBeforeOrAfterStorySteps(List<BeforeOrAfterStep> beforeOrAfterStorySteps, Meta storyMeta) Description copied from interface:StepCollector
Creates steps to be executed either before or after story.- Specified by:
collectBeforeOrAfterStorySteps
in interfaceStepCollector
- Parameters:
beforeOrAfterStorySteps
- theBeforeOrAfterStep
sstoryMeta
- the storyMeta
parameters- Returns:
- A List of the executable
Step
s
-
collectBeforeScenarioSteps
public List<Step> collectBeforeScenarioSteps(List<BeforeOrAfterStep> beforeScenarioSteps, Meta storyAndScenarioMeta) Description copied from interface:StepCollector
Creates steps to be executed before scenario.- Specified by:
collectBeforeScenarioSteps
in interfaceStepCollector
- Parameters:
beforeScenarioSteps
- theBeforeOrAfterStep
sstoryAndScenarioMeta
- the story and scenarioMeta
parameters- Returns:
- A List of the executable
Step
s
-
collectAfterScenarioSteps
public List<Step> collectAfterScenarioSteps(List<BeforeOrAfterStep> afterScenarioSteps, Meta storyAndScenarioMeta) Description copied from interface:StepCollector
Creates steps to be executed after scenario.- Specified by:
collectAfterScenarioSteps
in interfaceStepCollector
- Parameters:
afterScenarioSteps
- theBeforeOrAfterStep
sstoryAndScenarioMeta
- the story and scenarioMeta
parameters- Returns:
- A List of the executable
Step
s
-
collectLifecycleSteps
public Map<StepCollector.Stage,List<Step>> collectLifecycleSteps(List<StepCandidate> stepCandidates, Lifecycle lifecycle, Meta storyAndScenarioMeta, Scope scope, Map<String, String> parameters, StepMonitor stepMonitor) Description copied from interface:StepCollector
Collects all lifecycle steps to execute perStepCollector.Stage
of execution- Specified by:
collectLifecycleSteps
in interfaceStepCollector
- Parameters:
stepCandidates
- theStepCandidate
slifecycle
- theLifecycle
storyAndScenarioMeta
- the story and scenarioMeta
parametersscope
- theScope
of the lifecycle stepsparameters
- the parametersstepMonitor
- theStepMonitor
- Returns:
- A List of executable
Step
s
-
collectScenarioSteps
public List<Step> collectScenarioSteps(List<StepCandidate> stepCandidates, Scenario scenario, Map<String, String> parameters, StepMonitor stepMonitor) Description copied from interface:StepCollector
Collects all of theStep
s to execute for a scenario.- Specified by:
collectScenarioSteps
in interfaceStepCollector
- Parameters:
stepCandidates
- theStepCandidate
scenario
- theScenario
parameters
- the parametersstepMonitor
- theStepMonitor
- Returns:
- A List of executable
Step
s
-