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 | 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 . |
Modifier and Type | Method and Description |
---|---|
protected static String |
MergedContextConfiguration.nullSafeToString(ContextLoader contextLoader)
Generate a null-safe
String representation of the supplied
ContextLoader based solely on the fully qualified name of the
loader or "null" if the supplied loaded is null . |
Constructor and Description |
---|
MergedContextConfiguration(Class<?> testClass,
String[] locations,
Class<?>[] classes,
Set<Class<? extends ApplicationContextInitializer<? extends ConfigurableApplicationContext>>> contextInitializerClasses,
String[] activeProfiles,
ContextLoader contextLoader)
Create a new
MergedContextConfiguration instance for the
supplied test class, resource locations, annotated classes, context
initializers, active profiles, and ContextLoader . |
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. |
MergedContextConfiguration(Class<?> testClass,
String[] locations,
Class<?>[] classes,
String[] activeProfiles,
ContextLoader contextLoader)
Create a new
MergedContextConfiguration instance for the
supplied test class, resource locations, annotated classes, active
profiles, and ContextLoader . |
Constructor and Description |
---|
ContextConfigurationAttributes(Class<?> declaringClass,
String[] locations,
Class<?>[] classes,
boolean inheritLocations,
Class<? extends ApplicationContextInitializer<? extends ConfigurableApplicationContext>>[] initializers,
boolean inheritInitializers,
Class<? extends ContextLoader> contextLoaderClass)
Construct a new
ContextConfigurationAttributes instance for the
test class that declared the
@ContextConfiguration annotation and its
corresponding attributes. |
ContextConfigurationAttributes(Class<?> declaringClass,
String[] locations,
Class<?>[] classes,
boolean inheritLocations,
Class<? extends ApplicationContextInitializer<? extends ConfigurableApplicationContext>>[] initializers,
boolean inheritInitializers,
String name,
Class<? extends ContextLoader> contextLoaderClass)
Construct a new
ContextConfigurationAttributes instance for the
test class that declared the
@ContextConfiguration annotation and its
corresponding attributes. |
ContextConfigurationAttributes(Class<?> declaringClass,
String[] locations,
Class<?>[] classes,
boolean inheritLocations,
Class<? extends ContextLoader> contextLoaderClass)
Deprecated.
|
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 |
AbstractDelegatingSmartContextLoader
AbstractDelegatingSmartContextLoader serves as an abstract base class
for implementations of the SmartContextLoader SPI that delegate to a
set of candidate SmartContextLoaders (i.e., one that supports XML
configuration files and one that supports annotated classes) to determine which
context loader is appropriate for a given test class's configuration. |
class |
AbstractGenericContextLoader
Abstract, generic extension of
AbstractContextLoader that loads a
GenericApplicationContext . |
class |
AnnotationConfigContextLoader
Concrete implementation of
AbstractGenericContextLoader that loads
bean definitions from annotated classes. |
class |
DelegatingSmartContextLoader
DelegatingSmartContextLoader is a concrete implementation of
AbstractDelegatingSmartContextLoader that delegates to a
GenericXmlContextLoader and an AnnotationConfigContextLoader . |
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. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractGenericWebContextLoader
Abstract, generic extension of
AbstractContextLoader that loads a
GenericWebApplicationContext . |
class |
AnnotationConfigWebContextLoader
Concrete implementation of
AbstractGenericWebContextLoader that loads
bean definitions from annotated classes. |
class |
GenericXmlWebContextLoader
Concrete implementation of
AbstractGenericWebContextLoader that loads
bean definitions from XML resources. |
class |
WebDelegatingSmartContextLoader
WebDelegatingSmartContextLoader is a concrete implementation of
AbstractDelegatingSmartContextLoader that delegates to a
GenericXmlWebContextLoader and an AnnotationConfigWebContextLoader . |
Constructor and Description |
---|
WebMergedContextConfiguration(Class<?> testClass,
String[] locations,
Class<?>[] classes,
Set<Class<? extends ApplicationContextInitializer<? extends ConfigurableApplicationContext>>> contextInitializerClasses,
String[] activeProfiles,
String resourceBasePath,
ContextLoader contextLoader)
|
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.