Search in sources :

Example 1 with ImageReportElement

use of org.activityinfo.shared.report.model.ImageReportElement in project activityinfo by bedatadriven.

the class JaxbParseTest method testElements.

@Test
public void testElements() throws JAXBException {
    Report report = parseXml("report-elements.xml");
    dumpXml(report);
    Assert.assertEquals("element count", 7, report.getElements().size());
    Assert.assertTrue("pivotTable", report.getElements().get(0) instanceof PivotTableReportElement);
    Assert.assertTrue("pivotChart", report.getElements().get(1) instanceof PivotChartReportElement);
    Assert.assertTrue("table", report.getElements().get(2) instanceof TableElement);
    Assert.assertTrue("map", report.getElements().get(3) instanceof MapReportElement);
    Assert.assertTrue("static", report.getElements().get(4) instanceof TextReportElement);
    Assert.assertTrue("static", report.getElements().get(5) instanceof TextReportElement);
    Assert.assertTrue("static", report.getElements().get(6) instanceof ImageReportElement);
}
Also used : MapReportElement(org.activityinfo.shared.report.model.MapReportElement) ImageReportElement(org.activityinfo.shared.report.model.ImageReportElement) Report(org.activityinfo.shared.report.model.Report) PivotChartReportElement(org.activityinfo.shared.report.model.PivotChartReportElement) PivotTableReportElement(org.activityinfo.shared.report.model.PivotTableReportElement) TableElement(org.activityinfo.shared.report.model.TableElement) TextReportElement(org.activityinfo.shared.report.model.TextReportElement) Test(org.junit.Test)

Aggregations

ImageReportElement (org.activityinfo.shared.report.model.ImageReportElement)1 MapReportElement (org.activityinfo.shared.report.model.MapReportElement)1 PivotChartReportElement (org.activityinfo.shared.report.model.PivotChartReportElement)1 PivotTableReportElement (org.activityinfo.shared.report.model.PivotTableReportElement)1 Report (org.activityinfo.shared.report.model.Report)1 TableElement (org.activityinfo.shared.report.model.TableElement)1 TextReportElement (org.activityinfo.shared.report.model.TextReportElement)1 Test (org.junit.Test)1