fix text template test
@@ -9,7 +9,7 @@ import org.junit.Test
class TextTemplateTest {
@Test
void "processes simple variable placeholders"() {
- def template = new TextTemplate('hello ${world}')
+ def template = new TextTemplate('varPlaceholder','hello ${world}')
def result = template.process(['world': 'template'])
result.should == 'hello template'
@@ -17,7 +17,7 @@ class TextTemplateTest {
@Test
void "supports loop"() {
- def template = new TextTemplate('<#list names as name>\n${name}\n </#list>')
+ def template = new TextTemplate('list', '<#list names as name>\n${name}\n </#list>')
def result = template.process(['names': ['A', 'B', 'C']])
Assert.assertEquals('A\nB\nC\n', result)
