001package arez.testng; 002 003import java.lang.annotation.Documented; 004import java.lang.annotation.ElementType; 005import java.lang.annotation.Retention; 006import java.lang.annotation.RetentionPolicy; 007import java.lang.annotation.Target; 008 009/** 010 * Annotation applied to test methods to indicate whether the test method should be wrapped in an arez action. 011 * The hook will first look at the method and then will look at the enclosing class 012 * and then super classes until the annotation is found or the java.util.Object class 013 * is reached. 014 */ 015@Documented 016@Target( { ElementType.TYPE, ElementType.METHOD } ) 017@Retention( RetentionPolicy.RUNTIME ) 018public @interface ActionWrapper 019{ 020 /** 021 * A flag indicating whether the test method should be wrapped in an action. 022 * 023 * @return true if the test method should be wrapped in an action, false otherwise. 024 */ 025 boolean enable(); 026}