Annotation Type Tags


  • @Retention(RUNTIME)
    @Target(TYPE)
    public @interface Tags
    In order to tag your tests simply annotate test suite or test case with the Tags annotation. This annotation can take either one string or a string array because one test case can relate to several tags:

    Usage example:

     @Tags("MyTag1", "MyTag2")
     public class MyTest1() {
     }
    
     @Tags("MyTag1")
     public void MyTest2() {
     }
     
    Since:
    2.0.0
    Author:
    Oliver Libutzki <[email protected]>
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String[] value
      The tags
    • Element Detail

      • value

        java.lang.String[] value
        The tags
        Returns:
        the tags
        Since:
        2.0.0