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 class
StepCreator.AbstractStep
static class
StepCreator.Comment
static class
StepCreator.IgnorableStep
static class
StepCreator.Jsr330Helper
This is a different class, because the @Inject jar may not be in the classpath.static class
StepCreator.ParameterNotFound
class
StepCreator.ParametrisedStep
static class
StepCreator.PendingStep
static class
StepCreator.ReportingAbstractStep
static class
StepCreator.StepExecutionType
-
Field Summary
Fields Modifier and Type Field Description static UUIDExceptionWrapper
NO_FAILURE
static String
PARAMETER_TABLE_END
static String
PARAMETER_TABLE_START
static String
PARAMETER_VALUE_END
static String
PARAMETER_VALUE_NEWLINE
static String
PARAMETER_VALUE_START
static String
PARAMETER_VERBATIM_END
static String
PARAMETER_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 Step
createAfterStepUponOutcome(Method method, AfterScenario.Outcome outcome, Meta storyAndScenarioMeta)
Step
createBeforeOrAfterStep(Method method, Meta meta)
static Step
createComment(String stepAsString)
static Step
createIgnorableStep(String stepAsString)
Step
createParametrisedStep(Method method, String stepAsString, String stepWithoutStartingWord, Map<String,String> namedParameters, List<Step> composedSteps)
Step
createParametrisedStepUponOutcome(Method method, String stepAsString, String stepWithoutStartingWord, Map<String,String> namedParameters, List<Step> composedSteps, AfterScenario.Outcome outcome)
static Step
createPendingStep(String stepAsString, String previousNonAndStep)
void
doDryRun(boolean dryRun)
Map<String,String>
matchedParameters(Method method, String stepWithoutStartingWord, Map<String,String> namedParameters)
Object
stepsInstance()
void
useParanamer(com.thoughtworks.paranamer.Paranamer paranamer)
void
useStepMonitor(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)
-
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)
-
-