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 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)
Lists all the
BeforeOrAfterSteps of a specific type. |
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. |
public UnitilsSteps(org.jbehave.core.configuration.Configuration configuration,
Class<?> type,
org.jbehave.core.steps.InjectableStepsFactory stepsFactory)
configuration - : the configuration of JBehave.type - : the type of the step.stepsFactory - : the stepsfactory.public List<org.jbehave.core.steps.BeforeOrAfterStep> listBeforeOrAfterScenario(org.jbehave.core.annotations.ScenarioType type)
BeforeOrAfterSteps of a specific type.listBeforeOrAfterScenario in interface org.jbehave.core.steps.CandidateStepslistBeforeOrAfterScenario in class org.jbehave.core.steps.Stepstype - : any/normal/exampleListSteps.listBeforeOrAfterScenario(org.jbehave.core.annotations.ScenarioType)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)
protected org.jbehave.core.annotations.ScenarioType scenarioType(Method method, Class<? extends Annotation> annotationClass)
ScenarioType out of the BeforeScenario or AfterScenario.method - : the method in the stepannotationClass - : check if this annotation exists on the methodScenarioTypeprotected org.jbehave.core.steps.BeforeOrAfterStep createBeforeOrAfterStep(org.jbehave.core.steps.StepCollector.Stage stage,
Method method)
BeforeOrAfterStep.stage - : before/aftermethod - : the method in the step.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 - : before/aftermethod - : the method in the stepoutcome - : success/failure/anyBeforeOrAfterStepprotected org.jbehave.core.annotations.AfterScenario.Outcome scenarioOutcome(Method method, Class<? extends Annotation> annotationClass)
AfterScenario.Outcome out of the AfterScenario.method - : the method in the step.annotationClass - : check if this annotation exists on the method.AfterScenario.Outcomeprotected 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 - : check if this annotation exists on the method.stepType - : the type of the stepstepPatternAsString - : the pattern of the steppriority - : the priority of the stepconfiguration - : the JBehave configurationStepCandidatepublic org.jbehave.core.steps.StepCreator createStepCreator()
UnitilsStepCreator.StepCreatorpublic org.jbehave.core.steps.InjectableStepsFactory getStepsFactory()
InjectableStepsFactoryCopyright © 2015. All Rights Reserved.