|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.testng.junit.JUnitTestRunner
public class JUnitTestRunner
A JUnit TestRunner that records/triggers all information/events necessary to TestNG.
| Field Summary | |
|---|---|
static String |
SUITE_METHODNAME
|
| Constructor Summary | |
|---|---|
JUnitTestRunner()
|
|
JUnitTestRunner(org.testng.internal.ITestResultNotifier tr)
|
|
| Method Summary | |
|---|---|
void |
addError(junit.framework.Test test,
Throwable t)
|
void |
addFailure(junit.framework.Test test,
junit.framework.AssertionFailedError t)
|
protected junit.framework.TestResult |
createTestResult()
Creates the TestResult to be used for the test run. |
protected junit.framework.TestResult |
doRun(junit.framework.Test suite)
|
void |
endTest(junit.framework.Test test)
|
protected junit.framework.Test |
getTest(Class testClass)
Returns the Test corresponding to the given suite. |
List<ITestNGMethod> |
getTestMethods()
Needed from TestRunner in order to figure out what JUnit test methods were run. |
void |
run(Class testClass)
A start implementation that ignores the TestResult |
protected void |
runFailed(Class clazz,
String message)
|
void |
setTestResultNotifier(org.testng.internal.ITestResultNotifier notifier)
|
junit.framework.TestResult |
start(Class testCase)
Starts a test run. |
void |
startTest(junit.framework.Test test)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String SUITE_METHODNAME
| Constructor Detail |
|---|
public JUnitTestRunner()
public JUnitTestRunner(org.testng.internal.ITestResultNotifier tr)
| Method Detail |
|---|
public List<ITestNGMethod> getTestMethods()
getTestMethods in interface IJUnitTestRunnerpublic void setTestResultNotifier(org.testng.internal.ITestResultNotifier notifier)
setTestResultNotifier in interface IJUnitTestRunnerpublic void startTest(junit.framework.Test test)
startTest in interface junit.framework.TestListenerTestListener.startTest(junit.framework.Test)
public void addError(junit.framework.Test test,
Throwable t)
addError in interface junit.framework.TestListenerTestListener.addError(junit.framework.Test, java.lang.Throwable)
public void addFailure(junit.framework.Test test,
junit.framework.AssertionFailedError t)
addFailure in interface junit.framework.TestListenerTestListener.addFailure(junit.framework.Test, junit.framework.AssertionFailedError)public void endTest(junit.framework.Test test)
endTest in interface junit.framework.TestListenerTestListener.endTest(junit.framework.Test)protected junit.framework.Test getTest(Class testClass)
public void run(Class testClass)
start implementation that ignores the TestResult
run in interface IJUnitTestRunnertestClass - the JUnit test classpublic junit.framework.TestResult start(Class testCase)
protected void runFailed(Class clazz,
String message)
protected junit.framework.TestResult createTestResult()
protected junit.framework.TestResult doRun(junit.framework.Test suite)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||