Annotation Interface AfterTransaction


@Target({METHOD,ANNOTATION_TYPE}) @Retention(RUNTIME) @Documented public @interface AfterTransaction

Test annotation which indicates that the annotated void method should be executed after a transaction is ended for a test method configured to run within a transaction via Framework's @Transactional annotation.

@AfterTransaction methods declared in superclasses or as interface default methods will be executed after those of the current test class.

This annotation may be used as a meta-annotation to create custom composed annotations.

@AfterTransaction may also be declared on Java 8 based interface default methods.

从以下版本开始:
4.0
作者:
Sam Brannen
另请参阅: