程序包的使用
org.springframework.test.annotation
使用org.springframework.test.annotation的程序包 程序包 说明 org.springframework.test.annotation Support classes for annotation-driven tests.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.support Support classes for the Spring TestContext Framework.org.springframework.test.annotation使用的org.springframework.test.annotation中的类 类 说明 DirtiesContext.ClassMode Defines modes which determine how@DirtiesContext
is interpreted when used to annotate a test class.DirtiesContext.HierarchyMode Defines modes which determine how the context cache is cleared when@DirtiesContext
is used in a test whose context is configured as part of a hierarchy via@ContextHierarchy
.DirtiesContext.MethodMode Defines modes which determine how@DirtiesContext
is interpreted when used to annotate a test method.ProfileValueSource Strategy interface for retrieving profile values for a given testing environment.Rollback @Rollback
is a test annotation that is used to indicate whether a test-managed transaction should be rolled back after the test method has completed.SystemProfileValueSource Implementation ofProfileValueSource
which uses system properties as the underlying source.org.springframework.test.context使用的org.springframework.test.annotation中的类 类 说明 DirtiesContext.HierarchyMode Defines modes which determine how the context cache is cleared when@DirtiesContext
is used in a test whose context is configured as part of a hierarchy via@ContextHierarchy
.org.springframework.test.context.cache使用的org.springframework.test.annotation中的类 类 说明 DirtiesContext.HierarchyMode Defines modes which determine how the context cache is cleared when@DirtiesContext
is used in a test whose context is configured as part of a hierarchy via@ContextHierarchy
.org.springframework.test.context.support使用的org.springframework.test.annotation中的类 类 说明 DirtiesContext.ClassMode Defines modes which determine how@DirtiesContext
is interpreted when used to annotate a test class.DirtiesContext.HierarchyMode Defines modes which determine how the context cache is cleared when@DirtiesContext
is used in a test whose context is configured as part of a hierarchy via@ContextHierarchy
.DirtiesContext.MethodMode Defines modes which determine how@DirtiesContext
is interpreted when used to annotate a test method.