org.jbehave.core.steps
Interface CandidateSteps

All Known Implementing Classes:
Steps

public interface CandidateSteps

Interface providing the list of candidate steps, representing methods annotated with @Given, @When or @Then, that can be matched. It also provides the list of runnable steps, representing methods annotated with @BeforeStory,


Method Summary
 Configuration configuration()
          Returns the configuration
 java.util.List<CandidateStep> listCandidates()
          Returns the candidate steps that can be matched
 java.util.List<Step> runAfterScenario()
          Returns the steps to run after each scenario
 java.util.List<Step> runAfterStory(boolean givenStory)
          Returns the steps to run after each story, based on the given story status
 java.util.List<Step> runBeforeScenario()
          Returns the steps to run before each scenario
 java.util.List<Step> runBeforeStory(boolean givenStory)
          Returns the steps to run before each story, based on the given story status
 

Method Detail

listCandidates

java.util.List<CandidateStep> listCandidates()
Returns the candidate steps that can be matched

Returns:
The list of candidate steps

runBeforeStory

java.util.List<Step> runBeforeStory(boolean givenStory)
Returns the steps to run before each story, based on the given story status

Parameters:
givenStory - the boolean flag denoting if it's a given story
Returns:
The list of runnable steps

runAfterStory

java.util.List<Step> runAfterStory(boolean givenStory)
Returns the steps to run after each story, based on the given story status

Parameters:
givenStory - the boolean flag denoting if it's a given story
Returns:
The list of runnable steps

runBeforeScenario

java.util.List<Step> runBeforeScenario()
Returns the steps to run before each scenario

Returns:
The list of runnable steps

runAfterScenario

java.util.List<Step> runAfterScenario()
Returns the steps to run after each scenario

Returns:
The list of runnable steps

configuration

Configuration configuration()
Returns the configuration

Returns:
The Configuration


Copyright © 2003-2010. All Rights Reserved.