org.jbehave.core.steps
Class MarkUnmatchedStepsAsPending

java.lang.Object
  extended by org.jbehave.core.steps.MarkUnmatchedStepsAsPending
All Implemented Interfaces:
StepCollector

public class MarkUnmatchedStepsAsPending
extends Object
implements StepCollector

StepCollector that marks unmatched steps as AbstractStepResult.Pending. It uses a StepFinder to collect and prioritise StepCandidates.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jbehave.core.steps.StepCollector
StepCollector.Stage
 
Constructor Summary
MarkUnmatchedStepsAsPending()
           
MarkUnmatchedStepsAsPending(StepFinder stepFinder)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarkUnmatchedStepsAsPending

public MarkUnmatchedStepsAsPending()

MarkUnmatchedStepsAsPending

public MarkUnmatchedStepsAsPending(StepFinder stepFinder)
Method Detail

collectBeforeOrAfterStoriesSteps

public List<Step> collectBeforeOrAfterStoriesSteps(List<CandidateSteps> candidateSteps,
                                                   StepCollector.Stage stage)
Description copied from interface: StepCollector
Collects all of the BeforeStories or AfterStories steps to execute.

Specified by:
collectBeforeOrAfterStoriesSteps in interface StepCollector
stage - the StepCollector.Stage of execution
Returns:
A List of executable Steps

collectBeforeOrAfterStorySteps

public List<Step> collectBeforeOrAfterStorySteps(List<CandidateSteps> candidateSteps,
                                                 Story story,
                                                 StepCollector.Stage stage,
                                                 boolean givenStory)
Description copied from interface: StepCollector
Collects all of the BeforeStory or AfterStory steps to execute.

Specified by:
collectBeforeOrAfterStorySteps in interface StepCollector
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

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

Specified by:
collectBeforeOrAfterScenarioSteps in interface StepCollector
Parameters:
candidateSteps - the CandidateSteps.
failureOccured - whether a failure occured in the scenario execution
Returns:
A List of executable Steps

collectScenarioSteps

public List<Step> collectScenarioSteps(List<CandidateSteps> candidateSteps,
                                       Scenario scenario,
                                       Map<String,String> parameters)
Description copied from interface: StepCollector
Collects all of the Steps to execute for a scenario.

Specified by:
collectScenarioSteps in interface StepCollector
Parameters:
candidateSteps - the CandidateSteps.
scenario - the Scenario.
parameters - the parameters.
Returns:
A List of executable Steps


Copyright © 2003-2011. All Rights Reserved.