org.apache.cactus.internal.util
Class JUnitVersionHelper

java.lang.Object
  extended by org.apache.cactus.internal.util.JUnitVersionHelper

public class JUnitVersionHelper
extends java.lang.Object

Work around for some changes to the public JUnit API between different JUnit releases.

Version:
$Id: JUnitVersionHelper.java 238991 2004-05-22 11:34:50Z vmassol $

Constructor Summary
JUnitVersionHelper()
           
 
Method Summary
static java.lang.String getTestCaseName(junit.framework.Test theTest)
          JUnit 3.7 introduces TestCase.getName() and subsequent versions of JUnit remove the old name() method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JUnitVersionHelper

public JUnitVersionHelper()
Method Detail

getTestCaseName

public static java.lang.String getTestCaseName(junit.framework.Test theTest)
JUnit 3.7 introduces TestCase.getName() and subsequent versions of JUnit remove the old name() method. This method provides access to the name of a TestCase via reflection that is supposed to work with version before and after JUnit 3.7.

Parameters:
theTest - the test case for which to retrieve the name
Returns:
the test case name


Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.