Package org.jbehave.core.steps
Interface CandidateSteps
- All Known Implementing Classes:
AbstractCandidateSteps
,CompositeCandidateSteps
,Steps
public interface CandidateSteps
Interface providing the list of step candidates, representing methods
annotated with
@Given
, @When
or @Then
that can be matched. It also provides the list of before and after steps,
representing methods annotated with @BeforeStories
,
@AfterStories
,
@BeforeStory
,
@AfterStory
,
@BeforeScenario
,
@AfterScenario
, that do not require any matching.-
Method Summary
Modifier and TypeMethodDescriptionReturns the after scenario stepsReturns the after stories stepslistAfterStory
(boolean givenStory) Returns the after story steps, based on the given story statusReturns the before scenario stepsReturns the before stories stepslistBeforeStory
(boolean givenStory) Returns the before story steps, based on the given story statusReturns the step candidates that can be matched
-
Method Details
-
listCandidates
List<StepCandidate> listCandidates()Returns the step candidates that can be matched- Returns:
- The list of step candidates
-
listBeforeStories
List<BeforeOrAfterStep> listBeforeStories()Returns the before stories steps- Returns:
- The list of the before stories steps
-
listAfterStories
List<BeforeOrAfterStep> listAfterStories()Returns the after stories steps- Returns:
- The list of the after stories steps
-
listBeforeStory
Returns the before story steps, based on the given story status- Parameters:
givenStory
- the boolean flag denoting if it's a given story- Returns:
- The list of the before story steps
-
listAfterStory
Returns the after story steps, based on the given story status- Parameters:
givenStory
- the boolean flag denoting if it's a given story- Returns:
- The list of the after story steps
-
listBeforeScenario
Map<ScenarioType,List<BeforeOrAfterStep>> listBeforeScenario()Returns the before scenario steps- Returns:
- The list of the before scenario steps
-
listAfterScenario
Map<ScenarioType,List<BeforeOrAfterStep>> listAfterScenario()Returns the after scenario steps- Returns:
- The list of the after scenario steps
-