| 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.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
SmartContextLoader
Strategy interface for loading an
application context
for an integration test managed by the Spring TestContext Framework. |
| Modifier and Type | Method and Description |
|---|---|
ContextLoader |
MergedContextConfiguration.getContextLoader()
Get the resolved
ContextLoader for the
test class. |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends ContextLoader> |
ContextConfigurationAttributes.getContextLoaderClass()
Get the
ContextLoader class that was declared via
@ContextConfiguration. |
| Constructor and Description |
|---|
MergedContextConfiguration(Class<?> testClass,
String[] locations,
Class<?>[] classes,
String[] activeProfiles,
ContextLoader contextLoader)
Create a new
MergedContextConfiguration instance for the
supplied test class, resource locations, configuration
classes, active profiles, and ContextLoader. |
| Constructor and Description |
|---|
ContextConfigurationAttributes(Class<?> declaringClass,
String[] locations,
Class<?>[] classes,
boolean inheritLocations,
Class<? extends ContextLoader> contextLoaderClass)
Construct a new
ContextConfigurationAttributes instance for the
test class that declared the
@ContextConfiguration annotation and its
corresponding attributes. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractContextLoader
Abstract application context loader that provides a basis for all concrete
implementations of the
ContextLoader SPI. |
class |
AbstractGenericContextLoader
Abstract, generic extension of
AbstractContextLoader that loads a
GenericApplicationContext. |
class |
AnnotationConfigContextLoader
Concrete implementation of
AbstractGenericContextLoader that loads
bean definitions from
configuration classes. |
class |
DelegatingSmartContextLoader
DelegatingSmartContextLoader is an implementation of the SmartContextLoader
SPI that delegates to a set of candidate SmartContextLoaders (i.e.,
GenericXmlContextLoader and AnnotationConfigContextLoader) to
determine which context loader is appropriate for a given test classÕs configuration. |
class |
GenericPropertiesContextLoader
Concrete implementation of
AbstractGenericContextLoader that reads
bean definitions from Java Properties resources. |
class |
GenericXmlContextLoader
Concrete implementation of
AbstractGenericContextLoader that reads
bean definitions from XML resources. |
Copyright © 2014. All rights reserved.