Package org.jbehave.core.steps
Class MarkUnmatchedStepsAsPending
- java.lang.Object
-
- org.jbehave.core.steps.MarkUnmatchedStepsAsPending
-
- All Implemented Interfaces:
StepCollector
public class MarkUnmatchedStepsAsPending extends Object implements StepCollector
StepCollector that marks unmatched steps asAbstractStepResult.Pending
. It uses aStepFinder
to prioritiseStepCandidate
s.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jbehave.core.steps.StepCollector
StepCollector.Stage
-
-
Constructor Summary
Constructors Constructor Description MarkUnmatchedStepsAsPending()
MarkUnmatchedStepsAsPending(StepFinder stepFinder)
MarkUnmatchedStepsAsPending(StepFinder stepFinder, Keywords keywords)
-
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.
-
-
-
Constructor Detail
-
MarkUnmatchedStepsAsPending
public MarkUnmatchedStepsAsPending()
-
MarkUnmatchedStepsAsPending
public MarkUnmatchedStepsAsPending(StepFinder stepFinder)
-
MarkUnmatchedStepsAsPending
public MarkUnmatchedStepsAsPending(StepFinder stepFinder, Keywords keywords)
-
-
Method Detail
-
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, 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 stepsstepMonitor
- 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
-
-