Class ChangeToTestScopedContextCustomizerFactory
- java.lang.Object
-
- com.github.marschall.spring.test.scope.ChangeToTestScopedContextCustomizerFactory
-
- All Implemented Interfaces:
ContextCustomizerFactory
public final class ChangeToTestScopedContextCustomizerFactory extends Object implements ContextCustomizerFactory
Registers aChangeToTestScopedContextCustomizer
ifTestScopedBeans
is present on a test class.This class should be picked up, instantiated and called by the Spring TestContext Framework.
- Since:
- 1.1
- Author:
- Philippe Marschall
-
-
Constructor Summary
Constructors Constructor Description ChangeToTestScopedContextCustomizerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContextCustomizer
createContextCustomizer(Class<?> testClass, List<ContextConfigurationAttributes> configAttributes)
-
-
-
Method Detail
-
createContextCustomizer
public ContextCustomizer createContextCustomizer(Class<?> testClass, List<ContextConfigurationAttributes> configAttributes)
- Specified by:
createContextCustomizer
in interfaceContextCustomizerFactory
-
-