Package org.apache.maven.surefire.junit
Class JUnit3Provider
java.lang.Object
org.apache.maven.surefire.api.provider.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 ClassLoader -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate SurefireTestSetExecutorcreateTestSet(Class<?> clazz, JUnit3Reporter reporter) private voidexecuteTestSet(Class<?> testSet, SurefireTestSetExecutor testSetExecutor, JUnit3Reporter reporter, Map<String, String> systemProperties) Determines the number of forks.Runs a forked testprivate TestsToRun(package private) static voidsetSystemManager(String smClassName) Methods inherited from class org.apache.maven.surefire.api.provider.AbstractProvider
cancel
-
Field Details
-
testClassLoader
-
testChecker
-
jUnit3TestChecker
-
reflector
-
providerParameters
-
runOrderCalculator
-
scanResult
-
-
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
-
setSystemManager
- Throws:
TestSetFailedException
-
createTestSet
-
executeTestSet
private void executeTestSet(Class<?> testSet, SurefireTestSetExecutor testSetExecutor, JUnit3Reporter reporter, 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
-