Upgrade to TestNG 6.9.12

This commit is contained in:
Sam Brannen
2016-09-09 18:02:47 +02:00
parent e882f739bf
commit 2f2e6dffb4
4 changed files with 21 additions and 5 deletions

View File

@@ -36,6 +36,7 @@ import org.springframework.test.context.support.DirtiesContextTestExecutionListe
import org.springframework.test.context.testng.AbstractTestNGSpringContextTests;
import org.springframework.test.context.testng.TrackingTestNGTestListener;
import org.testng.ITestNGListener;
import org.testng.TestNG;
import static org.junit.Assert.*;
@@ -142,7 +143,7 @@ public class ClassLevelDirtiesContextTestNGTests {
final TrackingTestNGTestListener listener = new TrackingTestNGTestListener();
final TestNG testNG = new TestNG();
testNG.addListener(listener);
testNG.addListener((ITestNGListener) listener);
testNG.setTestClasses(new Class<?>[] { testClass });
testNG.setVerbose(0);
testNG.run();

View File

@@ -32,6 +32,7 @@ import org.springframework.test.context.transaction.AfterTransaction;
import org.springframework.test.context.transaction.BeforeTransaction;
import org.springframework.util.ClassUtils;
import org.testng.ITestNGListener;
import org.testng.TestNG;
import static org.junit.Assert.*;
@@ -90,7 +91,7 @@ public class FailingBeforeAndAfterMethodsTestNGTests {
public void runTestAndAssertCounters() throws Exception {
final TrackingTestNGTestListener listener = new TrackingTestNGTestListener();
final TestNG testNG = new TestNG();
testNG.addListener(listener);
testNG.addListener((ITestNGListener) listener);
testNG.setTestClasses(new Class<?>[] { this.clazz });
testNG.setVerbose(0);
testNG.run();