org.easetech.easytest.runner
Class TestRunDurationListener

java.lang.Object
  extended by org.junit.runner.notification.RunListener
      extended by org.easetech.easytest.runner.EasyTestRunListener
          extended by org.easetech.easytest.runner.TestRunDurationListener

public class TestRunDurationListener
extends EasyTestRunListener

This listener measures the time of the test execution

Author:
gpcmol

Field Summary
 
Fields inherited from class org.easetech.easytest.runner.EasyTestRunListener
LOG
 
Constructor Summary
TestRunDurationListener()
           
 
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 org.easetech.easytest.runner.EasyTestRunListener
testAssumptionFailure, testFailure, testIgnored, testRunFinished, testRunStarted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestRunDurationListener

public TestRunDurationListener()
Method Detail

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.