public class UnitilsSteps
extends org.jbehave.core.steps.Steps
Steps: This class will add the correct steps to the runner.| Constructor and Description |
|---|
UnitilsSteps(org.jbehave.core.configuration.Configuration configuration,
Class<?> type,
org.jbehave.core.steps.InjectableStepsFactory stepsFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCandidate(List<org.jbehave.core.steps.StepCandidate> candidates,
Method method,
org.jbehave.core.steps.StepType stepType,
String stepPatternAsString,
int priority)
This method makes a new
StepCandidate and adds it to the list of candidates. |
protected void |
addCandidatesFromAliases(List<org.jbehave.core.steps.StepCandidate> candidates,
Method method,
org.jbehave.core.steps.StepType stepType,
int priority)
Adds new
StepCandidates. |
protected void |
addCandidatesFromVariants(List<org.jbehave.core.steps.StepCandidate> candidates,
Method method,
org.jbehave.core.steps.StepType stepType,
String value,
int priority)
Adds new
StepCandidates. |
protected void |
checkForDuplicateCandidates(List<org.jbehave.core.steps.StepCandidate> candidates,
org.jbehave.core.steps.StepType stepType,
String patternAsString)
checks for duplicate
StepCandidates. |
protected org.jbehave.core.steps.BeforeOrAfterStep |
createBeforeOrAfterStep(org.jbehave.core.steps.StepCollector.Stage stage,
Method method)
This method creates a basic
BeforeOrAfterStep. |
protected org.jbehave.core.steps.BeforeOrAfterStep |
createBeforeOrAfterStep(org.jbehave.core.steps.StepCollector.Stage stage,
Method method,
org.jbehave.core.annotations.AfterScenario.Outcome outcome)
This method creates a basic
BeforeOrAfterStep. |
protected org.jbehave.core.steps.StepCandidate |
createCandidate(Method method,
org.jbehave.core.steps.StepType stepType,
String stepPatternAsString,
int priority,
org.jbehave.core.configuration.Configuration configuration)
This method creates a new
UnitilsStepCandidate. |
org.jbehave.core.steps.StepCreator |
createStepCreator()
This method creates a new
UnitilsStepCreator. |
org.jbehave.core.steps.InjectableStepsFactory |
getStepsFactory()
This is a getter for the stepsFactory.
|
List<org.jbehave.core.steps.BeforeOrAfterStep> |
listBeforeOrAfterScenario(org.jbehave.core.annotations.ScenarioType type) |
List<org.jbehave.core.steps.BeforeOrAfterStep> |
listBeforeOrAfterStory(boolean givenStory) |
List<org.jbehave.core.steps.StepCandidate> |
listCandidates()
This method creates all the
StepCandidates for a specific type. |
protected boolean |
runnableStoryStep(Annotation annotation,
boolean givenStory)
Check if an annotation is a runnable story step.
|
protected org.jbehave.core.annotations.AfterScenario.Outcome |
scenarioOutcome(Method method,
Class<? extends Annotation> annotationClass)
Get the
AfterScenario.Outcome out of the AfterScenario. |
protected List<org.jbehave.core.steps.BeforeOrAfterStep> |
scenarioStepsHaving(org.jbehave.core.annotations.ScenarioType type,
org.jbehave.core.steps.StepCollector.Stage stage,
Class<? extends Annotation> annotationClass,
org.jbehave.core.annotations.AfterScenario.Outcome... outcomes)
Creates a list of scenarios by Stage.
|
protected org.jbehave.core.annotations.ScenarioType |
scenarioType(Method method,
Class<? extends Annotation> annotationClass)
This methods gets the
ScenarioType out of the BeforeScenario or AfterScenario. |
protected List<org.jbehave.core.steps.BeforeOrAfterStep> |
stepsHaving(org.jbehave.core.steps.StepCollector.Stage stage,
Class<? extends Annotation> annotationClass,
boolean givenStory)
|
protected boolean |
uponGivenStory(Annotation annotation)
check the value of the
BeforeStory.uponGivenStory() or AfterStory.uponGivenStory(). |
public UnitilsSteps(org.jbehave.core.configuration.Configuration configuration,
Class<?> type,
org.jbehave.core.steps.InjectableStepsFactory stepsFactory)
configuration - type - stepsFactory - public List<org.jbehave.core.steps.BeforeOrAfterStep> listBeforeOrAfterScenario(org.jbehave.core.annotations.ScenarioType type)
listBeforeOrAfterScenario in interface org.jbehave.core.steps.CandidateStepslistBeforeOrAfterScenario in class org.jbehave.core.steps.StepsSteps.listBeforeOrAfterScenario(org.jbehave.core.annotations.ScenarioType)public List<org.jbehave.core.steps.BeforeOrAfterStep> listBeforeOrAfterStory(boolean givenStory)
listBeforeOrAfterStory in interface org.jbehave.core.steps.CandidateStepslistBeforeOrAfterStory in class org.jbehave.core.steps.StepsSteps.listBeforeOrAfterStory(boolean)protected List<org.jbehave.core.steps.BeforeOrAfterStep> scenarioStepsHaving(org.jbehave.core.annotations.ScenarioType type, org.jbehave.core.steps.StepCollector.Stage stage, Class<? extends Annotation> annotationClass, org.jbehave.core.annotations.AfterScenario.Outcome... outcomes)
type - stage - annotationClass - outcomes - Listprotected List<org.jbehave.core.steps.BeforeOrAfterStep> stepsHaving(org.jbehave.core.steps.StepCollector.Stage stage, Class<? extends Annotation> annotationClass, boolean givenStory)
stage - annotationClass - givenStory - Listprotected boolean runnableStoryStep(Annotation annotation, boolean givenStory)
annotation - givenStory - Booleanprotected boolean uponGivenStory(Annotation annotation)
BeforeStory.uponGivenStory() or AfterStory.uponGivenStory().annotation - protected org.jbehave.core.annotations.ScenarioType scenarioType(Method method, Class<? extends Annotation> annotationClass)
ScenarioType out of the BeforeScenario or AfterScenario.method - annotationClass - ScenarioTypeprotected org.jbehave.core.steps.BeforeOrAfterStep createBeforeOrAfterStep(org.jbehave.core.steps.StepCollector.Stage stage,
Method method)
BeforeOrAfterStep.stage - method - BeforeOrAfterStepprotected org.jbehave.core.steps.BeforeOrAfterStep createBeforeOrAfterStep(org.jbehave.core.steps.StepCollector.Stage stage,
Method method,
org.jbehave.core.annotations.AfterScenario.Outcome outcome)
BeforeOrAfterStep.stage - method - outcome - BeforeOrAfterStepprotected org.jbehave.core.annotations.AfterScenario.Outcome scenarioOutcome(Method method, Class<? extends Annotation> annotationClass)
AfterScenario.Outcome out of the AfterScenario.method - annotationClass - protected org.jbehave.core.steps.StepCandidate createCandidate(Method method, org.jbehave.core.steps.StepType stepType, String stepPatternAsString, int priority, org.jbehave.core.configuration.Configuration configuration)
UnitilsStepCandidate.method - stepType - stepPatternAsString - priority - configuration - StepCandidateprotected void addCandidate(List<org.jbehave.core.steps.StepCandidate> candidates, Method method, org.jbehave.core.steps.StepType stepType, String stepPatternAsString, int priority)
StepCandidate and adds it to the list of candidates.candidates - method - stepType - stepPatternAsString - priority - protected void addCandidatesFromVariants(List<org.jbehave.core.steps.StepCandidate> candidates, Method method, org.jbehave.core.steps.StepType stepType, String value, int priority)
StepCandidates.candidates - method - stepType - value - priority - protected void addCandidatesFromAliases(List<org.jbehave.core.steps.StepCandidate> candidates, Method method, org.jbehave.core.steps.StepType stepType, int priority)
StepCandidates.candidates - method - stepType - priority - protected void checkForDuplicateCandidates(List<org.jbehave.core.steps.StepCandidate> candidates, org.jbehave.core.steps.StepType stepType, String patternAsString)
StepCandidates.candidates - stepType - patternAsString - public List<org.jbehave.core.steps.StepCandidate> listCandidates()
StepCandidates for a specific type.listCandidates in interface org.jbehave.core.steps.CandidateStepslistCandidates in class org.jbehave.core.steps.StepsSteps.listCandidates()public org.jbehave.core.steps.StepCreator createStepCreator()
UnitilsStepCreator.StepCreatorpublic org.jbehave.core.steps.InjectableStepsFactory getStepsFactory()
InjectableStepsFactoryCopyright © 2014. All Rights Reserved.