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.
|
org.springframework.web.context |
Contains a variant of the application context interface for web applications,
and the ContextLoaderListener that bootstraps a root web application context.
|
org.springframework.web.servlet |
Provides servlets that integrate with the application context
infrastructure, and the core interfaces and classes for the
Spring web MVC framework.
|
Modifier and Type | Method and Description |
---|---|
Set<Class<? extends ApplicationContextInitializer<? extends ConfigurableApplicationContext>>> |
MergedContextConfiguration.getContextInitializerClasses()
Get the merged
ApplicationContextInitializer classes for the
test class. |
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. |
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 . |
Modifier and Type | Method and Description |
---|---|
protected List<Class<ApplicationContextInitializer<ConfigurableApplicationContext>>> |
ContextLoader.determineContextInitializerClasses(javax.servlet.ServletContext servletContext)
Return the
ApplicationContextInitializer implementation classes to use
if any have been specified by ContextLoader.CONTEXT_INITIALIZER_CLASSES_PARAM . |
Modifier and Type | Method and Description |
---|---|
void |
FrameworkServlet.setContextInitializers(ApplicationContextInitializer<? extends ConfigurableApplicationContext>... contextInitializers)
Specify which
ApplicationContextInitializer instances should be used
to initialize the application context used by this FrameworkServlet . |
Copyright © 2015. All rights reserved.