Package org.springframework.test.context.support
@NonNullApi
@NonNullFields
package org.springframework.test.context.support
Support classes for the Spring TestContext Framework.
-
ClassDescriptionAbstract application context loader that provides a basis for all concrete implementations of the
ContextLoader
SPI.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.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.Abstract, generic extension ofAbstractContextLoader
that loads aGenericApplicationContext
.Abstract implementation of theTestContextBootstrapper
interface which provides most of the behavior required by a bootstrapper.Abstract ordered implementation of theTestExecutionListener
API.Concrete implementation ofAbstractGenericContextLoader
that loads bean definitions from component classes.Utility methods forSmartContextLoaders
that deal with component classes (for example,@Configuration
classes).TestExecutionListener
which makes sure that common caches are cleared once they are no longer required.Default implementation of theActiveProfilesResolver
strategy that resolves active bean definition profiles based solely on profiles configured declaratively viaActiveProfiles.profiles()
orActiveProfiles.value()
.Default implementation of theBootstrapContext
interface.Default implementation of theTestContext
interface.Default implementation of theTestContextBootstrapper
SPI.DelegatingSmartContextLoader
is a concrete implementation ofAbstractDelegatingSmartContextLoader
that delegates to aGenericXmlContextLoader
(or aGenericGroovyXmlContextLoader
if Groovy is present in the classpath) and anAnnotationConfigContextLoader
.TestExecutionListener
which provides support for dependency injection and initialization of test instances.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.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.BeanFactoryInitializer
that eagerly initializesDynamicPropertyRegistrar
beans.Concrete implementation ofAbstractGenericContextLoader
that reads bean definitions from Groovy scripts and XML configuration files.Concrete implementation ofAbstractGenericContextLoader
that reads bean definitions from XML resources.Strategy for providing named properties — for example, for looking up key-value pairs in a generic fashion.Utility methods for working with@TestConstructor
.Utility methods for working with@TestPropertySource
and adding testPropertySources
to theEnvironment
.