public class UnitilsStepCreator
extends org.jbehave.core.steps.StepCreator
UnitilsStepCreator is a little bit modified.| Modifier and Type | Class and Description |
|---|---|
static class |
UnitilsStepCreator.Jsr330Helper
This is a different class, because the @Inject jar may not be in the classpath.
|
protected class |
UnitilsStepCreator.MethodInvoker
invokes methods (@see MethodInvoker from
StepCreator (private class)) |
static class |
UnitilsStepCreator.ParameterName
Parameter: name of the parameter + is there an annotation.
|
class |
UnitilsStepCreator.StepCreatorBeforeOrAfterStep
This class is just like a BeforeOrAFterStep in the
StepCreator. |
protected class |
UnitilsStepCreator.UnitilsFailureStep
In
AfterScenario.Outcome you can define when this scenario step should be invoked. |
protected class |
UnitilsStepCreator.UnitilsUponSuccessStep
In
AfterScenario.Outcome you can define when this scenario step should be invoked. |
org.jbehave.core.steps.StepCreator.AbstractStep, org.jbehave.core.steps.StepCreator.IgnorableStep, org.jbehave.core.steps.StepCreator.ParameterNotFound, org.jbehave.core.steps.StepCreator.ParametrisedStep, org.jbehave.core.steps.StepCreator.PendingStep, org.jbehave.core.steps.StepCreator.UponAnyParametrisedStep, org.jbehave.core.steps.StepCreator.UponFailureParametrisedStep, org.jbehave.core.steps.StepCreator.UponFailureStep, org.jbehave.core.steps.StepCreator.UponSuccessParametrisedStep, org.jbehave.core.steps.StepCreator.UponSuccessStep| Constructor and Description |
|---|
UnitilsStepCreator(Class<?> stepsType,
org.jbehave.core.steps.InjectableStepsFactory stepsFactory,
org.jbehave.core.steps.ParameterConverters parameterConverters,
org.jbehave.core.steps.ParameterControls parameterControls,
org.jbehave.core.parsers.StepMatcher stepMatcher,
org.jbehave.core.steps.StepMonitor stepMonitor)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected String[] |
annotatedParameterNames(Method method)
Extract parameter names using
Named-annotated parameters |
protected String |
annotationName(Annotation annotation)
Returns either the value of the annotation, either
Named or "javax.inject.Named". |
org.jbehave.core.steps.Step |
createAfterStepUponOutcome(Method method,
org.jbehave.core.annotations.AfterScenario.Outcome outcome,
org.jbehave.core.model.Meta storyAndScenarioMeta)
Creates a new
Step depending on the org.jbehave.core.model.Outcome. |
org.jbehave.core.steps.Step |
createAfterStepUponOutcome(Method method,
org.jbehave.core.annotations.AfterScenario.Outcome outcome,
org.jbehave.core.model.Meta storyAndScenarioMeta,
org.jbehave.core.steps.BeforeOrAfterStep step)
Creates a new
Step |
org.jbehave.core.steps.Step |
createBeforeOrAfterStep(Method method,
org.jbehave.core.model.Meta meta)
This method creates a new
UnitilsStepCreator.StepCreatorBeforeOrAfterStep. |
protected org.jbehave.core.steps.ParameterConverters |
getParameterConverters()
getter for field parameterConverters.
|
protected com.thoughtworks.paranamer.Paranamer |
getParanamer()
getter for field paranamer.
|
public UnitilsStepCreator(Class<?> stepsType, org.jbehave.core.steps.InjectableStepsFactory stepsFactory, org.jbehave.core.steps.ParameterConverters parameterConverters, org.jbehave.core.steps.ParameterControls parameterControls, org.jbehave.core.parsers.StepMatcher stepMatcher, org.jbehave.core.steps.StepMonitor stepMonitor)
stepsType - : the type of the step.stepsFactory - : an InjectableStepsFactoryparameterConverters - : a ParameterConvertersparameterControls - : a ParameterControlsstepMatcher - : a StepMatcherstepMonitor - : a StepMonitorpublic org.jbehave.core.steps.Step createBeforeOrAfterStep(Method method, org.jbehave.core.model.Meta meta)
UnitilsStepCreator.StepCreatorBeforeOrAfterStep.createBeforeOrAfterStep in class org.jbehave.core.steps.StepCreatormeta - : the Meta data defined in the story.method - : the methodStepStepCreator.createBeforeOrAfterStep(java.lang.reflect.Method, org.jbehave.core.model.Meta)public org.jbehave.core.steps.Step createAfterStepUponOutcome(Method method, org.jbehave.core.annotations.AfterScenario.Outcome outcome, org.jbehave.core.model.Meta storyAndScenarioMeta)
Step depending on the org.jbehave.core.model.Outcome.createAfterStepUponOutcome in class org.jbehave.core.steps.StepCreatormethod - : the methodoutcome - : any/success/failurestoryAndScenarioMeta - : The Meta defined in the story and scenario.StepStepCreator.createAfterStepUponOutcome(java.lang.reflect.Method,
org.jbehave.core.annotations.AfterScenario.Outcome, org.jbehave.core.model.Meta)public org.jbehave.core.steps.Step createAfterStepUponOutcome(Method method, org.jbehave.core.annotations.AfterScenario.Outcome outcome, org.jbehave.core.model.Meta storyAndScenarioMeta, org.jbehave.core.steps.BeforeOrAfterStep step)
Stepmethod - : the methodoutcome - : any/success/failurestoryAndScenarioMeta - : The Meta defined in the story and scenariostep - : a BeforeOrAfterStepStepStepCreator.createAfterStepUponOutcome(java.lang.reflect.Method,
org.jbehave.core.annotations.AfterScenario.Outcome, org.jbehave.core.model.Meta)protected String[] annotatedParameterNames(Method method)
Named-annotated parametersmethod - the Method with Named-annotated parametersnull values for parameters that are not
annotatedprotected String annotationName(Annotation annotation)
Named or "javax.inject.Named".annotation - the Annotationnull if no annotation is foundprotected org.jbehave.core.steps.ParameterConverters getParameterConverters()
ParameterConvertersprotected com.thoughtworks.paranamer.Paranamer getParanamer()
ParanamerCopyright © 2015. All Rights Reserved.