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.support |
Support classes for the Spring TestContext Framework.
|
org.springframework.test.context.web |
Web support classes for the Spring TestContext Framework.
|
Modifier and Type | Method and Description |
---|---|
MergedContextConfiguration |
MergedContextConfiguration.getParent()
Get the
MergedContextConfiguration for the parent application context in a
context hierarchy. |
Modifier and Type | Method and Description |
---|---|
ApplicationContext |
SmartContextLoader.loadContext(MergedContextConfiguration mergedConfig)
Loads a new
context based on the supplied
merged context configuration ,
configures the context, and finally returns the context in a fully
refreshed state. |
ApplicationContext |
CacheAwareContextLoaderDelegate.loadContext(MergedContextConfiguration mergedContextConfiguration)
Load the
application context for the supplied
merged context configuration. |
Constructor and Description |
---|
MergedContextConfiguration(Class<?> testClass,
String[] locations,
Class<?>[] classes,
Set<Class<? extends ApplicationContextInitializer<? extends ConfigurableApplicationContext>>> contextInitializerClasses,
String[] activeProfiles,
ContextLoader contextLoader,
CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate,
MergedContextConfiguration parent)
Create a new
MergedContextConfiguration instance for the
supplied test class, resource locations, annotated classes, context
initializers, active profiles, ContextLoader , and parent
configuration. |
Modifier and Type | Method and Description |
---|---|
protected void |
AnnotationConfigContextLoader.loadBeanDefinitions(GenericApplicationContext context,
MergedContextConfiguration mergedConfig)
Register classes in the supplied
context
from the classes in the supplied MergedContextConfiguration . |
protected void |
AbstractGenericContextLoader.loadBeanDefinitions(GenericApplicationContext context,
MergedContextConfiguration mergedConfig)
Load bean definitions into the supplied
context
from the locations or classes in the supplied MergedContextConfiguration . |
ApplicationContext |
AbstractDelegatingSmartContextLoader.loadContext(MergedContextConfiguration mergedConfig)
Delegates to an appropriate candidate
SmartContextLoader to load
an ApplicationContext . |
ConfigurableApplicationContext |
AbstractGenericContextLoader.loadContext(MergedContextConfiguration mergedConfig)
Load a Spring ApplicationContext from the supplied
MergedContextConfiguration . |
protected void |
AbstractContextLoader.prepareContext(ConfigurableApplicationContext context,
MergedContextConfiguration mergedConfig)
Prepare the
ConfigurableApplicationContext created by this
SmartContextLoader before bean definitions are read. |
Modifier and Type | Class and Description |
---|---|
class |
WebMergedContextConfiguration
WebMergedContextConfiguration encapsulates the merged
context configuration declared on a test class and all of its superclasses
via @ContextConfiguration ,
@WebAppConfiguration , and
@ActiveProfiles . |
Modifier and Type | Method and Description |
---|---|
ConfigurableApplicationContext |
AbstractGenericWebContextLoader.loadContext(MergedContextConfiguration mergedConfig)
Load a Spring
WebApplicationContext from the supplied
MergedContextConfiguration . |
Constructor and Description |
---|
WebMergedContextConfiguration(Class<?> testClass,
String[] locations,
Class<?>[] classes,
Set<Class<? extends ApplicationContextInitializer<? extends ConfigurableApplicationContext>>> contextInitializerClasses,
String[] activeProfiles,
String resourceBasePath,
ContextLoader contextLoader,
CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate,
MergedContextConfiguration parent)
Create a new
WebMergedContextConfiguration instance for the
supplied test class, resource locations, annotated classes, context
initializers, active profiles, resource base path, and ContextLoader . |
Copyright © 2015. All rights reserved.