Class JUnit3TestChecker
- java.lang.Object
-
- org.apache.maven.surefire.common.junit3.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.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.Class[]
EMPTY_CLASS_ARRAY
private java.lang.Class<?>
junitClass
private NonAbstractClassFilter
nonAbstractClassFilter
-
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 scannerprivate boolean
isSuiteOnly(java.lang.Class testClass)
private boolean
isValidJUnit3Test(java.lang.Class<?> testClass)
-
-
-
Field Detail
-
EMPTY_CLASS_ARRAY
private static final java.lang.Class[] EMPTY_CLASS_ARRAY
-
junitClass
private final java.lang.Class<?> junitClass
-
nonAbstractClassFilter
private final NonAbstractClassFilter nonAbstractClassFilter
-
-
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 interfaceScannerFilter
- 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)
-
-