@Documented @Retention(value=RUNTIME) @Target(value={METHOD,ANNOTATION_TYPE}) public @interface BeforeTransaction
Test annotation to indicate that the annotated public void
method should be executed before a transaction is started for test
methods configured to run within a transaction via the
@Transactional
annotation.
The @BeforeTransaction
methods of superclasses will be
executed before those of the current class.
As of Spring Framework 4.0, this annotation may be used as a meta-annotation to create custom composed annotations.
Transactional
,
AfterTransaction