| 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 | 
|---|---|
| Set<Class<? extends ApplicationContextInitializer<?>>> | MergedContextConfiguration. getContextInitializerClasses()Get the merged  ApplicationContextInitializerclasses for the
 test class. | 
| Constructor and Description | 
|---|
| MergedContextConfiguration(Class<?> testClass,
                          String[] locations,
                          Class<?>[] classes,
                          Set<Class<? extends ApplicationContextInitializer<?>>> contextInitializerClasses,
                          String[] activeProfiles,
                          ContextLoader contextLoader)Create a new  MergedContextConfigurationinstance for the
 supplied parameters. | 
| MergedContextConfiguration(Class<?> testClass,
                          String[] locations,
                          Class<?>[] classes,
                          Set<Class<? extends ApplicationContextInitializer<?>>> contextInitializerClasses,
                          String[] activeProfiles,
                          ContextLoader contextLoader,
                          CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate,
                          MergedContextConfiguration parent)Create a new  MergedContextConfigurationinstance for the
 supplied parameters. | 
| MergedContextConfiguration(Class<?> testClass,
                          String[] locations,
                          Class<?>[] classes,
                          Set<Class<? extends ApplicationContextInitializer<?>>> contextInitializerClasses,
                          String[] activeProfiles,
                          String[] propertySourceLocations,
                          String[] propertySourceProperties,
                          ContextLoader contextLoader,
                          CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate,
                          MergedContextConfiguration parent)Create a new  MergedContextConfigurationinstance for the
 supplied parameters. | 
| MergedContextConfiguration(Class<?> testClass,
                          String[] locations,
                          Class<?>[] classes,
                          Set<Class<? extends ApplicationContextInitializer<?>>> contextInitializerClasses,
                          String[] activeProfiles,
                          String[] propertySourceLocations,
                          String[] propertySourceProperties,
                          Set<ContextCustomizer> contextCustomizers,
                          ContextLoader contextLoader,
                          CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate,
                          MergedContextConfiguration parent)Create a new  MergedContextConfigurationinstance for the
 supplied parameters. | 
| Constructor and Description | 
|---|
| WebMergedContextConfiguration(Class<?> testClass,
                             String[] locations,
                             Class<?>[] classes,
                             Set<Class<? extends ApplicationContextInitializer<?>>> contextInitializerClasses,
                             String[] activeProfiles,
                             String[] propertySourceLocations,
                             String[] propertySourceProperties,
                             Set<ContextCustomizer> contextCustomizers,
                             String resourceBasePath,
                             ContextLoader contextLoader,
                             CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate,
                             MergedContextConfiguration parent)Create a new  WebMergedContextConfigurationinstance for the
 supplied parameters. | 
| WebMergedContextConfiguration(Class<?> testClass,
                             String[] locations,
                             Class<?>[] classes,
                             Set<Class<? extends ApplicationContextInitializer<?>>> contextInitializerClasses,
                             String[] activeProfiles,
                             String[] propertySourceLocations,
                             String[] propertySourceProperties,
                             String resourceBasePath,
                             ContextLoader contextLoader,
                             CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate,
                             MergedContextConfiguration parent)Create a new  WebMergedContextConfigurationinstance 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  ContextLoaderListeneris being created with. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected List<Class<ApplicationContextInitializer<ConfigurableApplicationContext>>> | ContextLoader. determineContextInitializerClasses(ServletContext servletContext)Return the  ApplicationContextInitializerimplementation classes to use
 if any have been specified byContextLoader.CONTEXT_INITIALIZER_CLASSES_PARAM. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | ContextLoader. setContextInitializers(ApplicationContextInitializer<?>... initializers)Specify which  ApplicationContextInitializerinstances should be used
 to initialize the application context used by thisContextLoader. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | FrameworkServlet. setContextInitializers(ApplicationContextInitializer<?>... initializers)Specify which  ApplicationContextInitializerinstances should be used
 to initialize the application context used by thisFrameworkServlet. | 
| 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  DispatcherServletis being created with. |