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 with
BeforeStory
, AfterStory
, BeforeScenario
or
AfterScenario
in a CandidatesSteps
instance class. The
BeforeOrAfterStep is responsible for the creation of the executable step via
the StepCreator
.
BeforeOrAfterStep
public BeforeOrAfterStep(StepCollector.Stage stage,
Method method,
Object instance)
BeforeOrAfterStep
public BeforeOrAfterStep(StepCollector.Stage stage,
Method method,
Object instance,
AfterScenario.Outcome outcome)
getStage
public StepCollector.Stage getStage()
getMethod
public Method getMethod()
createStep
public Step createStep()
createStepUponOutcome
public Step createStepUponOutcome(boolean failureOccured)
useStepMonitor
public void useStepMonitor(StepMonitor stepMonitor)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2003-2011. All Rights Reserved.