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
ContextLoaderSPI.AbstractDelegatingSmartContextLoaderserves as an abstract base class for implementations of theSmartContextLoaderSPI 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 forTestExecutionListenerimplementations that provide support for marking theApplicationContextassociated with a test as dirty for both test classes and test methods annotated with the@DirtiesContextannotation.Abstract, generic extension ofAbstractContextLoaderthat loads aGenericApplicationContext.Abstract implementation of theTestContextBootstrapperinterface which provides most of the behavior required by a bootstrapper.Abstract ordered implementation of theTestExecutionListenerAPI.Concrete implementation ofAbstractGenericContextLoaderthat loads bean definitions from component classes.Utility methods forSmartContextLoadersthat deal with component classes (e.g.,@Configurationclasses).Default implementation of theActiveProfilesResolverstrategy that resolves active bean definition profiles based solely on profiles configured declaratively viaActiveProfiles.profiles()orActiveProfiles.value().Default implementation of theBootstrapContextinterface.Default implementation of theTestContextinterface.Default implementation of theTestContextBootstrapperSPI.DelegatingSmartContextLoaderis a concrete implementation ofAbstractDelegatingSmartContextLoaderthat delegates to aGenericXmlContextLoader(or aGenericGroovyXmlContextLoaderif Groovy is present in the classpath) and anAnnotationConfigContextLoader.TestExecutionListenerwhich provides support for dependency injection and initialization of test instances.TestExecutionListenerwhich provides support for marking theApplicationContextassociated with a test as dirty for both test classes and test methods annotated with the@DirtiesContextannotation.TestExecutionListenerwhich provides support for marking theApplicationContextassociated with a test as dirty for both test classes and test methods annotated with the@DirtiesContextannotation.Concrete implementation ofAbstractGenericContextLoaderthat reads bean definitions from Groovy scripts and XML configuration files.Concrete implementation ofAbstractGenericContextLoaderthat 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@TestPropertySourceand adding testPropertySourcesto theEnvironment.