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, except
org.testng.TestNGCommandLineArgs#LISTENER_COMMAND_OPT
which is List>Class<
,
org.testng.TestNGCommandLineArgs#JUNIT_DEF_OPT
which is a Boolean
,
org.testng.TestNGCommandLineArgs#SKIP_FAILED_INVOCATION_COUNT_OPT
which is a Boolean
,
org.testng.TestNGCommandLineArgs#OBJECT_FACTORY_COMMAND_OPT
which is a Class
,
org.testng.TestNGCommandLineArgs#REPORTERS_LIST
which is a List>ReporterConfig<
.
Test classes and/or suite files are not passed along as options parameters, but configured separately.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
protected Object
protected Object
convertListeners
(String listenerClasses) protected Object
getConvertedOptions
(Map<String, String> options)
-
Constructor Details
-
TestNGMapConfigurator
public TestNGMapConfigurator()
-
-
Method Details
-
configure
public void configure(org.testng.TestNG testng, Map<String, String> options) throws TestSetFailedException- Specified by:
configure
in interfaceConfigurator
- Throws:
TestSetFailedException
-
configure
public void configure(org.testng.xml.XmlSuite suite, Map<String, String> options) throws TestSetFailedException- Specified by:
configure
in interfaceConfigurator
- Throws:
TestSetFailedException
-
getConvertedOptions
- Throws:
TestSetFailedException
-
convertReporterConfig
-
convertListeners
- Throws:
TestSetFailedException
-
convert
-