org.springframework.test.context.transaction
Annotation Type BeforeTransaction


@Documented
@Retention(value=RUNTIME)
@Target(value=METHOD)
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.

Since:
2.5
Author:
Sam Brannen
See Also:
Transactional