Class JUnit3TestChecker

java.lang.Object
org.apache.maven.surefire.common.junit3.JUnit3TestChecker
All Implemented Interfaces:
ScannerFilter

public class JUnit3TestChecker extends Object implements ScannerFilter
Missing tests ? This class is basically a subset of the JUnit4TestChecker, which is tested to boredom and back. Unfortunately we don't have any common module between these providers, so this stuff is duplicated. We should probably make some modules and just shade the content into the providers.
  • Field Details

    • EMPTY_CLASS_ARRAY

      private static final Class[] EMPTY_CLASS_ARRAY
    • junitClass

      private final Class<?> junitClass
    • nonAbstractClassFilter

      private final NonAbstractClassFilter nonAbstractClassFilter
  • Constructor Details

    • JUnit3TestChecker

      public JUnit3TestChecker(ClassLoader testClassLoader)
  • Method Details

    • accept

      public boolean accept(Class testClass)
      Description copied from interface: ScannerFilter
      Indicates if the class should be accepted by the directory scanner
      Specified by:
      accept in interface ScannerFilter
      Parameters:
      testClass - The class in question
      Returns:
      true if the class should be part of the directory scan result.
    • isValidJUnit3Test

      private boolean isValidJUnit3Test(Class<?> testClass)
    • isSuiteOnly

      private boolean isSuiteOnly(Class testClass)