Package dalvik.annotation
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
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Class<?>[]argsSpecifies the signature of the API method that is being tested, in terms of Java classes.Class<?>clazzSpecifies the class to which the tested method belongs.StringmethodSpecifies the name of the API method that is being tested.StringnotesSpecifies noteworthy plain-text information about the test, for example if something is NOT covered by the test method.
-
Element Details
-
level
TestLevel levelSpecifies the level of coverage the tested API method has.
-
-
-
method
String methodSpecifies 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<?>[] argsSpecifies the signature of the API method that is being tested, in terms of Java classes.- Default:
- {}
-
clazz
Class<?> clazzSpecifies 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 notesSpecifies noteworthy plain-text information about the test, for example if something is NOT covered by the test method.- Default:
- ""
-