Package org.jbehave.core.steps
Class StepCreator
- java.lang.Object
-
- org.jbehave.core.steps.StepCreator
-
public class StepCreator extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStepCreator.AbstractStepstatic classStepCreator.CommentclassStepCreator.ConditionalStepstatic classStepCreator.IgnorableStepstatic classStepCreator.Jsr330HelperThis is a different class, because the @Inject jar may not be in the classpath.static classStepCreator.ParameterNotFoundclassStepCreator.ParametrisedStepstatic classStepCreator.PendingStepstatic classStepCreator.ReportingAbstractStepstatic classStepCreator.StepExecutionType
-
Field Summary
Fields Modifier and Type Field Description static UUIDExceptionWrapperNO_FAILUREstatic StringPARAMETER_TABLE_ENDstatic StringPARAMETER_TABLE_STARTstatic StringPARAMETER_VALUE_ENDstatic StringPARAMETER_VALUE_NEWLINEstatic StringPARAMETER_VALUE_STARTstatic StringPARAMETER_VERBATIM_ENDstatic StringPARAMETER_VERBATIM_START
-
Constructor Summary
Constructors Constructor Description StepCreator(Class<?> stepsType, InjectableStepsFactory stepsFactory, StepsContext stepsContext, ParameterConverters parameterConverters, ParameterControls parameterControls, StepMatcher stepMatcher, StepMonitor stepMonitor)
-
Method Summary
Modifier and Type Method Description StepcreateAfterStepUponOutcome(Method method, AfterScenario.Outcome outcome, Meta storyAndScenarioMeta)StepcreateBeforeOrAfterStep(Method method, Meta meta)static StepcreateComment(String stepAsString)StepcreateConditionalStep(StepConditionMatcher stepConditionMatcher, Map<Method,StepCreator.ParametrisedStep> parametrisedSteps)static StepcreateIgnorableStep(String stepAsString)StepcreateParametrisedStep(Method method, String stepAsString, String stepWithoutStartingWord, Map<String,String> namedParameters, List<Step> composedSteps)StepcreateParametrisedStepUponOutcome(Method method, String stepAsString, String stepWithoutStartingWord, Map<String,String> namedParameters, List<Step> composedSteps, AfterScenario.Outcome outcome)static StepcreatePendingStep(String stepAsString, String previousNonAndStep)voiddoDryRun(boolean dryRun)Map<String,String>matchedParameters(Method method, String stepWithoutStartingWord, Map<String,String> namedParameters)ObjectstepsInstance()voiduseParanamer(com.thoughtworks.paranamer.Paranamer paranamer)voiduseStepMonitor(StepMonitor stepMonitor)
-
-
-
Field Detail
-
PARAMETER_TABLE_START
public static final String PARAMETER_TABLE_START
- See Also:
- Constant Field Values
-
PARAMETER_TABLE_END
public static final String PARAMETER_TABLE_END
- See Also:
- Constant Field Values
-
PARAMETER_VERBATIM_START
public static final String PARAMETER_VERBATIM_START
- See Also:
- Constant Field Values
-
PARAMETER_VERBATIM_END
public static final String PARAMETER_VERBATIM_END
- See Also:
- Constant Field Values
-
PARAMETER_VALUE_START
public static final String PARAMETER_VALUE_START
- See Also:
- Constant Field Values
-
PARAMETER_VALUE_END
public static final String PARAMETER_VALUE_END
- See Also:
- Constant Field Values
-
PARAMETER_VALUE_NEWLINE
public static final String PARAMETER_VALUE_NEWLINE
- See Also:
- Constant Field Values
-
NO_FAILURE
public static final UUIDExceptionWrapper NO_FAILURE
-
-
Constructor Detail
-
StepCreator
public StepCreator(Class<?> stepsType, InjectableStepsFactory stepsFactory, StepsContext stepsContext, ParameterConverters parameterConverters, ParameterControls parameterControls, StepMatcher stepMatcher, StepMonitor stepMonitor)
-
-
Method Detail
-
useStepMonitor
public void useStepMonitor(StepMonitor stepMonitor)
-
useParanamer
public void useParanamer(com.thoughtworks.paranamer.Paranamer paranamer)
-
doDryRun
public void doDryRun(boolean dryRun)
-
stepsInstance
public Object stepsInstance()
-
createAfterStepUponOutcome
public Step createAfterStepUponOutcome(Method method, AfterScenario.Outcome outcome, Meta storyAndScenarioMeta)
-
matchedParameters
public Map<String,String> matchedParameters(Method method, String stepWithoutStartingWord, Map<String,String> namedParameters)
-
createConditionalStep
public Step createConditionalStep(StepConditionMatcher stepConditionMatcher, Map<Method,StepCreator.ParametrisedStep> parametrisedSteps)
-
createParametrisedStep
public Step createParametrisedStep(Method method, String stepAsString, String stepWithoutStartingWord, Map<String,String> namedParameters, List<Step> composedSteps)
-
createParametrisedStepUponOutcome
public Step createParametrisedStepUponOutcome(Method method, String stepAsString, String stepWithoutStartingWord, Map<String,String> namedParameters, List<Step> composedSteps, AfterScenario.Outcome outcome)
-
createPendingStep
public static Step createPendingStep(String stepAsString, String previousNonAndStep)
-
-