Package org.pirkaengine.core

Examples of org.pirkaengine.core.Template


    }

    @Test
    public void render_PrkFunctions_cond_false() throws ParseException, PirkaLoadException, TemplateNotFoundException {
        String templateName = "PrkFunctions_cond_false";
        Template tmpl = loader.load(getTemplateFileName(templateName));
        viewModel.put("flg", false);
        String actual = tmpl.generate(viewModel).render();
        assertRenderEquals(templateName, actual);
    }
View Full Code Here


     * @throws TemplateNotFoundException
     */
    @Test
    public void render_include() throws ParseException, PirkaLoadException, TemplateNotFoundException {
        String templateName = "Include";
        Template tmpl = loader.load(getTemplateFileName(templateName));
        viewModel.put("text", "Hello World");
        String actual = tmpl.generate(viewModel).render();
        assertRenderEquals(templateName, actual);
    }
View Full Code Here

     * @throws TemplateNotFoundException
     */
    @Test
    public void render_no_DocType() throws ParseException, PirkaLoadException, TemplateNotFoundException {
        String templateName = "NoDocType";
        Template tmpl = loader.load(getTemplateFileName(templateName));
        viewModel.put("text", "置換されました。");
        String actual = tmpl.generate(viewModel).render();
        assertRenderEquals(templateName, actual);
    }
View Full Code Here

     * @throws PirkaLoadException
     * @throws TemplateNotFoundException
     */
    public void render_CompositeConditionAndAttr() throws ParseException, PirkaLoadException, TemplateNotFoundException  {
        String templateName = "CompositeConditionAndAttr";
        Template tmpl = loader.load(getTemplateFileName(templateName));
        viewModel.put("is_login", true);
        viewModel.put("msg_class", "msg");
        String actual = tmpl.generate(viewModel).render();
        assertRenderEquals(templateName, actual);
    }
View Full Code Here

     * @throws TemplateNotFoundException
     */
    @Test
    public void render_prk_path_href() throws ParseException, PirkaLoadException, TemplateNotFoundException {
        String templateName = "Path.href";
        Template tmpl = loader.load(getTemplateFileName(templateName));
        String actual = tmpl.generate().render();
        assertRenderEquals(templateName, actual);
    }
View Full Code Here

     * @throws TemplateNotFoundException
     */
    @Test(expected = ParseException.class)
    public void render_prk_path() throws ParseException, PirkaLoadException, TemplateNotFoundException {
        String templateName = "Path";
        Template tmpl = loader.load(getTemplateFileName(templateName));
        tmpl.generate().render();
    }
View Full Code Here

TOP

Related Classes of org.pirkaengine.core.Template

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.