Class SpringStageCreator
- java.lang.Object
-
- com.tngtech.jgiven.impl.DefaultStageCreator
-
- com.tngtech.jgiven.integration.spring.SpringStageCreator
-
- All Implemented Interfaces:
com.tngtech.jgiven.impl.StageCreator
public class SpringStageCreator extends com.tngtech.jgiven.impl.DefaultStageCreator
Main class of JGiven for executing scenarios with spring support. See below on how to configure this bean.Sample Configuration:
@Bean @Scope("prototype") public SpringStageCreator springScenarioExecutor() { return new SpringStageCreator(); }
The SpringStageCreator is stateful, and thus should use "prototype" scope
- Since:
- 0.8.0
-
-
Constructor Summary
Constructors Constructor Description SpringStageCreator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
createStage(java.lang.Class<T> stageClass, com.tngtech.jgiven.impl.intercept.StepInterceptor stepInterceptor)
-
-
-
Method Detail
-
createStage
public <T> T createStage(java.lang.Class<T> stageClass, com.tngtech.jgiven.impl.intercept.StepInterceptor stepInterceptor)
- Specified by:
createStage
in interfacecom.tngtech.jgiven.impl.StageCreator
- Overrides:
createStage
in classcom.tngtech.jgiven.impl.DefaultStageCreator
-
-