public class TimingDecorator extends MxRunListenerDecorator
| Modifier and Type | Field and Description |
|---|---|
private long |
classStartTime |
private long |
startTime |
| Constructor and Description |
|---|
TimingDecorator(MxRunListener l) |
| Modifier and Type | Method and Description |
|---|---|
void |
testClassFinished(Class<?> clazz)
Called when all tests of a test class have finished.
|
void |
testClassStarted(Class<?> clazz)
Called when a test class is about to be started.
|
void |
testFinished(org.junit.runner.Description description)
Called when an atomic test has finished, whether the test succeeds, fails or is ignored.
|
void |
testStarted(org.junit.runner.Description description)
Called when an atomic test is about to be started.
|
private static String |
valueToString(long value) |
getWriter, testAssumptionFailure, testClassFinishedDelimiter, testClassStartedDelimiter, testFailed, testFinishedDelimiter, testIgnored, testRunFinished, testRunStarted, testStartedDelimiter, testSucceededprivate long startTime
private long classStartTime
public TimingDecorator(MxRunListener l)
public void testClassStarted(Class<?> clazz)
MxRunListenertestClassStarted in interface MxRunListenertestClassStarted in class MxRunListenerDecoratorclazz - the test classpublic void testClassFinished(Class<?> clazz)
MxRunListenertestClassFinished in interface MxRunListenertestClassFinished in class MxRunListenerDecoratorclazz - the test classpublic void testStarted(org.junit.runner.Description description)
MxRunListenertestStarted in interface MxRunListenertestStarted in class MxRunListenerDecoratordescription - the description of the test that is about to be run (generally a class and
method name)public void testFinished(org.junit.runner.Description description)
MxRunListenertestFinished in interface MxRunListenertestFinished in class MxRunListenerDecoratordescription - the description of the test that just ranprivate static String valueToString(long value)