Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
Remove redundant cast
Browse files Browse the repository at this point in the history
  • Loading branch information
sormuras committed Jan 25, 2019
1 parent 3d8406a commit 029ba49
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/org/testng/junit5/TestNGine.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit 029ba49

Please sign in to comment.