Package org.springframework.test.context.support
Support classes for the Spring TestContext Framework.
Class Summary Class Description AbstractContextLoader Abstract application context loader that provides a basis for all concrete implementations of theContextLoader
SPI.AbstractDelegatingSmartContextLoader AbstractDelegatingSmartContextLoader
serves as an abstract base class for implementations of theSmartContextLoader
SPI that delegate to a set of candidate SmartContextLoaders (i.e., one that supports XML configuration files or Groovy scripts and one that supports annotated classes) to determine which context loader is appropriate for a given test class's configuration.AbstractDirtiesContextTestExecutionListener Abstract base class forTestExecutionListener
implementations that provide support for marking theApplicationContext
associated with a test as dirty for both test classes and test methods annotated with the@DirtiesContext
annotation.AbstractGenericContextLoader Abstract, generic extension ofAbstractContextLoader
that loads aGenericApplicationContext
.AbstractTestContextBootstrapper Abstract implementation of theTestContextBootstrapper
interface which provides most of the behavior required by a bootstrapper.AbstractTestExecutionListener Abstract implementation of theTestExecutionListener
interface which provides empty method stubs.AnnotationConfigContextLoader Concrete implementation ofAbstractGenericContextLoader
that loads bean definitions from annotated classes.AnnotationConfigContextLoaderUtils Utility methods forSmartContextLoaders
that deal with annotated classes (e.g.,@Configuration
classes).DefaultActiveProfilesResolver Default implementation of theActiveProfilesResolver
strategy that resolves active bean definition profiles based solely on profiles configured declaratively viaActiveProfiles.profiles()
orActiveProfiles.value()
.DefaultBootstrapContext Default implementation of theBootstrapContext
interface.DefaultTestContext Default implementation of theTestContext
interface.DefaultTestContextBootstrapper Default implementation of theTestContextBootstrapper
SPI.DelegatingSmartContextLoader DelegatingSmartContextLoader
is a concrete implementation ofAbstractDelegatingSmartContextLoader
that delegates to aGenericXmlContextLoader
(or aGenericGroovyXmlContextLoader
if Groovy is present in the classpath) and anAnnotationConfigContextLoader
.DependencyInjectionTestExecutionListener TestExecutionListener
which provides support for dependency injection and initialization of test instances.DirtiesContextBeforeModesTestExecutionListener TestExecutionListener
which provides support for marking theApplicationContext
associated with a test as dirty for both test classes and test methods annotated with the@DirtiesContext
annotation.DirtiesContextTestExecutionListener TestExecutionListener
which provides support for marking theApplicationContext
associated with a test as dirty for both test classes and test methods annotated with the@DirtiesContext
annotation.GenericGroovyXmlContextLoader Concrete implementation ofAbstractGenericContextLoader
that reads bean definitions from Groovy scripts and XML configuration files.GenericPropertiesContextLoader Concrete implementation ofAbstractGenericContextLoader
that reads bean definitions from JavaProperties
resources.GenericXmlContextLoader Concrete implementation ofAbstractGenericContextLoader
that reads bean definitions from XML resources.TestPropertySourceUtils Utility methods for working with@TestPropertySource
and adding testPropertySources
to theEnvironment
.