org.apache.cactus.util
class JUnitVersionHelper

java.lang.Object
  |
  +--org.apache.cactus.util.JUnitVersionHelper
Known Advisors:
LogAspect

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,v 1.2 2002/04/14 10:46:25 vmassol Exp $
Author:
Stefan Bodewig , Vincent Massol

Constructor Summary
JUnitVersionHelper()
          Work around for some changes to the public JUnit API between different JUnit releases.
 
Method Summary
static String getTestCaseName(TestCase theTestCase)
          JUnit 3.7 introduces TestCase.getName() and subsequent versions of JUnit remove the old name() method.
          Affected by: LogAspect
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JUnitVersionHelper

public JUnitVersionHelper()
Work around for some changes to the public JUnit API between different JUnit releases.
Method Detail

getTestCaseName

public static String getTestCaseName(TestCase theTestCase)
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:
theTestCase - the test case for which to retrieve the name
Returns:
the test case name
Affected by:
around() in LogAspect.


Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.