程序包的使用
cn.taketoday.test.context
程序包
说明
Classes and annotations related to configuring Infra
ApplicationContext for
tests.Test support for
cn.taketoday.framework.context.TypeExcludeFilter.Support for testing JSON.
Mockito integration for tests.
Web client test utilities.
Infra support for testing server endpoints via
WebTestClient.This package contains the TestContext Framework which
provides annotation-driven unit and integration testing support that is
agnostic of the actual testing framework in use.
Ahead-of-time (AOT) support for the Infra TestContext Framework.
Support for context caching within the TestContext Framework.
Test event support classes for the TestContext Framework.
JDBC support classes for the TestContext Framework,
including support for declarative SQL script execution via
@Sql.Core support for integrating the TestContext Framework
with the JUnit Jupiter extension model in JUnit 5.
Web support for integrating the TestContext Framework
with the JUnit Jupiter extension model in JUnit 5.
Support classes for integrating the TestContext Framework
with JUnit 4.12 or higher.
Custom JUnit 4
Rules used in the TestContext Framework.Custom JUnit 4
Statements used in the TestContext Framework.Support classes for the TestContext Framework.
Transactional support classes for the TestContext Framework.
Web support classes for the TestContext Framework.
WebSocket support classes for the TestContext Framework.
-
类说明
@BootstrapWithdefines class-level metadata that is used to determine how to bootstrap the TestContext Framework.@ContextConfigurationdefines class-level metadata that is used to determine how to load and configure anApplicationContextfor integration tests.ContextConfigurationAttributesencapsulates the context configuration attributes declared via@ContextConfiguration.Strategy interface for customizingapplication contextsthat are created and managed by the Infra TestContext Framework.Factory for creatingContextCustomizers.Strategy interface for loading anapplication contextfor an integration test managed by the TestContext Framework.MergedContextConfigurationencapsulates the merged context configuration declared on a test class and all of its superclasses via@ContextConfiguration,@ActiveProfiles, and@TestPropertySource.Strategy interface for loading anapplication contextfor an integration test managed by the TestContext Framework.TestContextencapsulates the context in which a test is executed, agnostic of the actual testing framework in use.TestContextBootstrapperdefines the SPI for bootstrapping the TestContext Framework.TestExecutionListenerdefines a listener API for reacting to test execution events published by theTestContextManagerwith which the listener is registered. -
类说明
ContextConfigurationAttributesencapsulates the context configuration attributes declared via@ContextConfiguration.Strategy interface for customizingapplication contextsthat are created and managed by the Infra TestContext Framework.Factory for creatingContextCustomizers.MergedContextConfigurationencapsulates the merged context configuration declared on a test class and all of its superclasses via@ContextConfiguration,@ActiveProfiles, and@TestPropertySource. -
类说明
ContextConfigurationAttributesencapsulates the context configuration attributes declared via@ContextConfiguration.Strategy interface for customizingapplication contextsthat are created and managed by the Infra TestContext Framework.Factory for creatingContextCustomizers.MergedContextConfigurationencapsulates the merged context configuration declared on a test class and all of its superclasses via@ContextConfiguration,@ActiveProfiles, and@TestPropertySource. -
类说明
ContextConfigurationAttributesencapsulates the context configuration attributes declared via@ContextConfiguration.Strategy interface for customizingapplication contextsthat are created and managed by the Infra TestContext Framework.Factory for creatingContextCustomizers.MergedContextConfigurationencapsulates the merged context configuration declared on a test class and all of its superclasses via@ContextConfiguration,@ActiveProfiles, and@TestPropertySource.TestContextencapsulates the context in which a test is executed, agnostic of the actual testing framework in use.TestExecutionListenerdefines a listener API for reacting to test execution events published by theTestContextManagerwith which the listener is registered. -
类说明
ContextConfigurationAttributesencapsulates the context configuration attributes declared via@ContextConfiguration.Strategy interface for customizingapplication contextsthat are created and managed by the Infra TestContext Framework.Factory for creatingContextCustomizers.MergedContextConfigurationencapsulates the merged context configuration declared on a test class and all of its superclasses via@ContextConfiguration,@ActiveProfiles, and@TestPropertySource. -
类说明
ContextConfigurationAttributesencapsulates the context configuration attributes declared via@ContextConfiguration.Strategy interface for customizingapplication contextsthat are created and managed by the Infra TestContext Framework.Factory for creatingContextCustomizers.MergedContextConfigurationencapsulates the merged context configuration declared on a test class and all of its superclasses via@ContextConfiguration,@ActiveProfiles, and@TestPropertySource. -
类说明
BootstrapContextencapsulates the context in which the Infra TestContext Framework is bootstrapped.ACacheAwareContextLoaderDelegateis responsible for loading and closing application contexts, interacting transparently with aContextCachebehind the scenes.@ContextConfigurationdefines class-level metadata that is used to determine how to load and configure anApplicationContextfor integration tests.ContextConfigurationAttributesencapsulates the context configuration attributes declared via@ContextConfiguration.Strategy interface for customizingapplication contextsthat are created and managed by the Infra TestContext Framework.Strategy interface for loading anapplication contextfor an integration test managed by the TestContext Framework.MergedContextConfigurationencapsulates the merged context configuration declared on a test class and all of its superclasses via@ContextConfiguration,@ActiveProfiles, and@TestPropertySource.Enumeration of modes that dictate how test configuration from enclosing classes is processed for inner test classes.Defines autowiring modes for parameters in a test constructor.TestContextencapsulates the context in which a test is executed, agnostic of the actual testing framework in use.Descriptor for anAnnotation, including the class on which the annotation is declared as well as the merged annotation instance.Untyped extension ofTestContextAnnotationUtils.AnnotationDescriptorthat is used to describe the declaration of one of several candidate annotation types where the actual annotation type cannot be predetermined.TestContextBootstrapperdefines the SPI for bootstrapping the TestContext Framework.TestExecutionListenerdefines a listener API for reacting to test execution events published by theTestContextManagerwith which the listener is registered.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. -
类说明Strategy interface for loading an
application contextfor an integration test managed by the TestContext Framework.MergedContextConfigurationencapsulates the merged context configuration declared on a test class and all of its superclasses via@ContextConfiguration,@ActiveProfiles, and@TestPropertySource.Strategy interface for loading anapplication contextfor an integration test managed by the TestContext Framework.TestExecutionListenerdefines a listener API for reacting to test execution events published by theTestContextManagerwith which the listener is registered. -
类说明Strategy for components that process failures related to application contexts within the Infra TestContext Framework.A
CacheAwareContextLoaderDelegateis responsible for loading and closing application contexts, interacting transparently with aContextCachebehind the scenes.Strategy interface for loading anapplication contextfor an integration test managed by the TestContext Framework.MergedContextConfigurationencapsulates the merged context configuration declared on a test class and all of its superclasses via@ContextConfiguration,@ActiveProfiles, and@TestPropertySource. -
类说明
TestContextencapsulates the context in which a test is executed, agnostic of the actual testing framework in use.TestExecutionListenerdefines a listener API for reacting to test execution events published by theTestContextManagerwith which the listener is registered. -
类说明
TestContextencapsulates the context in which a test is executed, agnostic of the actual testing framework in use.TestExecutionListenerdefines a listener API for reacting to test execution events published by theTestContextManagerwith which the listener is registered. -
类说明
@ContextConfigurationdefines class-level metadata that is used to determine how to load and configure anApplicationContextfor integration tests.TestContextManageris the main entry point into the Infra TestContext Framework. -
类说明
@ContextConfigurationdefines class-level metadata that is used to determine how to load and configure anApplicationContextfor integration tests. -
类说明
TestContextManageris the main entry point into the Infra TestContext Framework.TestExecutionListenersdefines class-level metadata for configuring whichTestExecutionListenersshould be registered with aTestContextManager. -
类说明
TestContextManageris the main entry point into the Infra TestContext Framework. -
类说明
TestContextManageris the main entry point into the Infra TestContext Framework. -
类说明Strategy interface for programmatically resolving which active bean definition profiles should be used when loading an
ApplicationContextfor a test class.BootstrapContextencapsulates the context in which the Infra TestContext Framework is bootstrapped.ACacheAwareContextLoaderDelegateis responsible for loading and closing application contexts, interacting transparently with aContextCachebehind the scenes.@ContextConfigurationdefines class-level metadata that is used to determine how to load and configure anApplicationContextfor integration tests.ContextConfigurationAttributesencapsulates the context configuration attributes declared via@ContextConfiguration.Strategy interface for customizingapplication contextsthat are created and managed by the Infra TestContext Framework.Factory for creatingContextCustomizers.Strategy interface for loading anapplication contextfor an integration test managed by the TestContext Framework.MergedContextConfigurationencapsulates the merged context configuration declared on a test class and all of its superclasses via@ContextConfiguration,@ActiveProfiles, and@TestPropertySource.Strategy interface for loading anapplication contextfor an integration test managed by the TestContext Framework.TestContextencapsulates the context in which a test is executed, agnostic of the actual testing framework in use.TestContextBootstrapperdefines the SPI for bootstrapping the TestContext Framework.TestExecutionListenerdefines a listener API for reacting to test execution events published by theTestContextManagerwith which the listener is registered.@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. -
类说明
TestContextencapsulates the context in which a test is executed, agnostic of the actual testing framework in use.TestExecutionListenerdefines a listener API for reacting to test execution events published by theTestContextManagerwith which the listener is registered. -
类说明A
CacheAwareContextLoaderDelegateis responsible for loading and closing application contexts, interacting transparently with aContextCachebehind the scenes.ContextConfigurationAttributesencapsulates the context configuration attributes declared via@ContextConfiguration.Strategy interface for loading anapplication contextfor an integration test managed by the TestContext Framework.MergedContextConfigurationencapsulates the merged context configuration declared on a test class and all of its superclasses via@ContextConfiguration,@ActiveProfiles, and@TestPropertySource.Strategy interface for loading anapplication contextfor an integration test managed by the TestContext Framework.TestContextencapsulates the context in which a test is executed, agnostic of the actual testing framework in use.TestContextBootstrapperdefines the SPI for bootstrapping the TestContext Framework.TestExecutionListenerdefines a listener API for reacting to test execution events published by theTestContextManagerwith which the listener is registered. -
类说明
ContextConfigurationAttributesencapsulates the context configuration attributes declared via@ContextConfiguration.Strategy interface for customizingapplication contextsthat are created and managed by the Infra TestContext Framework.Factory for creatingContextCustomizers.MergedContextConfigurationencapsulates the merged context configuration declared on a test class and all of its superclasses via@ContextConfiguration,@ActiveProfiles, and@TestPropertySource.