Uses of Class
org.springframework.test.context.MergedContextConfiguration
Packages that use MergedContextConfiguration
Package
Description
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.
Support for context caching within the Spring TestContext Framework.
Support classes for the Spring TestContext Framework.
Web support classes for the Spring TestContext Framework.
- 
Uses of MergedContextConfiguration in org.springframework.test.contextMethods in org.springframework.test.context that return MergedContextConfigurationModifier and TypeMethodDescriptionTestContextBootstrapper.buildMergedContextConfiguration()Build the merged context configuration for the test class in theBootstrapContextassociated with this bootstrapper.MergedContextConfiguration.getParent()Get theMergedContextConfigurationfor the parent application context in a context hierarchy.Methods in org.springframework.test.context with parameters of type MergedContextConfigurationModifier and TypeMethodDescriptionvoidCacheAwareContextLoaderDelegate.closeContext(MergedContextConfiguration mergedContextConfiguration, DirtiesContext.HierarchyMode hierarchyMode) Remove the application context for the suppliedMergedContextConfigurationfrom theContextCacheand close it if it is an instance ofConfigurableApplicationContext.voidContextCustomizer.customizeContext(ConfigurableApplicationContext context, MergedContextConfiguration mergedConfig) Customize the suppliedConfigurableApplicationContextafter bean definitions have been loaded into the context but before the context has been refreshed.default booleanCacheAwareContextLoaderDelegate.isContextLoaded(MergedContextConfiguration mergedContextConfiguration) Determine if the application context for the suppliedMergedContextConfigurationhas been loaded (i.e., is present in theContextCache).CacheAwareContextLoaderDelegate.loadContext(MergedContextConfiguration mergedContextConfiguration) Load the application context for the suppliedMergedContextConfigurationby delegating to theContextLoaderconfigured in the givenMergedContextConfiguration.SmartContextLoader.loadContext(MergedContextConfiguration mergedConfig) Loads a newcontextbased on the suppliedmerged context configuration, configures the context, and finally returns the context in a fully refreshed state.Constructors in org.springframework.test.context with parameters of type MergedContextConfigurationModifierConstructorDescriptionMergedContextConfiguration(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 newMergedContextConfigurationinstance 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 newMergedContextConfigurationinstance 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 newMergedContextConfigurationinstance for the supplied parameters.MergedContextConfiguration(MergedContextConfiguration mergedConfig) Create a newMergedContextConfigurationinstance by copying all fields from the suppliedMergedContextConfiguration.
- 
Uses of MergedContextConfiguration in org.springframework.test.context.cacheMethods in org.springframework.test.context.cache with parameters of type MergedContextConfigurationModifier and TypeMethodDescriptionvoidDefaultCacheAwareContextLoaderDelegate.closeContext(MergedContextConfiguration mergedContextConfiguration, DirtiesContext.HierarchyMode hierarchyMode) booleanContextCache.contains(MergedContextConfiguration key) Determine whether there is a cached context for the given key.booleanDefaultContextCache.contains(MergedContextConfiguration key) Determine whether there is a cached context for the given key.ContextCache.get(MergedContextConfiguration key) Obtain a cachedApplicationContextfor the given key.DefaultContextCache.get(MergedContextConfiguration key) Obtain a cachedApplicationContextfor the given key.booleanDefaultCacheAwareContextLoaderDelegate.isContextLoaded(MergedContextConfiguration mergedContextConfiguration) DefaultCacheAwareContextLoaderDelegate.loadContext(MergedContextConfiguration mergedContextConfiguration) protected ApplicationContextDefaultCacheAwareContextLoaderDelegate.loadContextInternal(MergedContextConfiguration mergedContextConfiguration) Load theApplicationContextfor the supplied merged context configuration.voidContextCache.put(MergedContextConfiguration key, ApplicationContext context) Explicitly add anApplicationContextinstance to the cache under the given key, potentially honoring a custom eviction policy.voidDefaultContextCache.put(MergedContextConfiguration key, ApplicationContext context) Explicitly add anApplicationContextinstance to the cache under the given key, potentially honoring a custom eviction policy.voidContextCache.remove(MergedContextConfiguration key, DirtiesContext.HierarchyMode hierarchyMode) Remove the context with the given key from the cache and explicitly close it if it is an instance ofConfigurableApplicationContext.voidDefaultContextCache.remove(MergedContextConfiguration key, DirtiesContext.HierarchyMode hierarchyMode) Remove the context with the given key from the cache and explicitly close it if it is an instance ofConfigurableApplicationContext.
- 
Uses of MergedContextConfiguration in org.springframework.test.context.supportMethods in org.springframework.test.context.support that return MergedContextConfigurationModifier and TypeMethodDescriptionAbstractTestContextBootstrapper.buildMergedContextConfiguration()Build the merged context configuration for the test class in theBootstrapContextassociated with this bootstrapper.protected MergedContextConfigurationAbstractTestContextBootstrapper.processMergedContextConfiguration(MergedContextConfiguration mergedConfig) Process the supplied, newly instantiatedMergedContextConfigurationinstance.Methods in org.springframework.test.context.support with parameters of type MergedContextConfigurationModifier and TypeMethodDescriptionprotected voidAbstractContextLoader.customizeContext(ConfigurableApplicationContext context, MergedContextConfiguration mergedConfig) Customize theConfigurableApplicationContextcreated by thisContextLoaderafter bean definitions have been loaded into the context but before the context has been refreshed.protected voidAbstractGenericContextLoader.loadBeanDefinitions(GenericApplicationContext context, MergedContextConfiguration mergedConfig) Load bean definitions into the suppliedcontextfrom the locations or classes in the suppliedMergedContextConfiguration.protected voidAnnotationConfigContextLoader.loadBeanDefinitions(GenericApplicationContext context, MergedContextConfiguration mergedConfig) Register classes in the suppliedcontextfrom the classes in the suppliedMergedContextConfiguration.protected voidGenericGroovyXmlContextLoader.loadBeanDefinitions(GenericApplicationContext context, MergedContextConfiguration mergedConfig) Load bean definitions into the suppliedcontextfrom the locations in the suppliedMergedContextConfigurationusing aGroovyBeanDefinitionReader.AbstractDelegatingSmartContextLoader.loadContext(MergedContextConfiguration mergedConfig) Delegates to an appropriate candidateSmartContextLoaderto load anApplicationContext.AbstractGenericContextLoader.loadContext(MergedContextConfiguration mergedConfig) Load a Spring ApplicationContext from the suppliedMergedContextConfiguration.protected voidAbstractContextLoader.prepareContext(ConfigurableApplicationContext context, MergedContextConfiguration mergedConfig) Prepare theConfigurableApplicationContextcreated by thisSmartContextLoaderbefore bean definitions are read.protected MergedContextConfigurationAbstractTestContextBootstrapper.processMergedContextConfiguration(MergedContextConfiguration mergedConfig) Process the supplied, newly instantiatedMergedContextConfigurationinstance.protected voidAbstractGenericContextLoader.validateMergedContextConfiguration(MergedContextConfiguration mergedConfig) Validate the suppliedMergedContextConfigurationwith respect to what this context loader supports.protected voidAnnotationConfigContextLoader.validateMergedContextConfiguration(MergedContextConfiguration mergedConfig) Ensure that the suppliedMergedContextConfigurationdoes not containlocations.protected voidGenericPropertiesContextLoader.validateMergedContextConfiguration(MergedContextConfiguration mergedConfig) Deprecated.Ensure that the suppliedMergedContextConfigurationdoes not containclasses.protected voidGenericXmlContextLoader.validateMergedContextConfiguration(MergedContextConfiguration mergedConfig) Ensure that the suppliedMergedContextConfigurationdoes not containclasses.Constructors in org.springframework.test.context.support with parameters of type MergedContextConfigurationModifierConstructorDescriptionDefaultTestContext(Class<?> testClass, MergedContextConfiguration mergedContextConfiguration, CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate) Construct a newDefaultTestContextfrom the supplied arguments.
- 
Uses of MergedContextConfiguration in org.springframework.test.context.webSubclasses of MergedContextConfiguration in org.springframework.test.context.webModifier and TypeClassDescriptionclassWebMergedContextConfigurationencapsulates the merged context configuration declared on a test class and all of its superclasses via@ContextConfiguration,@WebAppConfiguration, and@ActiveProfiles.Methods in org.springframework.test.context.web that return MergedContextConfigurationModifier and TypeMethodDescriptionprotected MergedContextConfigurationWebTestContextBootstrapper.processMergedContextConfiguration(MergedContextConfiguration mergedConfig) Returns aWebMergedContextConfigurationif the test class in the suppliedMergedContextConfigurationis annotated with@WebAppConfigurationand otherwise returns the supplied instance unmodified.Methods in org.springframework.test.context.web with parameters of type MergedContextConfigurationModifier and TypeMethodDescriptionAbstractGenericWebContextLoader.loadContext(MergedContextConfiguration mergedConfig) Load a SpringWebApplicationContextfrom the suppliedMergedContextConfiguration.protected MergedContextConfigurationWebTestContextBootstrapper.processMergedContextConfiguration(MergedContextConfiguration mergedConfig) Returns aWebMergedContextConfigurationif the test class in the suppliedMergedContextConfigurationis annotated with@WebAppConfigurationand otherwise returns the supplied instance unmodified.Constructors in org.springframework.test.context.web with parameters of type MergedContextConfigurationModifierConstructorDescriptionWebMergedContextConfiguration(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 newWebMergedContextConfigurationinstance for the supplied parameters.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 newWebMergedContextConfigurationinstance for the supplied parameters.WebMergedContextConfiguration(MergedContextConfiguration mergedConfig, String resourceBasePath) Create a newWebMergedContextConfigurationinstance by copying all properties from the suppliedMergedContextConfiguration.