| 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(Class<?> testClass,
List<ContextConfigurationAttributes> configAttributes)
Create a
ContextCustomizer that should be used to customize a
ConfigurableApplicationContext
before it is refreshed. |
| Modifier and Type | Method and Description |
|---|---|
Set<ContextCustomizer> |
MergedContextConfiguration.getContextCustomizers()
Get the merged
ContextCustomizers that will be applied
when the application context is loaded. |
| Constructor and Description |
|---|
MergedContextConfiguration(Class<?> testClass,
String[] locations,
Class<?>[] classes,
Set<Class<? extends ApplicationContextInitializer<?>>> contextInitializerClasses,
String[] activeProfiles,
String[] propertySourceLocations,
String[] propertySourceProperties,
Set<ContextCustomizer> contextCustomizers,
ContextLoader contextLoader,
CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate,
MergedContextConfiguration parent)
Create a new
MergedContextConfiguration instance for the
supplied parameters. |
| Constructor and Description |
|---|
WebMergedContextConfiguration(Class<?> testClass,
String[] locations,
Class<?>[] classes,
Set<Class<? extends ApplicationContextInitializer<?>>> contextInitializerClasses,
String[] activeProfiles,
String[] propertySourceLocations,
String[] propertySourceProperties,
Set<ContextCustomizer> contextCustomizers,
String resourceBasePath,
ContextLoader contextLoader,
CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate,
MergedContextConfiguration parent)
Create a new
WebMergedContextConfiguration instance for the
supplied parameters. |