Package org.apache.maven.surefire.junit
Class JUnit3Provider
java.lang.Object
org.apache.maven.surefire.providerapi.AbstractProvider
org.apache.maven.surefire.junit.JUnit3Provider
- All Implemented Interfaces:
SurefireProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JUnit3TestCheckerprivate final ProviderParametersprivate final JUnit3Reflectorprivate final RunOrderCalculatorprivate final ScanResultprivate final PojoAndJUnit3Checkerprivate final ClassLoaderprivate TestsToRun -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate SurefireTestSetcreateTestSet(Class<?> clazz) private voidexecuteTestSet(SurefireTestSet testSet, RunListener reporter, ClassLoader classLoader, Map<String, String> systemProperties) Determines the number of forks.Runs a forked testprivate TestsToRunMethods inherited from class org.apache.maven.surefire.providerapi.AbstractProvider
cancel
-
Field Details
-
testClassLoader
-
testChecker
-
jUnit3TestChecker
-
reflector
-
providerParameters
-
runOrderCalculator
-
scanResult
-
testsToRun
-
-
Constructor Details
-
JUnit3Provider
-
-
Method Details
-
invoke
Description copied from interface:SurefireProviderRuns a forked test- Parameters:
forkTestSet- An item from the iterator in #getSuites. Will be null for forkmode never or always. When this is non-null, the forked process will run only that test and probably not scan the classpath- Returns:
- A result of the invocation
- Throws:
TestSetFailedException- When testset fails
-
createTestSet
-
executeTestSet
private void executeTestSet(SurefireTestSet testSet, RunListener reporter, ClassLoader classLoader, Map<String, String> systemProperties) throws TestSetFailedException- Throws:
TestSetFailedException
-
scanClassPath
-
getSuites
Description copied from interface:SurefireProviderDetermines the number of forks.
Called when forkmode is different from "never" or "always", allows the provider to define how to behave for the fork.- Returns:
- An iterator that will trigger one fork per item
-