View Javadoc

1   package pt.digitalis.dif.sanitycheck.annotations;
2   
3   import java.lang.annotation.ElementType;
4   import java.lang.annotation.Inherited;
5   import java.lang.annotation.Retention;
6   import java.lang.annotation.RetentionPolicy;
7   import java.lang.annotation.Target;
8   
9   import pt.digitalis.dif.dem.annotations.AnnotationTags;
10  
11  /**
12   * @author Galaio da Silva <a href="mailto:jgalaio@digitalis.pt">jgalaio@digitalis.pt</a><br/>
13   * @author Pedro Viegas <a href="mailto:pviegas@digitalis.pt">pviegas@digitalis.pt</a><br/>
14   * @created 4 de Jul de 2011
15   */
16  @Inherited
17  @Retention(RetentionPolicy.RUNTIME)
18  @Target(ElementType.METHOD)
19  public @interface SanityCheckTest {
20  
21      /**
22       * The name of the test
23       * 
24       * @return the name
25       */
26      public String name() default AnnotationTags.NONE;
27  
28      /**
29       * Defines if the method annotated needs an administrator user logged for execution
30       * 
31       * @return validation
32       */
33      public boolean onlyAdministrators() default false;
34  }