Class JUnit48TestChecker

java.lang.Object
org.apache.maven.surefire.common.junit48.JUnit48TestChecker
All Implemented Interfaces:
ScannerFilter

public class JUnit48TestChecker extends Object implements ScannerFilter
Looks for additional junit48-like features
  • Field Details

  • Constructor Details

    • JUnit48TestChecker

      public JUnit48TestChecker(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.
    • isAbstractWithEnclosedRunner

      private boolean isAbstractWithEnclosedRunner(Class testClass)
    • isRunWithEnclosedRunner

      private boolean isRunWithEnclosedRunner(Class testClass)
    • isAbstract

      private boolean isAbstract(Class testClass)