0cc81415e6
Resolves: rhbz#1469005
41 lines
1.9 KiB
Diff
41 lines
1.9 KiB
Diff
From f87ae3376dce09b6691081d254c1698f5e04dfa5 Mon Sep 17 00:00:00 2001
|
|
From: Mikolaj Izdebski <mizdebsk@redhat.com>
|
|
Date: Mon, 10 Jul 2017 10:37:50 +0200
|
|
Subject: [PATCH 3/3] Port to TestNG 6.11
|
|
|
|
---
|
|
surefire-providers/surefire-testng/pom.xml | 3 +--
|
|
.../apache/maven/surefire/testng/conf/AbstractDirectConfigurator.java | 2 +-
|
|
2 files changed, 2 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/surefire-providers/surefire-testng/pom.xml b/surefire-providers/surefire-testng/pom.xml
|
|
index 23498fd..85e4b4e 100644
|
|
--- a/surefire-providers/surefire-testng/pom.xml
|
|
+++ b/surefire-providers/surefire-testng/pom.xml
|
|
@@ -51,8 +51,7 @@
|
|
<dependency>
|
|
<groupId>org.testng</groupId>
|
|
<artifactId>testng</artifactId>
|
|
- <version>5.10</version>
|
|
- <classifier>jdk15</classifier>
|
|
+ <version>6.11</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
diff --git a/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/conf/AbstractDirectConfigurator.java b/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/conf/AbstractDirectConfigurator.java
|
|
index e89d061..ec069bb 100644
|
|
--- a/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/conf/AbstractDirectConfigurator.java
|
|
+++ b/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/conf/AbstractDirectConfigurator.java
|
|
@@ -62,7 +62,7 @@ public abstract class AbstractDirectConfigurator
|
|
testng.setUseDefaultListeners( false );
|
|
configureInstance( testng, options );
|
|
// TODO: we should have the Profile so that we can decide if this is needed or not
|
|
- testng.setListenerClasses( loadListenerClasses( listeners ) );
|
|
+ testng.setListenerClasses( ( List ) loadListenerClasses( listeners ) );
|
|
}
|
|
|
|
public void configure( XmlSuite suite, Map<String, String> options )
|
|
--
|
|
2.9.3
|
|
|