vmassol     01/10/22 07:09:51

  Modified:    src/framework/share/org/apache/cactus AbstractTestCase.java
  Log:
  replaced TestCase.name() by TestCase.getName() as the name() method, which was 
deprecated has now been removed from JUnit.
  
  Revision  Changes    Path
  1.14      +6 -6      
jakarta-cactus/src/framework/share/org/apache/cactus/AbstractTestCase.java
  
  Index: AbstractTestCase.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-cactus/src/framework/share/org/apache/cactus/AbstractTestCase.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- AbstractTestCase.java     2001/10/20 19:24:27     1.13
  +++ AbstractTestCase.java     2001/10/22 14:09:51     1.14
  @@ -72,7 +72,7 @@
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Vincent Massol</a>
    *
  - * @version $Id: AbstractTestCase.java,v 1.13 2001/10/20 19:24:27 vmassol Exp $
  + * @version $Id: AbstractTestCase.java,v 1.14 2001/10/22 14:09:51 vmassol Exp $
    */
   public abstract class AbstractTestCase extends TestCase
   {
  @@ -118,7 +118,7 @@
       public AbstractTestCase(String theName)
       {
           super(theName);
  -        this.currentTestMethod = name();
  +        this.currentTestMethod = getName();
       }
   
       /**
  @@ -128,12 +128,12 @@
       private String getBaseMethodName()
       {
           // Sanity check
  -        if (!name().startsWith(TEST_METHOD_PREFIX)) {
  -            throw new RuntimeException("bad name [" + name() +
  +        if (!getName().startsWith(TEST_METHOD_PREFIX)) {
  +            throw new RuntimeException("bad name [" + getName() +
                   "]. It should start with [" + TEST_METHOD_PREFIX + "].");
           }
   
  -        return name().substring(TEST_METHOD_PREFIX.length());
  +        return getName().substring(TEST_METHOD_PREFIX.length());
       }
   
       /**
  @@ -421,7 +421,7 @@
           // a file, ...
           request.addParameter(ServiceDefinition.CLASS_NAME_PARAM,
               this.getClass().getName(), WebRequest.GET_METHOD);
  -        request.addParameter(ServiceDefinition.METHOD_NAME_PARAM, name(),
  +        request.addParameter(ServiceDefinition.METHOD_NAME_PARAM, getName(),
               WebRequest.GET_METHOD);
           request.addParameter(ServiceDefinition.AUTOSESSION_NAME_PARAM,
               new Boolean(request.getAutomaticSession()).toString(),
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to