abstract class BootstrapUtils
extends java.lang.Object
BootstrapUtils
is a collection of utility methods to assist with
bootstrapping the Spring TestContext Framework.BootstrapWith
,
BootstrapContext
,
TestContextBootstrapper
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
DEFAULT_TEST_CONTEXT_BOOTSTRAPPER_CLASS_NAME |
private static Log |
logger |
Modifier | Constructor and Description |
---|---|
private |
BootstrapUtils() |
Modifier and Type | Method and Description |
---|---|
(package private) static TestContextBootstrapper |
resolveTestContextBootstrapper(BootstrapContext bootstrapContext)
Resolve the
TestContextBootstrapper type for the test class in the
supplied BootstrapContext , instantiate it, and provide it a reference
to the BootstrapContext . |
private static final java.lang.String DEFAULT_TEST_CONTEXT_BOOTSTRAPPER_CLASS_NAME
private static final Log logger
static TestContextBootstrapper resolveTestContextBootstrapper(BootstrapContext bootstrapContext)
TestContextBootstrapper
type for the test class in the
supplied BootstrapContext
, instantiate it, and provide it a reference
to the BootstrapContext
.
If the @BootstrapWith
annotation is present on
the test class, either directly or as a meta-annotation, then its
value
will be used as the bootstrapper type.
Otherwise, the DefaultTestContextBootstrapper
will be used.
bootstrapContext
- the bootstrap context to useTestContextBootstrapper