Class JUnit3TestNotRun

All Implemented Interfaces:
BugChecker.MethodTreeMatcher, Suppressible, Serializable

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

    • JUnit3TestNotRun

      public JUnit3TestNotRun()
  • Method Details

    • matchMethod

      public Description matchMethod​(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