Package | Description |
---|---|
org.springframework.test.context |
This package contains the Spring TestContext Framework which
provides annotation-driven unit and integration testing support that is
agnostic of the actual testing framework in use.
|
org.springframework.test.context.web |
Web support classes for the Spring TestContext Framework.
|
Modifier and Type | Method and Description |
---|---|
ContextCustomizer |
ContextCustomizerFactory.createContextCustomizer(java.lang.Class<?> testClass,
java.util.List<ContextConfigurationAttributes> configAttributes)
Create a
ContextCustomizer that should be used to customize a
ConfigurableApplicationContext
before it is refreshed. |
Modifier and Type | Method and Description |
---|---|
java.util.Set<ContextCustomizer> |
MergedContextConfiguration.getContextCustomizers()
Get the merged
ContextCustomizers that will be applied
when the application context is loaded. |
Constructor and Description |
---|
MergedContextConfiguration(java.lang.Class<?> testClass,
java.lang.String[] locations,
java.lang.Class<?>[] classes,
java.util.Set<java.lang.Class<? extends ApplicationContextInitializer<?>>> contextInitializerClasses,
java.lang.String[] activeProfiles,
java.lang.String[] propertySourceLocations,
java.lang.String[] propertySourceProperties,
java.util.Set<ContextCustomizer> contextCustomizers,
ContextLoader contextLoader,
CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate,
MergedContextConfiguration parent)
Create a new
MergedContextConfiguration instance for the
supplied parameters. |
Constructor and Description |
---|
WebMergedContextConfiguration(java.lang.Class<?> testClass,
java.lang.String[] locations,
java.lang.Class<?>[] classes,
java.util.Set<java.lang.Class<? extends ApplicationContextInitializer<?>>> contextInitializerClasses,
java.lang.String[] activeProfiles,
java.lang.String[] propertySourceLocations,
java.lang.String[] propertySourceProperties,
java.util.Set<ContextCustomizer> contextCustomizers,
java.lang.String resourceBasePath,
ContextLoader contextLoader,
CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate,
MergedContextConfiguration parent)
Create a new
WebMergedContextConfiguration instance for the
supplied parameters. |