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,BeforeScenarioorAfterScenarioin aCandidateStepsinstance 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 StepcreateStep()StepcreateStepUponOutcome(Meta storyAndScenarioMeta)StepcreateStepWith(Meta meta)MethodgetMethod()intgetOrder()StringtoString()voiduseStepMonitor(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)
-
-