You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by ge...@locus.apache.org on 2000/12/04 02:19:09 UTC

cvs commit: jakarta-velocity/src/java/org/apache/velocity/test VelocityTestSuite.java

geirm       00/12/03 17:19:09

  Modified:    src/java/org/apache/velocity/test VelocityTestSuite.java
  Log:
  Added ContextSafetyTestCase
  
  Revision  Changes    Path
  1.9       +19 -3     jakarta-velocity/src/java/org/apache/velocity/test/VelocityTestSuite.java
  
  Index: VelocityTestSuite.java
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/src/java/org/apache/velocity/test/VelocityTestSuite.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- VelocityTestSuite.java	2000/11/16 01:51:25	1.8
  +++ VelocityTestSuite.java	2000/12/04 01:19:09	1.9
  @@ -71,7 +71,8 @@
    *
    * @author <a href="mailto:dlr@finemaltcoding.com">Daniel Rall</a>
    * @author <a href="mailto:jvanzyl@periapt.com">Jason van Zyl</a>
  - * @version $Id: VelocityTestSuite.java,v 1.8 2000/11/16 01:51:25 jvanzyl Exp $
  + * @author <a href="mailto:geirm@optonline.net">Geir Magnusson Jr.</a>
  + * @version $Id: VelocityTestSuite.java,v 1.9 2000/12/04 01:19:09 geirm Exp $
    */
   public class VelocityTestSuite extends TestSuite
   {
  @@ -107,12 +108,27 @@
               System.exit(1);
           }            
   
  -        // Add test cases here.
  +        /*
  +         *   Add test cases here.
  +         */
  +
  +        /*
  +         *  test 1 : template test cases
  +         */
  +
           List templateTestCases = getTemplateTestCases();
           for (Iterator iter = templateTestCases.iterator(); iter.hasNext(); )
           {
               addTest(new TemplateTestCase((String)iter.next()));
           }
  +
  +        /*
  +         *  test 2 : context safety test case
  +         */
  +
  +        System.out.println("Adding ContextSafetyTestCase.");
  +        addTest( new ContextSafetyTestCase() );
  +
       }
   
       /**
  @@ -137,7 +153,7 @@
               if (template == null)
                   break;
               
  -            System.out.println("Adding " + template);
  +            System.out.println("Adding TemplateTestCase : " + template);
               
               testCases.add(template);
           }