You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ti...@apache.org on 2020/03/23 14:17:41 UTC

[maven-surefire] branch revert-276-SUREFIRE-1762 created (now 0b035fe)

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

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


      at 0b035fe  Revert "[SUREFIRE-1762] skipAfterFailureCount>0 with testng 7.1.0 resulting in java.lang.NoSuchMethodError: org.testng.TestNG.addListener(Lorg/testng/ITestListener;)V"

This branch includes the following new commits:

     new 0b035fe  Revert "[SUREFIRE-1762] skipAfterFailureCount>0 with testng 7.1.0 resulting in java.lang.NoSuchMethodError: org.testng.TestNG.addListener(Lorg/testng/ITestListener;)V"

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[maven-surefire] 01/01: Revert "[SUREFIRE-1762] skipAfterFailureCount>0 with testng 7.1.0 resulting in java.lang.NoSuchMethodError: org.testng.TestNG.addListener(Lorg/testng/ITestListener; )V"

Posted by ti...@apache.org.
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 <ti...@gmail.com>
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)