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:20:37 UTC
[maven-surefire] branch master updated: Revert "[SUREFIRE-1762]
skipAfterFailureCount>0 with testng 7.1.0 resulting in
java.lang.NoSuchMethodError:
org.testng.TestNG.addListener(Lorg/testng/ITestListener; )V" (#277)
This is an automated email from the ASF dual-hosted git repository.
tibordigana pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git
The following commit(s) were added to refs/heads/master by this push:
new a7ac73e Revert "[SUREFIRE-1762] skipAfterFailureCount>0 with testng 7.1.0 resulting in java.lang.NoSuchMethodError: org.testng.TestNG.addListener(Lorg/testng/ITestListener;)V" (#277)
a7ac73e is described below
commit a7ac73e6b125fa48a4f0efcc96c83f9f1181e3b6
Author: Tibor Digana <ti...@apache.org>
AuthorDate: Mon Mar 23 15:20:29 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" (#277)
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)