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) |
| 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) |
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) |
protected org.jbehave.core.steps.ParameterConverters |
getParameterConverters()
getter for field parameterConverters.
|
protected com.thoughtworks.paranamer.Paranamer |
getParanamer()
getter for field paranamer.
|
protected UnitilsStepCreator.ParameterName |
parameterName(String[] annotatedNames,
String[] paranamerNames,
int i)
This method checks if a parameter is annotated or not and transforms this information into a
UnitilsStepCreator.ParameterName. |
protected UnitilsStepCreator.ParameterName[] |
parameterNames(Method method)
Returns the
UnitilsStepCreator.ParameterName representations for the method,
providing an abstraction that supports both annotated and non-annotated
parameters. |
protected String[] |
paranamerParameterNames(Method method)
Extract parameter names using
Paranamer.lookupParameterNames(AccessibleObject, boolean) |
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 - stepsFactory - parameterConverters - parameterControls - stepMatcher - stepMonitor - public org.jbehave.core.steps.Step createBeforeOrAfterStep(Method method, org.jbehave.core.model.Meta meta)
createBeforeOrAfterStep in class org.jbehave.core.steps.StepCreatorStepCreator.createBeforeOrAfterStep(java.lang.reflect.Method, org.jbehave.core.model.Meta)protected UnitilsStepCreator.ParameterName[] parameterNames(Method method)
UnitilsStepCreator.ParameterName representations for the method,
providing an abstraction that supports both annotated and non-annotated
parameters.method - the MethodUnitilsStepCreator.ParameterNamesprotected UnitilsStepCreator.ParameterName parameterName(String[] annotatedNames, String[] paranamerNames, int i)
UnitilsStepCreator.ParameterName.annotatedNames - paranamerNames - i - UnitilsStepCreator.ParameterNamepublic org.jbehave.core.steps.Step createAfterStepUponOutcome(Method method, org.jbehave.core.annotations.AfterScenario.Outcome outcome, org.jbehave.core.model.Meta storyAndScenarioMeta)
createAfterStepUponOutcome in class org.jbehave.core.steps.StepCreatormethod - outcome - storyAndScenarioMeta - 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 - outcome - storyAndScenarioMeta - step - StepStepCreator.createAfterStepUponOutcome(java.lang.reflect.Method, org.jbehave.core.annotations.AfterScenario.Outcome, org.jbehave.core.model.Meta)protected String[] paranamerParameterNames(Method method)
Paranamer.lookupParameterNames(AccessibleObject, boolean)method - the Method inspected by Paranamerprotected 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 © 2014. All Rights Reserved.