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
 List<Step> collectBeforeOrAfterScenarioSteps(List<CandidateSteps> candidateSteps, StepCollector.Stage stage, boolean failureOccured)
          Collects all of the BeforeScenario or AfterScenario steps to execute.
 List<Step> collectBeforeOrAfterStoriesSteps(List<CandidateSteps> candidateSteps, StepCollector.Stage stage)
          Collects all of the BeforeStories or AfterStories steps to execute.
 List<Step> collectBeforeOrAfterStorySteps(List<CandidateSteps> candidateSteps, Story story, StepCollector.Stage stage, boolean givenStory)
          Collects all of the BeforeStory or AfterStory steps to execute.
 List<Step> collectScenarioSteps(List<CandidateSteps> candidateSteps, Scenario scenario, Map<String,String> parameters)
          Collects all of the Steps to execute for a scenario.
 

Method Detail

collectBeforeOrAfterStoriesSteps

List<Step> collectBeforeOrAfterStoriesSteps(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

List<Step> collectBeforeOrAfterStorySteps(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

List<Step> collectBeforeOrAfterScenarioSteps(List<CandidateSteps> candidateSteps,
                                             StepCollector.Stage stage,
                                             boolean failureOccured)
Collects all of the BeforeScenario or AfterScenario steps to execute.

Parameters:
candidateSteps - the CandidateSteps.
failureOccured - whether a failure occured in the scenario execution
parameters - the parameters.
Returns:
A List of executable Steps

collectScenarioSteps

List<Step> collectScenarioSteps(List<CandidateSteps> candidateSteps,
                                Scenario scenario,
                                Map<String,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-2011. All Rights Reserved.