org.apache.maven.surefire.testng
Class TestNGProvider

java.lang.Object
  extended by org.apache.maven.surefire.testng.TestNGProvider
All Implemented Interfaces:
SurefireProvider

public class TestNGProvider
extends java.lang.Object
implements SurefireProvider

Author:
Kristian Rosenvold

Constructor Summary
TestNGProvider(ProviderParameters booterParameters)
           
 
Method Summary
 java.util.Iterator getSuites()
          Called when forkmode is pertest, allows the provider to define what "pertest" will be.
 RunResult invoke(java.lang.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.
 java.lang.Boolean isRunnable()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestNGProvider

public TestNGProvider(ProviderParameters booterParameters)
Method Detail

isRunnable

public java.lang.Boolean isRunnable()

invoke

public RunResult invoke(java.lang.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 java.util.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


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