JUnit test-suite that processes FreeMarker templates and compare their
output to reference files.
To add a test-case, go to
src/test/resources/freemarker/test/templatesuite/ and inside that
directory:
- Add a template to under templates/ with whatever meaningful
file name
- Add the expected output to references/ with exactly the same
file name
- Add a new testcase elemen to testcases.xml
- If you want to add items to the data-model or do something else special,
modify the setUp() method in
src/test/java/freemarker/test/templatesuite/TemplateTestCase.java