org.jbehave.core.steps
Class BeforeOrAfterStep

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

public class BeforeOrAfterStep
extends java.lang.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.


Constructor Summary
BeforeOrAfterStep(StepCollector.Stage stage, java.lang.reflect.Method method, java.lang.Object instance)
           
BeforeOrAfterStep(StepCollector.Stage stage, java.lang.reflect.Method method, java.lang.Object instance, AfterScenario.Outcome outcome)
           
 
Method Summary
 Step createStep()
           
 Step createStepUponOutcome()
           
 java.lang.reflect.Method getMethod()
           
 StepCollector.Stage getStage()
           
 java.lang.String toString()
           
 void useStepMonitor(StepMonitor stepMonitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BeforeOrAfterStep

public BeforeOrAfterStep(StepCollector.Stage stage,
                         java.lang.reflect.Method method,
                         java.lang.Object instance)

BeforeOrAfterStep

public BeforeOrAfterStep(StepCollector.Stage stage,
                         java.lang.reflect.Method method,
                         java.lang.Object instance,
                         AfterScenario.Outcome outcome)
Method Detail

getStage

public StepCollector.Stage getStage()

getMethod

public java.lang.reflect.Method getMethod()

createStep

public Step createStep()

createStepUponOutcome

public Step createStepUponOutcome()

useStepMonitor

public void useStepMonitor(StepMonitor stepMonitor)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003-2010. All Rights Reserved.