Class TestNGMapConfigurator
java.lang.Object
org.apache.maven.surefire.testng.conf.TestNGMapConfigurator
- All Implemented Interfaces:
Configurator
- Direct Known Subclasses:
TestNG510Configurator
TestNG configurator for 5.3+ versions. TestNG exposes a
Test classes and/or suite files are not passed along as options parameters, but configured separately.
TestNG.configure(java.util.Map)
method.
All supported TestNG options are passed in String format.
Test classes and/or suite files are not passed along as options parameters, but configured separately.
- Author:
- Alex Popescu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
protected void
configureParallel
(org.testng.xml.XmlSuite suite, Map<String, String> options) protected void
configureThreadCount
(org.testng.xml.XmlSuite suite, Map<String, String> options) protected Object
protected Object
convertListeners
(String listenerClasses) protected Object
-
Constructor Details
-
TestNGMapConfigurator
public TestNGMapConfigurator()
-
-
Method Details
-
configure
public void configure(org.testng.TestNG testng, Map<String, String> options) throws org.apache.maven.surefire.api.testset.TestSetFailedException- Specified by:
configure
in interfaceConfigurator
- Throws:
org.apache.maven.surefire.api.testset.TestSetFailedException
-
configure
public void configure(org.testng.xml.XmlSuite suite, Map<String, String> options) throws org.apache.maven.surefire.api.testset.TestSetFailedException- Specified by:
configure
in interfaceConfigurator
- Throws:
org.apache.maven.surefire.api.testset.TestSetFailedException
-
configureThreadCount
protected void configureThreadCount(org.testng.xml.XmlSuite suite, Map<String, String> options) throws org.apache.maven.surefire.api.testset.TestSetFailedException- Throws:
org.apache.maven.surefire.api.testset.TestSetFailedException
-
configureParallel
protected void configureParallel(org.testng.xml.XmlSuite suite, Map<String, String> options) throws org.apache.maven.surefire.api.testset.TestSetFailedException- Throws:
org.apache.maven.surefire.api.testset.TestSetFailedException
-
convertReporterConfig
-
convertListeners
protected Object convertListeners(String listenerClasses) throws org.apache.maven.surefire.api.testset.TestSetFailedException - Throws:
org.apache.maven.surefire.api.testset.TestSetFailedException
-
convert
-