org.easetech.easytest.runner
Class TestRunDurationListener
java.lang.Object
org.junit.runner.notification.RunListener
org.easetech.easytest.runner.EasyTestRunListener
org.easetech.easytest.runner.TestRunDurationListener
public class TestRunDurationListener
- extends EasyTestRunListener
This listener measures the time of the test execution
- Author:
- gpcmol
|
Method Summary |
long |
getEndInNano()
|
long |
getStartInNano()
|
void |
testFinished(org.junit.runner.Description description)
Called when an atomic test has finished, whether the test succeeds or fails. |
void |
testStarted(org.junit.runner.Description description)
Called when an atomic test is about to be started. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestRunDurationListener
public TestRunDurationListener()
testFinished
public void testFinished(org.junit.runner.Description description)
throws Exception
- Description copied from class:
EasyTestRunListener
- Called when an atomic test has finished, whether the test succeeds or fails.
- Overrides:
testFinished in class EasyTestRunListener
- Parameters:
description - the description of the test that just ran
- Throws:
Exception
testStarted
public void testStarted(org.junit.runner.Description description)
throws Exception
- Description copied from class:
EasyTestRunListener
- Called when an atomic test is about to be started.
- Overrides:
testStarted in class EasyTestRunListener
- Parameters:
description - the description of the test that is about to be run
(generally a class and method name)
- Throws:
Exception
getStartInNano
public long getStartInNano()
getEndInNano
public long getEndInNano()
Copyright © 2013. All Rights Reserved.