This is an automated email from the ASF dual-hosted git repository.

tibordigana pushed a commit to branch revert-276-SUREFIRE-1762
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git

commit 0b035fec6010ac4877cd6adeef3cc52097155d1e
Author: Tibor Digana <[email protected]>
AuthorDate: Mon Mar 23 15:17:34 2020 +0100

    Revert "[SUREFIRE-1762] skipAfterFailureCount>0 with testng 7.1.0 resulting 
in java.lang.NoSuchMethodError: 
org.testng.TestNG.addListener(Lorg/testng/ITestListener;)V"
    
    This reverts commit 5534bd7590af1e3ff8b7706e788a1c2214e70141.
---
 .../src/main/java/org/apache/maven/surefire/testng/TestNGExecutor.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGExecutor.java
 
b/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGExecutor.java
index 906afa5..19ad157 100644
--- 
a/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGExecutor.java
+++ 
b/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGExecutor.java
@@ -309,8 +309,7 @@ final class TestNGExecutor
             ClassLoader cl = Thread.currentThread().getContextClassLoader();
             testNG.addListener( instantiate( cl, 
"org.apache.maven.surefire.testng.utils.FailFastNotifier",
                                              Object.class ) );
-            testNG.addListener( (Object)
-                                new FailFastListener( createStoppable( 
reportManager, skipAfterFailureCount ) ) );
+            testNG.addListener( new FailFastListener( createStoppable( 
reportManager, skipAfterFailureCount ) ) );
         }
 
         // FIXME: use classifier to decide if we need to pass along the source 
dir (only for JDK14)

Reply via email to