geirm       01/01/21 12:54:01

  Modified:    src/java/org/apache/velocity/test/misc Test.java
  Log:
  Added FieldMethodizer to the context for testing.  Maybe to the testbed?  Lets see 
what
  people think of it...
  
  Revision  Changes    Path
  1.12      +5 -2      
jakarta-velocity/src/java/org/apache/velocity/test/misc/Test.java
  
  Index: Test.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-velocity/src/java/org/apache/velocity/test/misc/Test.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- Test.java 2001/01/18 04:38:37     1.11
  +++ Test.java 2001/01/21 20:54:00     1.12
  @@ -70,6 +70,8 @@
   import org.apache.velocity.VelocityContext;
   import org.apache.velocity.Template;
   
  +import org.apache.velocity.util.FieldMethodizer;
  +
   import org.apache.velocity.runtime.Runtime;
   import org.apache.velocity.test.provider.TestProvider;
   
  @@ -79,7 +81,7 @@
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Jason van Zyl</a>
    * @author <a href="mailto:[EMAIL PROTECTED]">Geir Magnusson Jr.</a>
  - * @version $Id: Test.java,v 1.11 2001/01/18 04:38:37 geirm Exp $
  + * @version $Id: Test.java,v 1.12 2001/01/21 20:54:00 geirm Exp $
    */
   public class Test
   {
  @@ -178,7 +180,8 @@
               context.put("vector", v);
               context.put("mystring", new String());
               context.put("hashmap", new HashMap() );
  -
  +            context.put("runtime", new FieldMethodizer( 
"org.apache.velocity.runtime.Runtime" ));
  +            context.put("provider", new FieldMethodizer( provider ));
    
               /*
                *  make a writer, and merge the template 'against' the context
  
  
  

Reply via email to