public class SpringScenarioExecutor
extends com.tngtech.jgiven.impl.StandaloneScenarioExecutor
implements com.tngtech.jgiven.impl.ScenarioExecutor
Sample Configuration:
@Bean @Scope("prototype") public SpringScenarioExecutor springScenarioExecutor() { return new SpringScenarioExecutor(); }
The SpringScenarioExecutor is stateful, and thus should use "prototype" scope
Constructor and Description |
---|
SpringScenarioExecutor() |
Modifier and Type | Method and Description |
---|---|
<T> T |
createStageClass(java.lang.Class<T> stepsClass) |
com.tngtech.jgiven.impl.StandaloneScenarioExecutor.StageState |
getStageState(java.lang.Object stage) |
addIntroWord, addStage, failed, failIfPass, finished, getFailedException, hasFailed, injectSteps, readScenarioState, setFailedException, setListener, startScenario, startScenario, wireSteps
public <T> T createStageClass(java.lang.Class<T> stepsClass)
createStageClass
in interface com.tngtech.jgiven.impl.ScenarioExecutor
createStageClass
in class com.tngtech.jgiven.impl.StandaloneScenarioExecutor
public com.tngtech.jgiven.impl.StandaloneScenarioExecutor.StageState getStageState(java.lang.Object stage)
getStageState
in class com.tngtech.jgiven.impl.StandaloneScenarioExecutor