abstract class ProfileValueUtils
General utility methods for working with profile values. |
|
open class SystemProfileValueSource : ProfileValueSource
Implementation of ProfileValueSource which uses system properties as the underlying source. |
|
open class TestAnnotationUtils
Collection of utility methods for working with Spring's core testing annotations. |
class Commit
Consult the class-level Javadoc for org.springframework.test.context.transaction.TransactionalTestExecutionListener for an explanation of test-managed transactions. When declared as a class-level annotation, Warning: |
|
class DirtiesContext
Test annotation which indicates that the org.springframework.context.ApplicationContext associated with a test is dirty and should therefore be closed and removed from the context cache. Use this annotation if a test has modified the context — for example, by modifying the state of a singleton bean, modifying the state of an embedded database, etc. Subsequent tests that request the same context will be supplied a new context.
As of Spring Framework 4.0, this annotation may be used as a meta-annotation to create custom composed annotations. Supported Test Phases
|
|
class IfProfileValue
Test annotation to indicate whether a test is enabled or disabled for a specific testing profile. In the context of this annotation, the term profile refers to a Java system property by default; however, the semantics can be changed by implementing a custom ProfileValueSource. If the configured
ProfileValueSource implementation (which is configured by default), you can configure a test method to run only on Java VMs from Oracle as follows: 'OR' Semantics
You can alternatively configure @IfProfileValue vs. @Profile
Although the As of Spring Framework 4.0, this annotation may be used as a meta-annotation to create custom composed annotations. |
|
class ProfileValueSourceConfiguration
As of Spring Framework 4.0, this annotation may be used as a meta-annotation to create custom composed annotations. |
|
class Repeat
Test annotation to indicate that a test method should be invoked repeatedly. Note that the scope of execution to be repeated includes execution of the test method itself as well as any set up or tear down of the test fixture. As of Spring Framework 4.0, this annotation may be used as a meta-annotation to create custom composed annotations. |
|
class Rollback
Consult the class-level Javadoc for org.springframework.test.context.transaction.TransactionalTestExecutionListener for an explanation of test-managed transactions. When declared as a class-level annotation, As of Spring Framework 4.2, Warning: Declaring This annotation may be used as a meta-annotation to create custom composed annotations. Consult the source code for Commit for a concrete example. |
|
class Timed
Test-specific annotation to indicate that a test method has to finish execution in a specified time period. If the text execution takes longer than the specified time period, then the test is considered to have failed. Note that the time period includes execution of the test method itself, any Repeat of the test, and any set up or tear down of the test fixture. As of Spring Framework 4.0, this annotation may be used as a meta-annotation to create custom composed annotations. |