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
  • 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.