Uses of Package
org.springframework.test.context
Package
Description
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.
Ahead-of-time (AOT) support for the Spring TestContext Framework.
Support for context caching within the Spring TestContext Framework.
Test event support classes for the Spring TestContext Framework.
JDBC support classes for the Spring TestContext Framework,
including support for declarative SQL script execution via
@Sql
.Core support for integrating the Spring TestContext Framework
with the JUnit Jupiter extension model in JUnit 5.
Web support for integrating the Spring TestContext Framework
with the JUnit Jupiter extension model in JUnit 5.
Support classes for integrating the Spring TestContext Framework
with JUnit 4.12 or higher.
Custom JUnit 4
Statements
used in the Spring TestContext Framework.Support classes for the Spring TestContext Framework.
Transactional support classes for the Spring TestContext Framework.
Web support classes for the Spring TestContext Framework.
-
ClassDescription
BootstrapContext
encapsulates the context in which the Spring TestContext Framework is bootstrapped.ACacheAwareContextLoaderDelegate
is responsible for loading and closing application contexts, interacting transparently with aContextCache
behind the scenes.@ContextConfiguration
defines class-level metadata that is used to determine how to load and configure anApplicationContext
for integration tests.ContextConfigurationAttributes
encapsulates the context configuration attributes declared via@ContextConfiguration
.Strategy interface for customizingapplication contexts
that are created and managed by the Spring TestContext Framework.Enumeration of modes that dictate whether explicitly declared factories are merged with the default factories when@ContextCustomizerFactories
is declared on a class that does not inherit factories from a superclass or enclosing class.Strategy interface for loading anApplicationContext
for an integration test managed by the Spring TestContext Framework.MergedContextConfiguration
encapsulates the merged context configuration declared on a test class and all of its superclasses and enclosing classes via@ContextConfiguration
,@ActiveProfiles
, and@TestPropertySource
.MethodInvoker
defines a generic API for invoking aMethod
within the Spring TestContext Framework.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.TestContext
encapsulates 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.AnnotationDescriptor
that is used to describe the declaration of one of several candidate annotation types where the actual annotation type cannot be predetermined.TestContextBootstrapper
defines the SPI for bootstrapping the Spring TestContext Framework.TestExecutionListener
defines a listener API for reacting to test execution events published by theTestContextManager
with which the listener is registered.Enumeration of modes that dictate whether explicitly declared listeners are merged with the default listeners when@TestExecutionListeners
is declared on a class that does not inherit listeners from a superclass or enclosing class. -
ClassDescriptionStrategy interface for loading an
ApplicationContext
for an integration test managed by the Spring TestContext Framework.MergedContextConfiguration
encapsulates the merged context configuration declared on a test class and all of its superclasses and enclosing classes via@ContextConfiguration
,@ActiveProfiles
, and@TestPropertySource
.Strategy interface for loading anApplicationContext
for an integration test managed by the Spring TestContext Framework.TestExecutionListener
defines a listener API for reacting to test execution events published by theTestContextManager
with which the listener is registered. -
ClassDescriptionA
CacheAwareContextLoaderDelegate
is responsible for loading and closing application contexts, interacting transparently with aContextCache
behind the scenes.MergedContextConfiguration
encapsulates the merged context configuration declared on a test class and all of its superclasses and enclosing classes via@ContextConfiguration
,@ActiveProfiles
, and@TestPropertySource
. -
ClassDescription
TestContext
encapsulates the context in which a test is executed, agnostic of the actual testing framework in use.TestExecutionListener
defines a listener API for reacting to test execution events published by theTestContextManager
with which the listener is registered. -
ClassDescription
TestContext
encapsulates the context in which a test is executed, agnostic of the actual testing framework in use.TestExecutionListener
defines a listener API for reacting to test execution events published by theTestContextManager
with which the listener is registered. -
ClassDescription
@ContextConfiguration
defines class-level metadata that is used to determine how to load and configure anApplicationContext
for integration tests. -
ClassDescription
@ContextConfiguration
defines class-level metadata that is used to determine how to load and configure anApplicationContext
for integration tests. -
ClassDescription
TestContextManager
is the main entry point into the Spring TestContext Framework. -
ClassDescription
TestContextManager
is the main entry point into the Spring TestContext Framework. -
ClassDescriptionStrategy interface for programmatically resolving which active bean definition profiles should be used when loading an
ApplicationContext
for a test class.BootstrapContext
encapsulates the context in which the Spring TestContext Framework is bootstrapped.ACacheAwareContextLoaderDelegate
is responsible for loading and closing application contexts, interacting transparently with aContextCache
behind the scenes.ContextConfigurationAttributes
encapsulates the context configuration attributes declared via@ContextConfiguration
.Factory for creatingContextCustomizers
.Strategy interface for loading anApplicationContext
for an integration test managed by the Spring TestContext Framework.MergedContextConfiguration
encapsulates the merged context configuration declared on a test class and all of its superclasses and enclosing classes via@ContextConfiguration
,@ActiveProfiles
, and@TestPropertySource
.MethodInvoker
defines a generic API for invoking aMethod
within the Spring TestContext Framework.Strategy interface for loading anApplicationContext
for an integration test managed by the Spring TestContext Framework.TestContext
encapsulates the context in which a test is executed, agnostic of the actual testing framework in use.TestContextBootstrapper
defines the SPI for bootstrapping the Spring TestContext Framework.TestExecutionListener
defines a listener API for reacting to test execution events published by theTestContextManager
with which the listener is registered. -
ClassDescription
TestContext
encapsulates the context in which a test is executed, agnostic of the actual testing framework in use.TestExecutionListener
defines a listener API for reacting to test execution events published by theTestContextManager
with which the listener is registered. -
ClassDescriptionA
CacheAwareContextLoaderDelegate
is responsible for loading and closing application contexts, interacting transparently with aContextCache
behind the scenes.ContextConfigurationAttributes
encapsulates the context configuration attributes declared via@ContextConfiguration
.Strategy interface for loading anApplicationContext
for an integration test managed by the Spring TestContext Framework.MergedContextConfiguration
encapsulates the merged context configuration declared on a test class and all of its superclasses and enclosing classes via@ContextConfiguration
,@ActiveProfiles
, and@TestPropertySource
.Strategy interface for loading anApplicationContext
for an integration test managed by the Spring TestContext Framework.TestContext
encapsulates the context in which a test is executed, agnostic of the actual testing framework in use.TestContextBootstrapper
defines the SPI for bootstrapping the Spring TestContext Framework.TestExecutionListener
defines a listener API for reacting to test execution events published by theTestContextManager
with which the listener is registered.