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

void net::sf::jooreports::templates::VisualTemplateTest::testVisualFields (  ) throws IOException, DocumentTemplateException [inline]

template contains input fields: [description:field1,content:field one] [description:field2,content:field two]

use TextInputTagTest#testVariable()

Definition at line 32 of file VisualTemplateTest.java.

        File templateFile = getTestFile("visual-fields-template.odt");
        Map model = new HashMap();
        model.put("field1", "First Value");
        model.put("field2", "Second Value");
        String actual = processTemplate(templateFile, model);
        String expected =
            "1: First Value\n"+
            "2: Second Value";
        assertEquals(expected, actual);

Generated by  Doxygen 1.6.0   Back to index