|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjmunit.framework.cldc11.TestResult
public class TestResult
The TestResult class collects test results and relays them to TestListeners.
Constructor Summary | |
---|---|
TestResult()
The constructor. |
Method Summary | |
---|---|
void |
addError(java.lang.Class testClass,
java.lang.String test,
java.lang.Throwable t)
An error or failure occurred. |
void |
addListener(TestListener listener)
Registers a TestListener |
void |
clear()
Clears the results of all the tests. |
void |
endTest(java.lang.Class testClass,
java.lang.String test)
A test ended. |
void |
removeListeners()
Unregisters all TestListeners |
void |
startTest(java.lang.Class testClass,
java.lang.String test)
A test started. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestResult()
Method Detail |
---|
public void addListener(TestListener listener)
listener
- The listener.public void removeListeners()
public void addError(java.lang.Class testClass, java.lang.String test, java.lang.Throwable t)
testClass
- the Class associated with the test.test
- The test.t
- The error.public void endTest(java.lang.Class testClass, java.lang.String test)
testClass
- the Class associated with the test.test
- The test.public void startTest(java.lang.Class testClass, java.lang.String test)
testClass
- the Class associated with the test.test
- The test.public void clear()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |