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.
|
org.springframework.web.servlet.support |
Support classes for Spring's web MVC framework.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.Class<? extends ApplicationContextInitializer<?>>> |
MergedContextConfiguration.getContextInitializerClasses()
Get the merged
ApplicationContextInitializer classes for the
test class. |
Constructor and Description |
---|
MergedContextConfiguration(java.lang.Class<?> testClass,
java.lang.String[] locations,
java.lang.Class<?>[] classes,
java.util.Set<java.lang.Class<? extends ApplicationContextInitializer<?>>> contextInitializerClasses,
java.lang.String[] activeProfiles,
ContextLoader contextLoader)
Create a new
MergedContextConfiguration instance for the
supplied parameters. |
MergedContextConfiguration(java.lang.Class<?> testClass,
java.lang.String[] locations,
java.lang.Class<?>[] classes,
java.util.Set<java.lang.Class<? extends ApplicationContextInitializer<?>>> contextInitializerClasses,
java.lang.String[] activeProfiles,
ContextLoader contextLoader,
CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate,
MergedContextConfiguration parent)
Create a new
MergedContextConfiguration instance for the
supplied parameters. |
MergedContextConfiguration(java.lang.Class<?> testClass,
java.lang.String[] locations,
java.lang.Class<?>[] classes,
java.util.Set<java.lang.Class<? extends ApplicationContextInitializer<?>>> contextInitializerClasses,
java.lang.String[] activeProfiles,
java.lang.String[] propertySourceLocations,
java.lang.String[] propertySourceProperties,
ContextLoader contextLoader,
CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate,
MergedContextConfiguration parent)
Create a new
MergedContextConfiguration instance for the
supplied parameters. |
MergedContextConfiguration(java.lang.Class<?> testClass,
java.lang.String[] locations,
java.lang.Class<?>[] classes,
java.util.Set<java.lang.Class<? extends ApplicationContextInitializer<?>>> contextInitializerClasses,
java.lang.String[] activeProfiles,
java.lang.String[] propertySourceLocations,
java.lang.String[] propertySourceProperties,
java.util.Set<ContextCustomizer> contextCustomizers,
ContextLoader contextLoader,
CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate,
MergedContextConfiguration parent)
Create a new
MergedContextConfiguration instance for the
supplied parameters. |
Constructor and Description |
---|
WebMergedContextConfiguration(java.lang.Class<?> testClass,
java.lang.String[] locations,
java.lang.Class<?>[] classes,
java.util.Set<java.lang.Class<? extends ApplicationContextInitializer<?>>> contextInitializerClasses,
java.lang.String[] activeProfiles,
java.lang.String[] propertySourceLocations,
java.lang.String[] propertySourceProperties,
java.util.Set<ContextCustomizer> contextCustomizers,
java.lang.String resourceBasePath,
ContextLoader contextLoader,
CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate,
MergedContextConfiguration parent)
Create a new
WebMergedContextConfiguration instance for the
supplied parameters. |
WebMergedContextConfiguration(java.lang.Class<?> testClass,
java.lang.String[] locations,
java.lang.Class<?>[] classes,
java.util.Set<java.lang.Class<? extends ApplicationContextInitializer<?>>> contextInitializerClasses,
java.lang.String[] activeProfiles,
java.lang.String[] propertySourceLocations,
java.lang.String[] propertySourceProperties,
java.lang.String resourceBasePath,
ContextLoader contextLoader,
CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate,
MergedContextConfiguration parent)
Create a new
WebMergedContextConfiguration instance for the
supplied parameters. |
Modifier and Type | Method and Description |
---|---|
protected ApplicationContextInitializer<?>[] |
AbstractContextLoaderInitializer.getRootApplicationContextInitializers()
Specify application context initializers to be applied to the root application
context that the
ContextLoaderListener is being created with. |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<java.lang.Class<ApplicationContextInitializer<ConfigurableApplicationContext>>> |
ContextLoader.determineContextInitializerClasses(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 |
ContextLoader.setContextInitializers(ApplicationContextInitializer<?>... initializers)
Specify which
ApplicationContextInitializer instances should be used
to initialize the application context used by this ContextLoader . |
Modifier and Type | Method and Description |
---|---|
void |
FrameworkServlet.setContextInitializers(ApplicationContextInitializer<?>... initializers)
Specify which
ApplicationContextInitializer instances should be used
to initialize the application context used by this FrameworkServlet . |
Modifier and Type | Method and Description |
---|---|
protected ApplicationContextInitializer<?>[] |
AbstractDispatcherServletInitializer.getServletApplicationContextInitializers()
Specify application context initializers to be applied to the servlet-specific
application context that the
DispatcherServlet is being created with. |