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

cvs commit: jakarta-velocity/test/templates/compare map.cmp

jvanzyl     00/12/15 09:19:46

  Modified:    test     test.properties
  Added:       test/templates map.vm
               test/templates/compare map.cmp
  Log:
  - adding a little test for maps, making sure the ClassCastException
    is caught and the reference error is logged.
  
  Revision  Changes    Path
  1.17      +1 -0      jakarta-velocity/test/test.properties
  
  Index: test.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/test/test.properties,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- test.properties	2000/12/10 05:00:15	1.16
  +++ test.properties	2000/12/15 17:19:36	1.17
  @@ -29,3 +29,4 @@
   test.template.27 = reference
   test.template.28 = interpolation
   test.template.29 = vm_test1
  +test.template.30 = map
  
  
  
  1.1                  jakarta-velocity/test/templates/map.vm
  
  Index: map.vm
  ===================================================================
  #*
  
  @test map.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.
  
  *#
  
  ## $provider is a valid context object but
  ## Muck is not a valid property. This was causing
  ## ClassCastException which is now being caught.
  
  $provider.Muck
  
  ## This is a valid Map and Bar is a valid
  ## element.
  
  $hashtable.Bar
  
  
  
  1.1                  jakarta-velocity/test/templates/compare/map.cmp
  
  Index: map.cmp
  ===================================================================
  
  
  
  $provider.Muck
  
  
  this is from a hashtable!