|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.testng.junit.JUnit4TestRunner
public class JUnit4TestRunner
A JUnit TestRunner that records/triggers all information/events necessary to TestNG.
Constructor Summary | |
---|---|
JUnit4TestRunner()
|
|
JUnit4TestRunner(org.testng.internal.ITestResultNotifier tr)
|
Method Summary | |
---|---|
List<ITestNGMethod> |
getTestMethods()
Needed from TestRunner in order to figure out what JUnit test methods were run. |
void |
run(Class testClass,
String... methods)
A start implementation that ignores the
TestResult |
void |
setInvokedMethodListeners(List<IInvokedMethodListener> listeners)
|
void |
setTestResultNotifier(org.testng.internal.ITestResultNotifier notifier)
|
org.junit.runner.Result |
start(Class testCase,
String... methods)
Starts a test run. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JUnit4TestRunner()
public JUnit4TestRunner(org.testng.internal.ITestResultNotifier tr)
Method Detail |
---|
public List<ITestNGMethod> getTestMethods()
getTestMethods
in interface IJUnitTestRunner
public void setTestResultNotifier(org.testng.internal.ITestResultNotifier notifier)
setTestResultNotifier
in interface IJUnitTestRunner
public void setInvokedMethodListeners(List<IInvokedMethodListener> listeners)
setInvokedMethodListeners
in interface IJUnitTestRunner
public void run(Class testClass, String... methods)
start
implementation that ignores the
TestResult
run
in interface IJUnitTestRunner
testClass
- the JUnit test classpublic org.junit.runner.Result start(Class testCase, String... methods)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |