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


@Documented
@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface AfterTransaction

Test annotation to indicate that the annotated public void method should be executed after a transaction is ended for test methods configured to run within a transaction via the @Transactional annotation.

The @AfterTransaction methods of superclasses will be executed after those of the current class.

Since:
2.5
Author:
Sam Brannen
See Also:
Transactional