Logo Search packages:      
Sourcecode: jodreports version File versions  Download package

void net::sf::jooreports::templates::TemplateTest::testStylesDotXml (  ) throws IOException, DocumentTemplateException [inline]

Header/footer are in styles.xml

Exceptions:
IOException
TemplateException

Definition at line 61 of file TemplateTest.java.

                                                                                 {
        File templateFile = getTestFile("header-template.odt");
        Map model = new HashMap();
        model.put("name", "Mirko");
        try {
            processTemplate(templateFile, model);
            fail("undetected invalid reference to 'title' in styles.xml");
        } catch (DocumentTemplateException expected) { }
    }

Generated by  Doxygen 1.6.0   Back to index