Class JUnit4TestChecker
java.lang.Object
org.apache.maven.surefire.common.junit4.JUnit4TestChecker
- All Implemented Interfaces:
ScannerFilter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JUnit3TestCheckerprivate final NonAbstractClassFilterprivate final Class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates if the class should be accepted by the directory scannerbooleancheckforTestAnnotatedMethod(Class testClass) booleanprivate booleanisValidJUnit4Test(Class testClass) private booleanlookForTestAnnotatedMethods(Class testClass)
-
Field Details
-
nonAbstractClassFilter
-
runWith
-
jUnit3TestChecker
-
-
Constructor Details
-
JUnit4TestChecker
-
-
Method Details
-
accept
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
-
lookForTestAnnotatedMethods
-
checkforTestAnnotatedMethod
-
isRunWithPresentInClassLoader
public boolean isRunWithPresentInClassLoader()
-