Package org.jbehave.core.steps
Class BeforeOrAfterStep
- java.lang.Object
-
- org.jbehave.core.steps.BeforeOrAfterStep
-
public class BeforeOrAfterStep extends Object
A BeforeOrAfterStep is associated to a Java method annotated withBeforeStory
,AfterStory
,BeforeScenario
orAfterScenario
in aCandidateSteps
instance class. The BeforeOrAfterStep is responsible for the creation of the executable step via theStepCreator
.
-
-
Constructor Summary
Constructors Constructor Description BeforeOrAfterStep(Method method, int order, AfterScenario.Outcome outcome, StepCreator stepCreator)
BeforeOrAfterStep(Method method, int order, StepCreator stepCreator)
-
Method Summary
Modifier and Type Method Description Step
createStep()
Step
createStepUponOutcome(Meta storyAndScenarioMeta)
Step
createStepWith(Meta meta)
Method
getMethod()
int
getOrder()
String
toString()
void
useStepMonitor(StepMonitor stepMonitor)
-
-
-
Constructor Detail
-
BeforeOrAfterStep
public BeforeOrAfterStep(Method method, int order, StepCreator stepCreator)
-
BeforeOrAfterStep
public BeforeOrAfterStep(Method method, int order, AfterScenario.Outcome outcome, StepCreator stepCreator)
-
-
Method Detail
-
getMethod
public Method getMethod()
-
getOrder
public int getOrder()
-
createStep
public Step createStep()
-
useStepMonitor
public void useStepMonitor(StepMonitor stepMonitor)
-
-