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 Detail

      • TestNG740Configurator

        public TestNG740Configurator()
    • Method Detail

      • configureParallel

        protected void configureParallel​(org.testng.xml.XmlSuite suite,
                                         java.util.Map<java.lang.String,​java.lang.String> options)
                                  throws org.apache.maven.surefire.api.testset.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:
        org.apache.maven.surefire.api.testset.TestSetFailedException - if unable to convert specified [parallel] setting