Class JUnit4TestChecker
- java.lang.Object
-
- org.apache.maven.surefire.common.junit4.JUnit4TestChecker
-
- All Implemented Interfaces:
ScannerFilter
public class JUnit4TestChecker extends java.lang.Object implements ScannerFilter
-
-
Field Summary
Fields Modifier and Type Field Description private JUnit3TestChecker
jUnit3TestChecker
private NonAbstractClassFilter
nonAbstractClassFilter
private java.lang.Class
runWith
-
Constructor Summary
Constructors Constructor Description JUnit4TestChecker(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 scannerboolean
checkforTestAnnotatedMethod(java.lang.Class testClass)
boolean
isRunWithPresentInClassLoader()
private boolean
isValidJUnit4Test(java.lang.Class testClass)
private boolean
lookForTestAnnotatedMethods(java.lang.Class testClass)
-
-
-
Field Detail
-
nonAbstractClassFilter
private final NonAbstractClassFilter nonAbstractClassFilter
-
runWith
private final java.lang.Class runWith
-
jUnit3TestChecker
private final JUnit3TestChecker jUnit3TestChecker
-
-
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.
-
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()
-
-