Class TestNG740Configurator

All Implemented Interfaces:
Configurator

public class TestNG740Configurator extends TestNG60Configurator
TestNG 7.4.0 configurator. Changed setParallel type to enum value. Uses reflection since ParallelMode enum doesn't exist in supported TestNG 5.x versions.
Since:
3.0.0-M6
  • Constructor Details

    • TestNG740Configurator

      public TestNG740Configurator()
  • Method Details

    • configureParallel

      protected void configureParallel(org.testng.xml.XmlSuite suite, Map<String,String> options) throws TestSetFailedException
      Convert and apply the value of the [parallel] setting.

      NOTE: Since TestNG 7.4, the value of the parallel setting of the XmlSuite class has been specified via a ParallelMode enumeration. This method converts the [parallel] setting specified in the Surefire plugin configuration to its corresponding constant and applies this to the specified suite object.

      Overrides:
      configureParallel in class TestNGMapConfigurator
      Parameters:
      suite - TestNG XmlSuite object
      options - Surefire plugin configuration options
      Throws:
      TestSetFailedException - if unable to convert specified [parallel] setting