程序包的使用
org.springframework.test.context
使用org.springframework.test.context的程序包 程序包 说明 org.springframework.test.context This package contains the Spring TestContext Framework which provides annotation-driven unit and integration testing support that is agnostic of the actual testing framework in use.org.springframework.test.context.cache Support for context caching within the Spring TestContext Framework.org.springframework.test.context.event Test event support classes for the Spring TestContext Framework.org.springframework.test.context.jdbc JDBC support classes for the Spring TestContext Framework, including support for declarative SQL script execution via@Sql.org.springframework.test.context.junit.jupiter Core support for integrating the Spring TestContext Framework with the JUnit Jupiter extension model in JUnit 5.org.springframework.test.context.junit.jupiter.web Web support for integrating the Spring TestContext Framework with the JUnit Jupiter extension model in JUnit 5.org.springframework.test.context.junit4 Support classes for integrating the Spring TestContext Framework with JUnit 4.12 or higher.org.springframework.test.context.junit4.statements Custom JUnit 4Statementsused in the Spring TestContext Framework.org.springframework.test.context.support Support classes for the Spring TestContext Framework.org.springframework.test.context.testng Support classes for integrating the Spring TestContext Framework with TestNG.org.springframework.test.context.transaction Transactional support classes for the Spring TestContext Framework.org.springframework.test.context.web Web support classes for the Spring TestContext Framework.org.springframework.test.context使用的org.springframework.test.context中的类 类 说明 ActiveProfilesResolver Strategy interface for programmatically resolving which active bean definition profiles should be used when loading anApplicationContextfor a test class.BootstrapContext BootstrapContextencapsulates the context in which the Spring TestContext Framework is bootstrapped.CacheAwareContextLoaderDelegate ACacheAwareContextLoaderDelegateis responsible for loading and closing application contexts, interacting transparently with aContextCachebehind the scenes.ContextConfiguration @ContextConfigurationdefines class-level metadata that is used to determine how to load and configure anApplicationContextfor integration tests.ContextConfigurationAttributes ContextConfigurationAttributesencapsulates the context configuration attributes declared via@ContextConfiguration.ContextCustomizer Strategy interface for customizingapplication contextsthat are created and managed by the Spring TestContext Framework.ContextLoader Strategy interface for loading anapplication contextfor an integration test managed by the Spring TestContext Framework.MergedContextConfiguration MergedContextConfigurationencapsulates the merged context configuration declared on a test class and all of its superclasses via@ContextConfiguration,@ActiveProfiles, and@TestPropertySource.TestConstructor.AutowireMode Defines autowiring modes for parameters in a test constructor.TestContext TestContextencapsulates the context in which a test is executed, agnostic of the actual testing framework in use.TestContextBootstrapper TestContextBootstrapperdefines the SPI for bootstrapping the Spring TestContext Framework.TestExecutionListener TestExecutionListenerdefines a listener API for reacting to test execution events published by theTestContextManagerwith which the listener is registered.TestExecutionListeners.MergeMode Enumeration of modes that dictate whether or not explicitly declared listeners are merged with the default listeners when@TestExecutionListenersis declared on a class that does not inherit listeners from a superclass.TestPropertySource @TestPropertySourceis a class-level annotation that is used to configure theTestPropertySource.locations()of properties files and inlinedTestPropertySource.properties()to be added to theEnvironment's set ofPropertySourcesfor anApplicationContextfor integration tests.org.springframework.test.context.cache使用的org.springframework.test.context中的类 类 说明 CacheAwareContextLoaderDelegate ACacheAwareContextLoaderDelegateis responsible for loading and closing application contexts, interacting transparently with aContextCachebehind the scenes.MergedContextConfiguration MergedContextConfigurationencapsulates the merged context configuration declared on a test class and all of its superclasses via@ContextConfiguration,@ActiveProfiles, and@TestPropertySource.org.springframework.test.context.event使用的org.springframework.test.context中的类 类 说明 TestContext TestContextencapsulates the context in which a test is executed, agnostic of the actual testing framework in use.TestExecutionListener TestExecutionListenerdefines a listener API for reacting to test execution events published by theTestContextManagerwith which the listener is registered.org.springframework.test.context.jdbc使用的org.springframework.test.context中的类 类 说明 TestContext TestContextencapsulates the context in which a test is executed, agnostic of the actual testing framework in use.TestExecutionListener TestExecutionListenerdefines a listener API for reacting to test execution events published by theTestContextManagerwith which the listener is registered.org.springframework.test.context.junit.jupiter使用的org.springframework.test.context中的类 类 说明 ContextConfiguration @ContextConfigurationdefines class-level metadata that is used to determine how to load and configure anApplicationContextfor integration tests.org.springframework.test.context.junit.jupiter.web使用的org.springframework.test.context中的类 类 说明 ContextConfiguration @ContextConfigurationdefines class-level metadata that is used to determine how to load and configure anApplicationContextfor integration tests.org.springframework.test.context.junit4使用的org.springframework.test.context中的类 类 说明 TestContextManager TestContextManageris the main entry point into the Spring TestContext Framework.TestExecutionListeners TestExecutionListenersdefines class-level metadata for configuring whichTestExecutionListenersshould be registered with aTestContextManager.org.springframework.test.context.junit4.statements使用的org.springframework.test.context中的类 类 说明 TestContextManager TestContextManageris the main entry point into the Spring TestContext Framework.org.springframework.test.context.support使用的org.springframework.test.context中的类 类 说明 ActiveProfilesResolver Strategy interface for programmatically resolving which active bean definition profiles should be used when loading anApplicationContextfor a test class.BootstrapContext BootstrapContextencapsulates the context in which the Spring TestContext Framework is bootstrapped.CacheAwareContextLoaderDelegate ACacheAwareContextLoaderDelegateis responsible for loading and closing application contexts, interacting transparently with aContextCachebehind the scenes.ContextConfigurationAttributes ContextConfigurationAttributesencapsulates the context configuration attributes declared via@ContextConfiguration.ContextCustomizerFactory Factory for creatingContextCustomizers.ContextLoader Strategy interface for loading anapplication contextfor an integration test managed by the Spring TestContext Framework.MergedContextConfiguration MergedContextConfigurationencapsulates the merged context configuration declared on a test class and all of its superclasses via@ContextConfiguration,@ActiveProfiles, and@TestPropertySource.SmartContextLoader Strategy interface for loading anapplication contextfor an integration test managed by the Spring TestContext Framework.TestContext TestContextencapsulates the context in which a test is executed, agnostic of the actual testing framework in use.TestContextBootstrapper TestContextBootstrapperdefines the SPI for bootstrapping the Spring TestContext Framework.TestExecutionListener TestExecutionListenerdefines a listener API for reacting to test execution events published by theTestContextManagerwith which the listener is registered.org.springframework.test.context.testng使用的org.springframework.test.context中的类 类 说明 TestExecutionListeners TestExecutionListenersdefines class-level metadata for configuring whichTestExecutionListenersshould be registered with aTestContextManager.org.springframework.test.context.transaction使用的org.springframework.test.context中的类 类 说明 TestContext TestContextencapsulates the context in which a test is executed, agnostic of the actual testing framework in use.TestExecutionListener TestExecutionListenerdefines a listener API for reacting to test execution events published by theTestContextManagerwith which the listener is registered.org.springframework.test.context.web使用的org.springframework.test.context中的类 类 说明 CacheAwareContextLoaderDelegate ACacheAwareContextLoaderDelegateis responsible for loading and closing application contexts, interacting transparently with aContextCachebehind the scenes.ContextConfigurationAttributes ContextConfigurationAttributesencapsulates the context configuration attributes declared via@ContextConfiguration.ContextLoader Strategy interface for loading anapplication contextfor an integration test managed by the Spring TestContext Framework.MergedContextConfiguration MergedContextConfigurationencapsulates the merged context configuration declared on a test class and all of its superclasses via@ContextConfiguration,@ActiveProfiles, and@TestPropertySource.SmartContextLoader Strategy interface for loading anapplication contextfor an integration test managed by the Spring TestContext Framework.TestContext TestContextencapsulates the context in which a test is executed, agnostic of the actual testing framework in use.TestContextBootstrapper TestContextBootstrapperdefines the SPI for bootstrapping the Spring TestContext Framework.TestExecutionListener TestExecutionListenerdefines a listener API for reacting to test execution events published by theTestContextManagerwith which the listener is registered.