diff options
Diffstat (limited to 'velocity-engine-core/src/test/resources/templates/subclass.vm')
-rw-r--r-- | velocity-engine-core/src/test/resources/templates/subclass.vm | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/velocity-engine-core/src/test/resources/templates/subclass.vm b/velocity-engine-core/src/test/resources/templates/subclass.vm new file mode 100644 index 00000000..22e9da12 --- /dev/null +++ b/velocity-engine-core/src/test/resources/templates/subclass.vm @@ -0,0 +1,26 @@ +#** + +@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) |