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