Upgrade to TestNG 6.9.12
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user