Class TestNgMatchers

java.lang.Object
com.google.errorprone.matchers.TestNgMatchers

public class TestNgMatchers
extends Object
Matchers for code patterns which appear to be TestNG-based tests.
Author:
bhagwani@google.com (Sumit Bhagwani)
  • Method Details

    • hasTestNgAnnotation

      public 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.