Class JUnit3TestNotRun

java.lang.Object
com.google.errorprone.bugpatterns.BugChecker
com.google.errorprone.bugpatterns.JUnit3TestNotRun
All Implemented Interfaces:
BugChecker.MethodTreeMatcher, Suppressible, Serializable

public class JUnit3TestNotRun
extends BugChecker
implements BugChecker.MethodTreeMatcher
Author:
rburny@google.com (Radoslaw Burny)
See Also:
Serialized Form
  • Constructor Details

    • JUnit3TestNotRun

      public JUnit3TestNotRun()
  • Method Details

    • matchMethod

      public Description matchMethod​(com.sun.source.tree.MethodTree methodTree, VisitorState state)
      Matches if: 1) Method's name begins with misspelled variation of "test". 2) Method is public, returns void, and has no parameters. 3) Enclosing class is JUnit3 test (extends TestCase, has no @RunWith annotation, no @Test-annotated methods, and is not abstract).
      Specified by:
      matchMethod in interface BugChecker.MethodTreeMatcher