diff --git a/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/conf/TestNG740Configurator.java b/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/conf/TestNG740Configurator.java index c98fb022a5..969f87a845 100644 --- a/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/conf/TestNG740Configurator.java +++ b/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/conf/TestNG740Configurator.java @@ -39,6 +39,13 @@ public class TestNG740Configurator extends TestNG60Configurator { + /** + * Convert and apply the value of the [threadcount] option. + * + * @param suite TestNG {@link XmlSuite} object + * @param options Surefire plugin configuration options + * @throws TestSetFailedException if unable to convert specified [threadcount] setting + */ @Override protected void configureThreadCount( XmlSuite suite, Map options ) throws TestSetFailedException @@ -59,6 +66,17 @@ protected void configureThreadCount( XmlSuite suite, Map options } } + /** + * Convert and apply the value of the [parallel] setting. + *

+ * NOTE: Since TestNG 7.4, the value of the {@code parallel} setting of the {@link 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. + * + * @param suite TestNG {@link XmlSuite} object + * @param options Surefire plugin configuration options + * @throws TestSetFailedException if unable to convert specified [parallel] setting + */ @Override protected void configureParallel( XmlSuite suite, Map options ) throws TestSetFailedException