Class JUnit3TestChecker

  • All Implemented Interfaces:
    ScannerFilter

    public class JUnit3TestChecker
    extends java.lang.Object
    implements ScannerFilter
    Missing tests ? This class is basically a subset of the JUnit4TestChecker, which is tested to boredom and back. Unfortunately we don't have any common module between these providers, so this stuff is duplicated. We should probably make some modules and just shade the content into the providers.
    • Constructor Summary

      Constructors 
      Constructor Description
      JUnit3TestChecker​(java.lang.ClassLoader testClassLoader)  
    • 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
      private boolean isSuiteOnly​(java.lang.Class testClass)  
      private boolean isValidJUnit3Test​(java.lang.Class<?> testClass)  
      • Methods inherited from class java.lang.Object

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

      • EMPTY_CLASS_ARRAY

        private static final java.lang.Class[] EMPTY_CLASS_ARRAY
      • junitClass

        private final java.lang.Class<?> junitClass
    • Constructor Detail

      • JUnit3TestChecker

        public JUnit3TestChecker​(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.
      • isValidJUnit3Test

        private boolean isValidJUnit3Test​(java.lang.Class<?> testClass)
      • isSuiteOnly

        private boolean isSuiteOnly​(java.lang.Class testClass)