org.apache.maven.surefire.junitcore
Class JUnitCoreProvider

java.lang.Object
  extended by org.apache.maven.surefire.junitcore.JUnitCoreProvider
All Implemented Interfaces:
SurefireProvider

public class JUnitCoreProvider
extends Object
implements SurefireProvider

Author:
Kristian Rosenvold

Constructor Summary
JUnitCoreProvider(ProviderParameters booterParameters)
           
 
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
 

Constructor Detail

JUnitCoreProvider

public JUnitCoreProvider(ProviderParameters booterParameters)
Method Detail

isRunnable

public Boolean isRunnable()

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

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


Copyright © 2004-2012 Apache Software Foundation. All Rights Reserved.