A custom bootstrapping strategy can be configured for a test class via {@link BootstrapWith @BootstrapWith}, either directly or as a meta-annotation. See {@link org.springframework.test.context.web.WebAppConfiguration @WebAppConfiguration}for an example.
The {@link TestContextManager} uses a {@code TestContextBootstrapper} to{@linkplain #getTestExecutionListeners get the TestExecutionListeners} for thecurrent test and to {@linkplain #buildMergedContextConfiguration build themerged context configuration} necessary to create the {@link TestContext} thatit manages.
Concrete implementations must provide a {@code public} no-args constructor.
Note: this SPI might potentially change in the future in order to accommodate new requirements. Implementers are therefore strongly encouraged not to implement this interface directly but rather to extend {@link org.springframework.test.context.support.AbstractTestContextBootstrapper AbstractTestContextBootstrapper} or one of its concrete subclasses instead. @author Sam Brannen @since 4.1 @see BootstrapWith @see BootstrapContext
|
|