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 JUnit3TestCheckerjUnit3TestCheckerprivate NonAbstractClassFilternonAbstractClassFilterprivate java.lang.ClassrunWith
-
Constructor Summary
Constructors Constructor Description JUnit4TestChecker(java.lang.ClassLoader testClassLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(java.lang.Class testClass)Indicates if the class should be accepted by the directory scannerbooleancheckforTestAnnotatedMethod(java.lang.Class testClass)booleanisRunWithPresentInClassLoader()private booleanisValidJUnit4Test(java.lang.Class testClass)private booleanlookForTestAnnotatedMethods(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:ScannerFilterIndicates if the class should be accepted by the directory scanner- Specified by:
acceptin 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()
-
-