TKTestListener is a listener interface for listeners that want to be informed of the run times of tests, the memory usage of tests, the 'size' parameters of parameterized tests and the begin and end events of complete test runs. {@link org.apache.qpid.junit.extensions.TKTestResult} is an example of a test result class that listenersinterested in these events can be attached to. The {@link #timing(junit.framework.Test,long,Long)}, {@link #memoryUsed(junit.framework.Test,long,long,Long)}, {@link #parameterValue(junit.framework.Test,int,Long)} and {@link #endTest(junit.framework.Test,Long)} methodsall accept on optional thread id parameter.
CRC Card Responsibilities |
---|
Listen to test timings. |
Listen to test memory usages. |
Listen to parameterized test parameters. |
@author Rupert Smith