org.apache.maven.surefire.testng.conf
Class TestNGMapConfigurator

java.lang.Object
  extended by org.apache.maven.surefire.testng.conf.TestNGMapConfigurator
All Implemented Interfaces:
Configurator

public class TestNGMapConfigurator
extends Object
implements Configurator

TestNG configurator for 5.3+ versions. TestNG exposes a TestNG.configure(java.util.Map) method. All suppported TestNG options are passed in String format, except TestNGCommandLineArgs.LISTENER_COMMAND_OPT which is List>Class<, TestNGCommandLineArgs.JUNIT_DEF_OPT which is a Boolean, TestNGCommandLineArgs.SKIP_FAILED_INVOCATION_COUNT_OPT which is a Boolean, TestNGCommandLineArgs.OBJECT_FACTORY_COMMAND_OPT which is a Class, TestNGCommandLineArgs.REPORTERS_LIST which is a List>ReporterConfig<.

Test classes and/or suite files are not passed along as options parameters, but configured separately.

Author:
Alex Popescu

Constructor Summary
TestNGMapConfigurator()
           
 
Method Summary
 void configure(org.testng.TestNG testng, Map options)
           
protected  Object convert(Object val, Class type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestNGMapConfigurator

public TestNGMapConfigurator()
Method Detail

configure

public void configure(org.testng.TestNG testng,
                      Map options)
               throws TestSetFailedException
Specified by:
configure in interface Configurator
Throws:
TestSetFailedException

convert

protected Object convert(Object val,
                         Class type)


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