org.apache.maven.surefire.testng
Class TestNGDirectoryTestSuite

java.lang.Object
  extended by org.apache.maven.surefire.testng.TestNGDirectoryTestSuite
All Implemented Interfaces:
TestNgTestSuite

public class TestNGDirectoryTestSuite
extends java.lang.Object
implements TestNgTestSuite

Test suite for TestNG based on a directory of Java test classes. Can also execute JUnit tests.

Author:
Brett Porter, Alex Popescu

Field Summary
protected  java.util.SortedMap testSets
           
 
Constructor Summary
TestNGDirectoryTestSuite(java.io.File basedir, java.util.ArrayList includes, java.util.ArrayList excludes, java.lang.String testSourceDirectory, java.lang.String artifactVersion, java.util.Properties confOptions, java.io.File reportsDirectory)
           
TestNGDirectoryTestSuite(java.io.File basedir, java.util.List includes, java.util.List excludes, java.lang.String testSourceDirectory, org.apache.maven.artifact.versioning.ArtifactVersion artifactVersion, java.util.Map confOptions, java.io.File reportsDirectory)
           
 
Method Summary
 void execute(java.lang.String testSetName, ReporterManagerFactory reporterManagerFactory, java.lang.ClassLoader classLoader)
           
 void execute(TestsToRun testsToRun, ReporterFactory reporterManagerFactory)
           
 void executeMulti(TestsToRun testsToRun, ReporterFactory reporterFactory)
           
static void finishTestSuite(Reporter reporterManager, java.lang.Object suite)
           
 java.lang.String getSuiteName()
           
 java.util.Map locateTestSets(java.lang.ClassLoader classLoader)
           
static void startTestSuite(Reporter reporter, java.lang.Object suite)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

testSets

protected java.util.SortedMap testSets
Constructor Detail

TestNGDirectoryTestSuite

public TestNGDirectoryTestSuite(java.io.File basedir,
                                java.util.ArrayList includes,
                                java.util.ArrayList excludes,
                                java.lang.String testSourceDirectory,
                                java.lang.String artifactVersion,
                                java.util.Properties confOptions,
                                java.io.File reportsDirectory)

TestNGDirectoryTestSuite

public TestNGDirectoryTestSuite(java.io.File basedir,
                                java.util.List includes,
                                java.util.List excludes,
                                java.lang.String testSourceDirectory,
                                org.apache.maven.artifact.versioning.ArtifactVersion artifactVersion,
                                java.util.Map confOptions,
                                java.io.File reportsDirectory)
Method Detail

execute

public void execute(TestsToRun testsToRun,
                    ReporterFactory reporterManagerFactory)
             throws ReporterException,
                    TestSetFailedException
Throws:
ReporterException
TestSetFailedException

executeMulti

public void executeMulti(TestsToRun testsToRun,
                         ReporterFactory reporterFactory)
                  throws ReporterException,
                         TestSetFailedException
Throws:
ReporterException
TestSetFailedException

execute

public void execute(java.lang.String testSetName,
                    ReporterManagerFactory reporterManagerFactory,
                    java.lang.ClassLoader classLoader)
             throws ReporterException,
                    TestSetFailedException
Specified by:
execute in interface TestNgTestSuite
Throws:
ReporterException
TestSetFailedException

startTestSuite

public static void startTestSuite(Reporter reporter,
                                  java.lang.Object suite)

finishTestSuite

public static void finishTestSuite(Reporter reporterManager,
                                   java.lang.Object suite)
                            throws ReporterException
Throws:
ReporterException

getSuiteName

public java.lang.String getSuiteName()

locateTestSets

public java.util.Map locateTestSets(java.lang.ClassLoader classLoader)
                             throws TestSetFailedException
Specified by:
locateTestSets in interface TestNgTestSuite
Throws:
TestSetFailedException


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