aboutsummaryrefslogtreecommitdiff
path: root/velocity-engine-core/src/test/resources/templates/subclass.vm
blob: 22e9da12a0a972ad1bc463af1df443abaa73688d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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)