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, testSucceeded
private long startTime
private long classStartTime
public TimingDecorator(MxRunListener l)
public void testClassStarted(Class<?> clazz)
MxRunListener
testClassStarted
in interface MxRunListener
testClassStarted
in class MxRunListenerDecorator
clazz
- the test classpublic void testClassFinished(Class<?> clazz)
MxRunListener
testClassFinished
in interface MxRunListener
testClassFinished
in class MxRunListenerDecorator
clazz
- the test classpublic void testStarted(org.junit.runner.Description description)
MxRunListener
testStarted
in interface MxRunListener
testStarted
in class MxRunListenerDecorator
description
- 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)
MxRunListener
testFinished
in interface MxRunListener
testFinished
in class MxRunListenerDecorator
description
- the description of the test that just ranprivate static String valueToString(long value)