Created
February 15, 2020 01:28
-
-
Save diegolovison/cc0ea44dd6588f5330b89a34a6f99df2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.jboss.arquillian.junit.container; | |
import java.util.Collections; | |
import java.util.Iterator; | |
import java.util.List; | |
import org.jboss.arquillian.container.test.spi.TestRunner; | |
import org.jboss.arquillian.junit.State; | |
import org.jboss.arquillian.test.spi.TestResult; | |
import org.junit.Test; | |
import org.junit.Test.None; | |
import org.junit.internal.AssumptionViolatedException; | |
import org.junit.runner.Description; | |
import org.junit.runner.JUnitCore; | |
import org.junit.runner.Request; | |
import org.junit.runner.Result; | |
import org.junit.runner.notification.Failure; | |
import org.junit.runner.notification.RunListener; | |
public class JUnitTestRunner implements TestRunner { | |
public JUnitTestRunner() { | |
} | |
protected List<RunListener> getRunListeners() { | |
return Collections.emptyList(); | |
} | |
public TestResult execute(Class<?> testClass, String methodName) { | |
JUnitTestRunner.ExpectedExceptionHolder exceptionHolder = new JUnitTestRunner.ExpectedExceptionHolder(); | |
TestResult testResult; | |
try { | |
JUnitCore runner = new JUnitCore(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment