org.apache.maven.surefire.testng
Class TestNGXmlTestSuite

java.lang.Object
  extended by org.apache.maven.surefire.testng.TestNGXmlTestSuite
All Implemented Interfaces:
SurefireTestSuite

public class TestNGXmlTestSuite
extends java.lang.Object
implements SurefireTestSuite

Handles suite xml file definitions for TestNG.

Author:
jkuhnert, Alex Popescu

Constructor Summary
TestNGXmlTestSuite(java.util.List suiteFiles, java.lang.String testSourceDirectory, java.lang.String artifactVersion, java.lang.String artifactClassifier, java.util.Properties confOptions, java.io.File reportsDirectory)
          Creates a testng testset to be configured by the specified xml file(s).
 
Method Summary
 void execute(ReporterManagerFactory reporterManagerFactory, java.lang.ClassLoader classLoader)
           
 void execute(java.lang.String testSetName, ReporterManagerFactory reporterManagerFactory, java.lang.ClassLoader classLoader)
           
 java.util.List getClassesSkippedByValidation()
           
 int getNumTests()
           
 java.lang.String getSuiteName()
           
 java.util.Map locateTestSets(java.lang.ClassLoader classLoader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestNGXmlTestSuite

public TestNGXmlTestSuite(java.util.List suiteFiles,
                          java.lang.String testSourceDirectory,
                          java.lang.String artifactVersion,
                          java.lang.String artifactClassifier,
                          java.util.Properties confOptions,
                          java.io.File reportsDirectory)
Creates a testng testset to be configured by the specified xml file(s). The XML files are suite definitions files according to TestNG DTD.

Method Detail

execute

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

execute

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

getNumTests

public int getNumTests()
Specified by:
getNumTests in interface SurefireTestSuite

getClassesSkippedByValidation

public java.util.List getClassesSkippedByValidation()
Specified by:
getClassesSkippedByValidation in interface SurefireTestSuite

locateTestSets

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

getSuiteName

public java.lang.String getSuiteName()


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.