Search in sources :

Example 1 with NullContent

use of org.activityinfo.shared.report.content.NullContent in project activityinfo by bedatadriven.

the class ItextReportRendererTest method pageNumbers.

@Test
public void pageNumbers() throws IOException {
    ReportContent content = new ReportContent();
    content.setFilterDescriptions(Collections.EMPTY_LIST);
    Report report = new Report();
    report.setContent(content);
    for (int i = 0; i != 1000; ++i) {
        TextReportElement element = new TextReportElement();
        element.setText("Quick brown fox, texte français");
        element.setContent(new NullContent());
        report.addElement(element);
    }
    renderToPdf(report, "pagenumbers.pdf");
}
Also used : ReportContent(org.activityinfo.shared.report.content.ReportContent) Report(org.activityinfo.shared.report.model.Report) NullContent(org.activityinfo.shared.report.content.NullContent) TextReportElement(org.activityinfo.shared.report.model.TextReportElement) Test(org.junit.Test)

Aggregations

NullContent (org.activityinfo.shared.report.content.NullContent)1 ReportContent (org.activityinfo.shared.report.content.ReportContent)1 Report (org.activityinfo.shared.report.model.Report)1 TextReportElement (org.activityinfo.shared.report.model.TextReportElement)1 Test (org.junit.Test)1