Class SpecificTestClassFilter

  • All Implemented Interfaces:
    ScannerFilter

    public class SpecificTestClassFilter
    extends java.lang.Object
    implements ScannerFilter
    Filter for test class files
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static char FS  
      private static java.lang.String JAVA_CLASS_FILE_EXTENSION  
      private java.util.Set<java.lang.String> names  
    • Constructor Summary

      Constructors 
      Constructor Description
      SpecificTestClassFilter​(java.lang.String[] classNames)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​(java.lang.Class testClass)
      Indicates if the class should be accepted by the directory scanner
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • FS

        private static final char FS
      • JAVA_CLASS_FILE_EXTENSION

        private static final java.lang.String JAVA_CLASS_FILE_EXTENSION
        See Also:
        Constant Field Values
      • names

        private java.util.Set<java.lang.String> names
    • Constructor Detail

      • SpecificTestClassFilter

        public SpecificTestClassFilter​(java.lang.String[] classNames)
    • Method Detail

      • accept

        public boolean accept​(java.lang.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.