dlr         00/10/25 16:25:55

  Modified:    src/java/org/apache/velocity/test BaseTestCase.java
                        RuntimeTestCase.java TemplateTestCase.java
  Log:
  Now fully separated into runtime and generic test cases.
  
  Revision  Changes    Path
  1.4       +19 -1     
jakarta-velocity/src/java/org/apache/velocity/test/BaseTestCase.java
  
  Index: BaseTestCase.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-velocity/src/java/org/apache/velocity/test/BaseTestCase.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- BaseTestCase.java 2000/10/25 23:16:51     1.3
  +++ BaseTestCase.java 2000/10/25 23:25:54     1.4
  @@ -63,8 +63,26 @@
    * case implementations are used to automatate testing via JUnit.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Daniel Rall</a>
  - * @version $Id: BaseTestCase.java,v 1.3 2000/10/25 23:16:51 dlr Exp $
  + * @version $Id: BaseTestCase.java,v 1.4 2000/10/25 23:25:54 dlr Exp $
    */
   public abstract class BaseTestCase extends TestCase
   {
  +    /**
  +     * Creates a new instance.
  +     */
  +    public BaseTestCase (String name)
  +    {
  +        super(name);
  +    }
  +
  +    /**
  +     * Get the containing <code>TestSuite</code>.  This is always 
  +     * <code>VelocityTestSuite</code>.
  +     *
  +     * @return The <code>TestSuite</code> to run.
  +     */
  +    public static junit.framework.Test suite ()
  +    {
  +        return new VelocityTestSuite();
  +    }
   }
  
  
  
  1.2       +1 -12     
jakarta-velocity/src/java/org/apache/velocity/test/RuntimeTestCase.java
  
  Index: RuntimeTestCase.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-velocity/src/java/org/apache/velocity/test/RuntimeTestCase.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- RuntimeTestCase.java      2000/10/25 23:16:18     1.1
  +++ RuntimeTestCase.java      2000/10/25 23:25:54     1.2
  @@ -62,7 +62,7 @@
    * Base functionality to be extended by all runtime test cases.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Daniel Rall</a>
  - * @version $Id: RuntimeTestCase.java,v 1.1 2000/10/25 23:16:18 dlr Exp $
  + * @version $Id: RuntimeTestCase.java,v 1.2 2000/10/25 23:25:54 dlr Exp $
    */
   public abstract class RuntimeTestCase extends BaseTestCase
   {
  @@ -86,16 +86,5 @@
           {
               fail(e.getMessage());
           }
  -    }
  -
  -    /**
  -     * Get the containing <code>TestSuite</code>.  This is always 
  -     * <code>VelocityTestSuite</code>.
  -     *
  -     * @return The <code>TestSuite</code> to run.
  -     */
  -    public static junit.framework.Test suite ()
  -    {
  -        return new VelocityTestSuite();
       }
   }
  
  
  
  1.11      +1 -11     
jakarta-velocity/src/java/org/apache/velocity/test/TemplateTestCase.java
  
  Index: TemplateTestCase.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-velocity/src/java/org/apache/velocity/test/TemplateTestCase.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- TemplateTestCase.java     2000/10/25 23:17:14     1.10
  +++ TemplateTestCase.java     2000/10/25 23:25:54     1.11
  @@ -73,7 +73,7 @@
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Daniel Rall</a>
    * @author <a href="mailto:[EMAIL PROTECTED]">Jason van Zyl</a>
  - * @version $Id: TemplateTestCase.java,v 1.10 2000/10/25 23:17:14 dlr Exp $
  + * @version $Id: TemplateTestCase.java,v 1.11 2000/10/25 23:25:54 dlr Exp $
    */
   public class TemplateTestCase extends RuntimeTestCase
   {
  @@ -203,16 +203,6 @@
           name.append(Character.toTitleCase(s.charAt(0)));
           name.append(s.substring(1, s.length()).toLowerCase());
           return name.toString();
  -    }
  -
  -    /**
  -     * Get the containing <code>TestSuite</code>.
  -     *
  -     * @return The <code>TestSuite</code> to run.
  -     */
  -    public static junit.framework.Test suite ()
  -    {
  -        return BaseTestCase.suite();
       }
   
       /**
  
  
  

Reply via email to