public abstract class AbstractUnitilsSteps
extends org.jbehave.core.steps.BeforeOrAfterStep
| Constructor and Description |
|---|
AbstractUnitilsSteps(org.jbehave.core.steps.StepCollector.Stage stage,
Method method,
Method testMethod,
org.jbehave.core.annotations.AfterScenario.Outcome outcome,
org.jbehave.core.steps.StepCreator stepCreator)
Constructor.
|
AbstractUnitilsSteps(org.jbehave.core.steps.StepCollector.Stage stage,
Method method,
Method testMethod,
org.jbehave.core.annotations.AfterScenario.Outcome outcome,
org.jbehave.core.steps.StepCreator stepCreator,
org.jbehave.core.steps.InjectableStepsFactory injectableStepsFactory,
Class<?> type)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.jbehave.core.steps.Step |
createStepUponOutcome(org.jbehave.core.model.Meta storyAndScenarioMeta)
Create a new
Step with the Meta data from the story. |
org.jbehave.core.steps.Step |
createStepWith(org.jbehave.core.model.Meta meta)
create a new
UnitilsStepCreator.StepCreatorBeforeOrAfterStep. |
Class<?> |
getClzzStep()
getter clzzStep.
|
protected abstract Object[] |
getParametersMethod()
get the parameters from the method.
|
org.jbehave.core.steps.InjectableStepsFactory |
getStepsFactory()
getter stepsFactory.
|
org.unitils.core.TestListener |
getTestlistener()
The
Unitils testlistener |
Method |
getTestMethod()
getter testMethod.
|
protected Object |
getTestObject()
This method gets the testobject from the stepsfactory.
|
void |
invokeUnitilsMethod()
Invoke a method from the the Unitils
TestListener. |
void |
setTestMethod(Method testMethod)
setter testMethod.
|
public AbstractUnitilsSteps(org.jbehave.core.steps.StepCollector.Stage stage,
Method method,
Method testMethod,
org.jbehave.core.annotations.AfterScenario.Outcome outcome,
org.jbehave.core.steps.StepCreator stepCreator,
org.jbehave.core.steps.InjectableStepsFactory injectableStepsFactory,
Class<?> type)
public org.unitils.core.TestListener getTestlistener()
Unitils testlistenerTestListenerprotected Object getTestObject()
Objectpublic org.jbehave.core.steps.Step createStepWith(org.jbehave.core.model.Meta meta)
UnitilsStepCreator.StepCreatorBeforeOrAfterStep. Returns null if the
StepCreator isn't of type UnitilsStepCreator.createStepWith in class org.jbehave.core.steps.BeforeOrAfterStepmeta - : the Meta data defined in the story.StepBeforeOrAfterStep.createStepWith(org.jbehave.core.model.Meta)public org.jbehave.core.steps.Step createStepUponOutcome(org.jbehave.core.model.Meta storyAndScenarioMeta)
Step with the Meta data from the story.createStepUponOutcome in class org.jbehave.core.steps.BeforeOrAfterStepstoryAndScenarioMeta - : the Meta data defined in the story of in the scenario.StepBeforeOrAfterStep.createStepUponOutcome(org.jbehave.core.model.Meta)public org.jbehave.core.steps.InjectableStepsFactory getStepsFactory()
public Class<?> getClzzStep()
public void invokeUnitilsMethod()
throws IllegalAccessException,
IllegalArgumentException,
InvocationTargetException
TestListener.protected abstract Object[] getParametersMethod()
Arraypublic Method getTestMethod()
public void setTestMethod(Method testMethod)
testMethod - the testMethod to setCopyright © 2015. All Rights Reserved.