public class JUnitTestRunner extends java.lang.Object implements TestRunner
Modifier and Type | Class and Description |
---|---|
private class |
JUnitTestRunner.ExpectedExceptionHolder |
Constructor and Description |
---|
JUnitTestRunner() |
Modifier and Type | Method and Description |
---|---|
TestResult |
execute(java.lang.Class<?> testClass,
java.lang.String methodName)
Run a single test method in a test class.
|
protected java.util.List<org.junit.runner.notification.RunListener> |
getRunListeners()
Overwrite to provide additional run listeners.
|
protected java.util.List<org.junit.runner.notification.RunListener> getRunListeners()
public TestResult execute(java.lang.Class<?> testClass, java.lang.String methodName)
TestRunner
execute
in interface TestRunner
testClass
- The test case class to executemethodName
- The method to execute