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 CandidateSteps. It also collects the steps to run at before/after stages.


Nested Class Summary
static class StepCollector.Stage
           
 
Method Summary
 java.util.List<Step> collectBeforeOrAfterScenarioSteps(java.util.List<CandidateSteps> candidateSteps, Meta storyAndScenarioMeta, StepCollector.Stage stage, ScenarioType type)
          Collects all of the BeforeScenario or AfterScenario steps to execute.
 java.util.List<Step> collectBeforeOrAfterStoriesSteps(java.util.List<CandidateSteps> candidateSteps, StepCollector.Stage stage)
          Collects all of the BeforeStories or AfterStories steps to execute.
 java.util.List<Step> collectBeforeOrAfterStorySteps(java.util.List<CandidateSteps> candidateSteps, Story story, StepCollector.Stage stage, boolean givenStory)
          Collects all of the BeforeStory or AfterStory steps to execute.
 java.util.List<Step> collectScenarioSteps(java.util.List<CandidateSteps> candidateSteps, Scenario scenario, java.util.Map<java.lang.String,java.lang.String> parameters)
          Collects all of the Steps to execute for a scenario.
 

Method Detail

collectBeforeOrAfterStoriesSteps

java.util.List<Step> collectBeforeOrAfterStoriesSteps(java.util.List<CandidateSteps> candidateSteps,
                                                      StepCollector.Stage stage)
Collects all of the BeforeStories or AfterStories steps to execute.

Parameters:
candidateSteps -
stage - the StepCollector.Stage of execution
Returns:
A List of executable Steps

collectBeforeOrAfterStorySteps

java.util.List<Step> collectBeforeOrAfterStorySteps(java.util.List<CandidateSteps> candidateSteps,
                                                    Story story,
                                                    StepCollector.Stage stage,
                                                    boolean givenStory)
Collects all of the BeforeStory or AfterStory steps to execute.

Parameters:
candidateSteps - the CandidateSteps.
story - the Story.
stage - the StepCollector.Stage of execution
givenStory - whether Story is a given story
Returns:
A List of executable Steps

collectBeforeOrAfterScenarioSteps

java.util.List<Step> collectBeforeOrAfterScenarioSteps(java.util.List<CandidateSteps> candidateSteps,
                                                       Meta storyAndScenarioMeta,
                                                       StepCollector.Stage stage,
                                                       ScenarioType type)
Collects all of the BeforeScenario or AfterScenario steps to execute.

Parameters:
candidateSteps - the CandidateSteps.
storyAndScenarioMeta - the story and scenario Meta parameters
type - the ScenarioType

collectScenarioSteps

java.util.List<Step> collectScenarioSteps(java.util.List<CandidateSteps> candidateSteps,
                                          Scenario scenario,
                                          java.util.Map<java.lang.String,java.lang.String> parameters)
Collects all of the Steps to execute for a scenario.

Parameters:
candidateSteps - the CandidateSteps.
scenario - the Scenario.
parameters - the parameters.
Returns:
A List of executable Steps


Copyright © 2003-2012. All Rights Reserved.