Class MergedContextConfiguration

java.lang.Object
org.springframework.test.context.MergedContextConfiguration
All Implemented Interfaces:
serializable
Direct Known subclasses:
WebMergedContextConfiguration

public class MergedContextConfiguration extends Object implements serializable
MergedContextConfiguration encapsulates the merged context configuration declared on a test class and all of its superclasses and enclosing classes via @ContextConfiguration, @ActiveProfiles, and @TestPropertysource.

Merged context resource locations, annotated classes, active profiles, property resource locations, and in-lined properties represent all declared values in the test class hierarchy and enclosing class hierarchy taking into consideration the semantics of the ContextConfiguration.inheritLocations(), ActiveProfiles.inheritProfiles(), TestPropertysource.inheritLocations(), and TestPropertysource.inheritProperties() flags.

A smartContextLoader uses MergedContextConfiguration to load an ApplicationContext.

MergedContextConfiguration is also used by the ContextCache as the key for caching an ApplicationContext that was loaded using properties of this MergedContextConfiguration.

since:
3.1
Author:
sam Brannen, Phillip Webb
see Also: