org.apache.maven.surefire.junit4
Class JUnit4Provider
java.lang.Object
org.apache.maven.surefire.junit4.JUnit4Provider
- All Implemented Interfaces:
- SurefireProvider
public class JUnit4Provider
- extends Object
- implements SurefireProvider
- Author:
- Kristian Rosenvold
Method Summary |
Iterator |
getSuites()
Called when forkmode is pertest, allows the provider to define what "pertest" will be. |
RunResult |
invoke(Object forkTestSet)
The test that will be invoked through a fork; used only for forkmode=pertest, when the classpath
scanning happens on the plugin-side. |
Boolean |
isRunnable()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JUnit4Provider
public JUnit4Provider(ProviderParameters booterParameters)
invoke
public RunResult invoke(Object forkTestSet)
throws TestSetFailedException,
ReporterException
- Description copied from interface:
SurefireProvider
- The test that will be invoked through a fork; used only for forkmode=pertest, when the classpath
scanning happens on the plugin-side. When this is set, the forked process will run only that test
and not scan the classpath
- Specified by:
invoke
in interface SurefireProvider
- Parameters:
forkTestSet
- An item from the iterator in #getSuites
- Returns:
- A result of the invocation
- Throws:
TestSetFailedException
- When testset fails
ReporterException
- When reporting fails
getSuites
public Iterator getSuites()
- Description copied from interface:
SurefireProvider
- Called when forkmode is pertest, allows the provider to define what "pertest" will be.
- Specified by:
getSuites
in interface SurefireProvider
- Returns:
- An iterator that will trigger one fork per item
isRunnable
public Boolean isRunnable()
Copyright © 2004-2012 Apache Software Foundation. All Rights Reserved.