diff --git a/src/main/java/org/testng/junit5/TestNGine.java b/src/main/java/org/testng/junit5/TestNGine.java index 35c7763..f4c08ae 100644 --- a/src/main/java/org/testng/junit5/TestNGine.java +++ b/src/main/java/org/testng/junit5/TestNGine.java @@ -13,7 +13,6 @@ import org.junit.platform.engine.TestExecutionResult; import org.junit.platform.engine.UniqueId; import org.junit.platform.engine.support.descriptor.EngineDescriptor; -import org.testng.ITestNGListener; import org.testng.TestNG; import org.testng.annotations.Test; @@ -77,7 +76,7 @@ public void execute(ExecutionRequest request) { Class[] testClasses = {((ClassDescriptor) classDescriptor).getTestClass()}; TestNG testNG = new TestNG(false); - testNG.addListener((ITestNGListener) new TestListener(engineListener, classId)); + testNG.addListener(new TestListener(engineListener, classId)); testNG.setTestClasses(testClasses); testNG.run();