Annotation Type TestTargetNew


@Retention(RUNTIME)
@Target({ANNOTATION_TYPE,METHOD})
public @interface TestTargetNew
Defines an annotation used be used within the TestInfo annotation. It specifies a single method target for the test (but can be used multiple times).
  • Required Element Summary

    Required Elements
    Modifier and Type Required Element Description
    TestLevel level
    Specifies the level of coverage the tested API method has.
  • Optional Element Summary

    Optional Elements
    Modifier and Type Optional Element Description
    Class<?>[] args
    Specifies the signature of the API method that is being tested, in terms of Java classes.
    Class<?> clazz
    Specifies the class to which the tested method belongs.
    String method
    Specifies the name of the API method that is being tested.
    String notes
    Specifies noteworthy plain-text information about the test, for example if something is NOT covered by the test method.
  • Element Details

    • level

      TestLevel level
      Specifies the level of coverage the tested API method has.
    • method

      String method
      Specifies the name of the API method that is being tested. This field may be left empty if the test target is a concept implemented in a class rather than a concrete API method.
      Default:
      ""
    • args

      Class<?>[] args
      Specifies the signature of the API method that is being tested, in terms of Java classes.
      Default:
      {}
    • clazz

      Class<?> clazz
      Specifies the class to which the tested method belongs. If this value is not provided, the class identified in @TestTargetClass is used by the test progress doclet.
      Default:
      void.class
    • notes

      String notes
      Specifies noteworthy plain-text information about the test, for example if something is NOT covered by the test method.
      Default:
      ""