Class JUnit4TestChecker

java.lang.Object
org.apache.maven.surefire.common.junit4.JUnit4TestChecker
All Implemented Interfaces:
ScannerFilter

public class JUnit4TestChecker extends Object implements ScannerFilter
  • Field Details

  • Constructor Details

    • JUnit4TestChecker

      public JUnit4TestChecker(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.
    • isValidJUnit4Test

      private boolean isValidJUnit4Test(Class testClass)
    • lookForTestAnnotatedMethods

      private boolean lookForTestAnnotatedMethods(Class testClass)
    • checkforTestAnnotatedMethod

      public boolean checkforTestAnnotatedMethod(Class testClass)
    • isRunWithPresentInClassLoader

      public boolean isRunWithPresentInClassLoader()