|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.textui.ResultPrinter
junitx.ddtunit.DDTRunMonitor
public class DDTRunMonitor
This class implements a simple monitor for testruns.
It is implemented
as singleton so we can use it internally to protocol test progress and
results.
Lateron there will be an implementaion of a TestRunner that
conformes to the interface DDTTestListener
| Method Summary | |
|---|---|
void |
addError(junit.framework.Test test,
Throwable t)
Just let the standard runner do this work - do nothing |
void |
addFailure(junit.framework.Test test,
junit.framework.AssertionFailedError t)
Just let the standard runner do this work - do nothing |
void |
addMethodTestError(junit.framework.Test test,
String testName,
Throwable throwable)
Add error of executed test |
void |
addMethodTestFailure(junit.framework.Test test,
String testName,
junit.framework.AssertionFailedError assertFailed)
Add failure of executed test |
void |
endMethodTest(IDDTTestCase test,
String testName)
Notify about end of method test execution |
void |
endTest(junit.framework.Test test)
Just let the standard runner do this work - do nothing |
static DDTRunMonitor |
getInstance()
Get singleton instance of this class |
void |
startMethodTest(IDDTTestCase test,
String testName)
Notify about start of method test execution |
void |
startTest(junit.framework.Test test)
Just let the standard runner do this work - do nothing |
| Methods inherited from class junit.textui.ResultPrinter |
|---|
elapsedTimeAsString, getWriter, printDefect, printDefectHeader, printDefects, printDefectTrace, printErrors, printFailures, printFooter, printHeader |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static DDTRunMonitor getInstance()
public void addMethodTestError(junit.framework.Test test,
String testName,
Throwable throwable)
addMethodTestError in interface DDTTestListenertest - processedtestName - actually processedthrowable - caught during executionDDTTestListener.addMethodTestError(junit.framework.Test,
java.lang.String, java.lang.Throwable)
public void addMethodTestFailure(junit.framework.Test test,
String testName,
junit.framework.AssertionFailedError assertFailed)
addMethodTestFailure in interface DDTTestListenertest - processedtestName - actually processedassertFailed - caught during executionDDTTestListener.addMethodTestFailure(junit.framework.Test,
java.lang.String, junit.framework.AssertionFailedError)
public void endMethodTest(IDDTTestCase test,
String testName)
endMethodTest in interface DDTTestListenertest - processedtestName - actually processedjunitx.ddtunit.DDTTestListener#endMethodTest(junitx.ddtunit.DDTTestCase,
java.lang.String)
public void startMethodTest(IDDTTestCase test,
String testName)
startMethodTest in interface DDTTestListenertest - processedtestName - actually processedjunitx.ddtunit.DDTTestListener#startMethodTest(junitx.ddtunit.DDTTestCase,
java.lang.String)
public void addError(junit.framework.Test test,
Throwable t)
addError in interface junit.framework.TestListeneraddError in class junit.textui.ResultPrinterTestListener.addError(junit.framework.Test,
java.lang.Throwable)
public void addFailure(junit.framework.Test test,
junit.framework.AssertionFailedError t)
addFailure in interface junit.framework.TestListeneraddFailure in class junit.textui.ResultPrinterTestListener.addFailure(junit.framework.Test,
junit.framework.AssertionFailedError)public void endTest(junit.framework.Test test)
endTest in interface junit.framework.TestListenerendTest in class junit.textui.ResultPrinterTestListener.endTest(junit.framework.Test)public void startTest(junit.framework.Test test)
startTest in interface junit.framework.TestListenerstartTest in class junit.textui.ResultPrinterTestListener.startTest(junit.framework.Test)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||