You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by jo...@apache.org on 2001/03/12 02:03:23 UTC

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

jon         01/03/11 17:03:23

  Modified:    src/java/org/apache/velocity/test TemplateTestCase.java
  Log:
  in the process of merging misc/Test.java into this file as well
  as creating new test cases for the rest of misc/Test.java
  
  will be removing misc/Test.java
  
  Revision  Changes    Path
  1.26      +7 -1      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.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- TemplateTestCase.java	2001/03/12 00:39:47	1.25
  +++ TemplateTestCase.java	2001/03/12 01:03:23	1.26
  @@ -72,6 +72,8 @@
   import org.apache.velocity.test.provider.TestProvider;
   import org.apache.velocity.util.StringUtils;
   
  +import org.apache.velocity.app.FieldMethodizer;
  +
   import junit.framework.TestCase;
   
   /**
  @@ -98,7 +100,7 @@
    * @author <a href="mailto:jvanzyl@periapt.com">Jason van Zyl</a>
    * @author <a href="mailto:geirm@optonline.net">Geir Magnusson Jr.</a>
    * @author <a href="mailto:jon@latchkey.com">Jon S. Stevens</a>
  - * @version $Id: TemplateTestCase.java,v 1.25 2001/03/12 00:39:47 jon Exp $
  + * @version $Id: TemplateTestCase.java,v 1.26 2001/03/12 01:03:23 jon Exp $
    */
   public class TemplateTestCase extends TestCase implements TemplateTestBase
   {
  @@ -174,6 +176,10 @@
           context1.put("searchResults", provider.getRelSearches());
           context2.put("stringarray", provider.getArray());
           context.put("vector", vec );
  +        context.put("mystring", new String());
  +        context.put("runtime", new FieldMethodizer( "org.apache.velocity.runtime.Runtime" ));
  +        context.put("fmprov", new FieldMethodizer( provider ));
  +        context.put("Floog", "floogie woogie");
   
           /*
            *  we want to make sure we test all types of iterative objects