Class SpecificTestClassFilter

java.lang.Object
org.apache.maven.surefire.api.filter.SpecificTestClassFilter
All Implemented Interfaces:
ScannerFilter

public class SpecificTestClassFilter extends Object implements ScannerFilter
Filter for test class files
  • Field Details

    • FS

      private static final char FS
    • JAVA_CLASS_FILE_EXTENSION

      private static final String JAVA_CLASS_FILE_EXTENSION
      See Also:
    • names

      private Set<String> names
  • Constructor Details

    • SpecificTestClassFilter

      public SpecificTestClassFilter(String[] classNames)
  • 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.