Class FreemarkerTemplateProcessorTest


  • public class FreemarkerTemplateProcessorTest
    extends WeldBaseTest
    Test the FreemarkerTemplateProcessor, tests both template validation as well as template processing. The test cases make use of the test templates present in the same package.
    Author:
    mtaal
    • Constructor Detail

      • FreemarkerTemplateProcessorTest

        public FreemarkerTemplateProcessorTest()
    • Method Detail

      • testTemplateReadCombineAndProcess

        public void testTemplateReadCombineAndProcess()
                                               throws Exception
        Tests the test1, test2 and test3 templates. The template files are converted into template objects, and then validated and processed using the TemplateProcessor.
        Throws:
        Exception
      • testLenientTemplateProcessing

        public void testLenientTemplateProcessing()
                                           throws Exception
        Tests if the exception handler indeed works correctly and is lenient about undefined values. See TemplateProcessor.
        Throws:
        Exception