程序包 org.springframework.test.context.support
Support classes for the Spring TestContext Framework.
类概要 类 说明 AbstractContextLoader Abstract application context loader that provides a basis for all concrete implementations of theContextLoaderSPI.AbstractDelegatingSmartContextLoader 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.AbstractDirtiesContextTestExecutionListener 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.AbstractGenericContextLoader Abstract, generic extension ofAbstractContextLoaderthat loads aGenericApplicationContext.AbstractTestContextBootstrapper Abstract implementation of theTestContextBootstrapperinterface which provides most of the behavior required by a bootstrapper.AbstractTestExecutionListener Abstract ordered implementation of theTestExecutionListenerAPI.AnnotationConfigContextLoader Concrete implementation ofAbstractGenericContextLoaderthat loads bean definitions from component classes.AnnotationConfigContextLoaderUtils Utility methods forSmartContextLoadersthat deal with component classes (e.g.,@Configurationclasses).DefaultActiveProfilesResolver Default implementation of theActiveProfilesResolverstrategy that resolves active bean definition profiles based solely on profiles configured declaratively viaActiveProfiles.profiles()orActiveProfiles.value().DefaultBootstrapContext Default implementation of theBootstrapContextinterface.DefaultTestContext Default implementation of theTestContextinterface.DefaultTestContextBootstrapper Default implementation of theTestContextBootstrapperSPI.DelegatingSmartContextLoader DelegatingSmartContextLoaderis a concrete implementation ofAbstractDelegatingSmartContextLoaderthat delegates to aGenericXmlContextLoader(or aGenericGroovyXmlContextLoaderif Groovy is present in the classpath) and anAnnotationConfigContextLoader.DependencyInjectionTestExecutionListener TestExecutionListenerwhich provides support for dependency injection and initialization of test instances.DirtiesContextBeforeModesTestExecutionListener TestExecutionListenerwhich provides support for marking theApplicationContextassociated with a test as dirty for both test classes and test methods annotated with the@DirtiesContextannotation.DirtiesContextTestExecutionListener TestExecutionListenerwhich provides support for marking theApplicationContextassociated with a test as dirty for both test classes and test methods annotated with the@DirtiesContextannotation.GenericGroovyXmlContextLoader Concrete implementation ofAbstractGenericContextLoaderthat reads bean definitions from Groovy scripts and XML configuration files.GenericPropertiesContextLoader Concrete implementation ofAbstractGenericContextLoaderthat reads bean definitions from JavaPropertiesresources.GenericXmlContextLoader Concrete implementation ofAbstractGenericContextLoaderthat reads bean definitions from XML resources.TestConstructorUtils Utility methods for working with@TestConstructor.TestPropertySourceUtils Utility methods for working with@TestPropertySourceand adding testPropertySourcesto theEnvironment.