Class TestPlanScannerFilter

  • All Implemented Interfaces:
    ScannerFilter

    final class TestPlanScannerFilter
    extends java.lang.Object
    implements ScannerFilter
    Since:
    2.22.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.junit.platform.engine.Filter<?>[] includeAndExcludeFilters  
      private org.junit.platform.launcher.Launcher launcher  
    • Constructor Summary

      Constructors 
      Constructor Description
      TestPlanScannerFilter​(org.junit.platform.launcher.Launcher launcher, org.junit.platform.engine.Filter<?>[] includeAndExcludeFilters)  
    • 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

      • launcher

        private final org.junit.platform.launcher.Launcher launcher
      • includeAndExcludeFilters

        private final org.junit.platform.engine.Filter<?>[] includeAndExcludeFilters
    • Constructor Detail

      • TestPlanScannerFilter

        TestPlanScannerFilter​(org.junit.platform.launcher.Launcher launcher,
                              org.junit.platform.engine.Filter<?>[] includeAndExcludeFilters)
    • 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.