jvanzyl     00/11/01 10:40:23

  Modified:    test     test.properties
               test/misc velocity.properties
  Added:       test/templates subclass.vm
               test/templates/compare subclass.cmp
  Log:
  - added testcase for subclassing.
  
  Revision  Changes    Path
  1.5       +1 -0      jakarta-velocity/test/test.properties
  
  Index: test.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/test/test.properties,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- test.properties   2000/10/31 16:04:03     1.4
  +++ test.properties   2000/11/01 18:40:16     1.5
  @@ -21,3 +21,4 @@
   test.template.19 = test
   test.template.20 = diabolical
   test.template.21 = pedantic
  +test.template.21 = subclass
  
  
  
  1.2       +1 -1      jakarta-velocity/test/misc/velocity.properties
  
  Index: velocity.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/test/misc/velocity.properties,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- velocity.properties       2000/10/25 00:20:46     1.1
  +++ velocity.properties       2000/11/01 18:40:19     1.2
  @@ -21,7 +21,7 @@
   
   # Options for the FastWriter
   template.encoding = UTF8
  -template.asciihack = true
  +template.asciihack = false
   
   
   # This is for #foreach loops. You can
  
  
  
  1.1                  jakarta-velocity/test/templates/subclass.vm
  
  Index: subclass.vm
  ===================================================================
  #**
  
  @test subclass.vm
  
  This template is used for Velocity regression testing.
  If you alter this template make sure you change the
  corresponding comparison file so that the regression 
  test doesn't fail incorrectly.
  
  *#
  
  ## This is our base class.
  #set $person = $provider.Person
  
  ## This is a subclass of Person
  #set $child = $provider.Child
  
  #*
  
  showPerson takes a person object, so check to
  see that subclasses of Person work too!
  
  *#
  
  $provider.showPerson($person)
  $provider.showPerson($child)
  
  
  
  1.1                  jakarta-velocity/test/templates/compare/subclass.cmp
  
  Index: subclass.cmp
  ===================================================================
  
  
  
  
  
  
  Person
  Child
  
  
  

Reply via email to