Class JUnit4TestChecker

    • Constructor Detail

      • JUnit4TestChecker

        public JUnit4TestChecker​(java.lang.ClassLoader testClassLoader)
    • 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.
      • isValidJUnit4Test

        private boolean isValidJUnit4Test​(java.lang.Class testClass)
      • lookForTestAnnotatedMethods

        private boolean lookForTestAnnotatedMethods​(java.lang.Class testClass)
      • checkforTestAnnotatedMethod

        public boolean checkforTestAnnotatedMethod​(java.lang.Class testClass)
      • isRunWithPresentInClassLoader

        public boolean isRunWithPresentInClassLoader()