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
(ClassTree tree) Checks if a class is annotated with any annotation from the org.testng package.static boolean
hasTestNgAnnotation
(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
Checks if a class is annotated with any annotation from the org.testng package.
-