org.springunit.framework.junit4
Class NameListener

java.lang.Object
  extended by org.junit.runner.notification.RunListener
      extended by org.springunit.framework.junit4.NameListener

public class NameListener
extends org.junit.runner.notification.RunListener

Obtains the name of the currently running test from the TestRunner.
This implementation follows the example given by Gabriel Cooper at http://tech.groups.yahoo.com/group/junit/message/18728.

Author:
Ted Velkoff

Constructor Summary
NameListener()
           
 
Method Summary
 void testFinished(org.junit.runner.Description description)
           
 void testStarted(org.junit.runner.Description description)
           
 
Methods inherited from class org.junit.runner.notification.RunListener
testFailure, testIgnored, testRunFinished, testRunStarted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameListener

public NameListener()
Method Detail

testStarted

public void testStarted(org.junit.runner.Description description)
                 throws Exception
Overrides:
testStarted in class org.junit.runner.notification.RunListener
Throws:
Exception

testFinished

public void testFinished(org.junit.runner.Description description)
                  throws Exception
Overrides:
testFinished in class org.junit.runner.notification.RunListener
Throws:
Exception


Copyright © 2007 null. All Rights Reserved.