|
Jetif v1.8.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjetif.ext.TextListener
This class TextListener record the test results to a writer in text format.
Such as the sample below:
sample suite started at 04/01/2005 22:17:28 DETAILS -------------------------------------------------------------------------------- [Test Case1] - passed. [Test Case2] - failed. int testMethod1(int) - 0ms parameter: 1 expected: 1 actual: 1 int testMethod1(int) - 0ms parameter: 0 expected: -1 actual: 0 [Test Array] - passed. [testAssertion] - failed. void testAssertion() - 0ms error: Assertion failed at jetif.TestCase.fail(TestCase.java:90) comments: This is a sample case shows how assertion works. SUMMARY -------------------------------------------------------------------------------- Platform: Linux Started at: 04/01/2005 22:17:28 Ended at: 04/01/2005 22:17:28 Cases passed: 2 (50%) Cases failed: 2 (50%) Cases skipped: 0
| Field Summary |
| Fields inherited from interface jetif.TestListener |
DUMMY_LISTENER |
| Constructor Summary | |
TextListener(Writer writer)
Construct from a writer. |
|
| Method Summary | |
void |
beginSuite(String name,
long timestamp)
Recieve notification of the beginning of a suite |
void |
endCase(CaseResult result)
Receive notification of the end of a test case. |
void |
endSuite(long timestamp)
Receive notification of the end of a suite. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TextListener(Writer writer)
writer - the writer used to output the content.| Method Detail |
public void beginSuite(String name,
long timestamp)
TestListener
beginSuite in interface TestListenername - the name of the suite.timestamp - the time stamp of the beginningpublic void endCase(CaseResult result)
TestListener
endCase in interface TestListenerresult - result object of the test case.public void endSuite(long timestamp)
TestListener
endSuite in interface TestListenertimestamp - the time stamp of the endding
|
Jetif v1.8.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||