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/22 22:48:29 UTC
[maven-surefire] branch master updated: [SUREFIRE-1762]
skipAfterFailureCount>0 with testng 7.1.0 resulting in
java.lang.NoSuchMethodError:
org.testng.TestNG.addListener(Lorg/testng/ITestListener; )V
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 5534bd7 [SUREFIRE-1762] skipAfterFailureCount>0 with testng 7.1.0 resulting in java.lang.NoSuchMethodError: org.testng.TestNG.addListener(Lorg/testng/ITestListener;)V
5534bd7 is described below
commit 5534bd7590af1e3ff8b7706e788a1c2214e70141
Author: lne3 <lu...@asg.com>
AuthorDate: Sun Mar 22 23:48:23 2020 +0100
[SUREFIRE-1762] skipAfterFailureCount>0 with testng 7.1.0 resulting in java.lang.NoSuchMethodError: org.testng.TestNG.addListener(Lorg/testng/ITestListener;)V
---
.../src/main/java/org/apache/maven/surefire/testng/TestNGExecutor.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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 19ad157..906afa5 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,7 +309,8 @@ final class TestNGExecutor
ClassLoader cl = Thread.currentThread().getContextClassLoader();
testNG.addListener( instantiate( cl, "org.apache.maven.surefire.testng.utils.FailFastNotifier",
Object.class ) );
- testNG.addListener( new FailFastListener( createStoppable( reportManager, skipAfterFailureCount ) ) );
+ testNG.addListener( (Object)
+ new FailFastListener( createStoppable( reportManager, skipAfterFailureCount ) ) );
}
// FIXME: use classifier to decide if we need to pass along the source dir (only for JDK14)