org.jbehave.core.steps
Class StepCreator

java.lang.Object
  extended by org.jbehave.core.steps.StepCreator

public class StepCreator
extends Object


Nested Class Summary
static class StepCreator.AbstractStep
           
 class StepCreator.AnyOrDefaultStep
           
 class StepCreator.BeforeOrAfterStep
           
 class StepCreator.FailureStep
           
static class StepCreator.IgnorableStep
           
static class StepCreator.Jsr330Helper
          This is a different class, because the @Inject jar may not be in the classpath.
 class StepCreator.ParameterizedStep
           
static class StepCreator.ParameterNotFound
           
static class StepCreator.PendingStep
           
static interface StepCreator.StepRunner
           
 class StepCreator.SuccessStep
           
 
Field Summary
static UUIDExceptionWrapper NO_FAILURE
           
static String PARAMETER_NAME_END
           
static String PARAMETER_NAME_START
           
static String PARAMETER_VALUE_END
           
static String PARAMETER_VALUE_NEWLINE
           
static String PARAMETER_VALUE_START
           
 
Constructor Summary
StepCreator(Object stepsInstance, ParameterConverters parameterConverters, StepMatcher stepMatcher, StepMonitor stepMonitor)
           
StepCreator(Object stepsInstance, StepMonitor stepMonitor)
           
 
Method Summary
 Step createAfterStepUponOutcome(Method method, AfterScenario.Outcome outcome, boolean failureOccured)
           
 Step createBeforeOrAfterStep(Method method)
           
static Step createIgnorableStep(String stepAsString)
           
 Step createParametrisedStep(Method method, String stepAsString, String stepWithoutStartingWord, Map<String,String> namedParameters)
           
static Step createPendingStep(String stepAsString, String previousNonAndStep)
           
 void doDryRun(boolean dryRun)
           
 Map<String,String> matchedParameters(Method method, String stepAsString, String stepWithoutStartingWord, Map<String,String> namedParameters)
           
 void useParanamer(com.thoughtworks.paranamer.Paranamer paranamer)
           
 void useStepMonitor(StepMonitor stepMonitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAMETER_NAME_START

public static final String PARAMETER_NAME_START
See Also:
Constant Field Values

PARAMETER_NAME_END

public static final String PARAMETER_NAME_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(Object stepsInstance,
                   StepMonitor stepMonitor)

StepCreator

public StepCreator(Object stepsInstance,
                   ParameterConverters parameterConverters,
                   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)

createBeforeOrAfterStep

public Step createBeforeOrAfterStep(Method method)

createAfterStepUponOutcome

public Step createAfterStepUponOutcome(Method method,
                                       AfterScenario.Outcome outcome,
                                       boolean failureOccured)

matchedParameters

public Map<String,String> matchedParameters(Method method,
                                            String stepAsString,
                                            String stepWithoutStartingWord,
                                            Map<String,String> namedParameters)

createParametrisedStep

public Step createParametrisedStep(Method method,
                                   String stepAsString,
                                   String stepWithoutStartingWord,
                                   Map<String,String> namedParameters)

createPendingStep

public static Step createPendingStep(String stepAsString,
                                     String previousNonAndStep)

createIgnorableStep

public static Step createIgnorableStep(String stepAsString)


Copyright © 2003-2011. All Rights Reserved.