Class TestNgMatchers
java.lang.Object
com.google.errorprone.matchers.TestNgMatchers
Matchers for code patterns which appear to be TestNG-based tests.
- Author:
- bhagwani@google.com (Sumit Bhagwani)
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
hasTestNgAnnotation
(com.sun.source.tree.ClassTree tree) Checks if a class is annotated with any annotation from the org.testng package.static boolean
hasTestNgAnnotation
(com.sun.source.tree.MethodTree tree, VisitorState state) Checks if a method, or any overridden method, is annotated with any annotation from the org.testng package.
-
Method Details
-
hasTestNgAnnotation
Checks if a method, or any overridden method, is annotated with any annotation from the org.testng package. -
hasTestNgAnnotation
public static boolean hasTestNgAnnotation(com.sun.source.tree.ClassTree tree) Checks if a class is annotated with any annotation from the org.testng package.
-