|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InstrumentedTest
An InstrumentedTest is one which can supply some additional instrumentation on top of the pass/fail/error behaviour of normal junit tests. Tests implementing this interface must additionally supply information about how long they took to run and how much memory they used.
Responsibilities |
---|
Report test run time. |
Report test memory usage. |
Method Summary | |
---|---|
long |
getTestEndMemory()
Reports the memory usage at the end of the test. |
long |
getTestStartMemory()
Reports the memory usage at the start of the test. |
long |
getTestTime()
Reports how long the test took to run. |
void |
reset()
Resets the instrumentation values to zero, and nulls any references to held measurements so that the memory can be reclaimed. |
Methods inherited from interface junit.framework.Test |
---|
countTestCases, run |
Method Detail |
---|
long getTestTime()
long getTestStartMemory()
long getTestEndMemory()
void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |