BandData footer = root.getChildByName("Footer");
BandData footerChild = new BandData("FooterChild", footer);
footerChild.addData("nestedData", "NESTED_DATA");
footer.addChild(footerChild);
FileOutputStream outputStream = new FileOutputStream("./result/smoke/result_parallel1.doc");
ReportFormatter formatter = defaultFormatterFactory.createFormatter(new FormatterFactoryInput("doc", root,
new ReportTemplateImpl("", "./modules/core/test/smoketest/test.doc", "./modules/core/test/smoketest/test.doc", ReportOutputType.doc), outputStream));
formatter.renderDocument();
IOUtils.closeQuietly(outputStream);
} catch (IOException e) {
Assert.fail();
} finally {
countDownLatch.countDown();
}
}
}.start();
new Thread() {
@Override
public void run() {
try {
BandData root = createRootBand();
BandData footer = root.getChildByName("Footer");
BandData footerChild = new BandData("FooterChild", footer);
footerChild.addData("nestedData", "NESTED_DATA");
footer.addChild(footerChild);
FileOutputStream outputStream = new FileOutputStream("./result/smoke/result_parallel2.doc");
ReportFormatter formatter = defaultFormatterFactory.createFormatter(new FormatterFactoryInput("doc", root,
new ReportTemplateImpl("", "./modules/core/test/smoketest/test.doc", "./modules/core/test/smoketest/test.doc", ReportOutputType.doc), outputStream));
formatter.renderDocument();
IOUtils.closeQuietly(outputStream);
} catch (IOException e) {
Assert.fail();
} finally {
countDownLatch.countDown();
}
}
}.start();
new Thread() {
@Override
public void run() {
try {
BandData root = createRootBand();
BandData footer = root.getChildByName("Footer");
BandData footerChild = new BandData("FooterChild", footer);
footerChild.addData("nestedData", "NESTED_DATA");
footer.addChild(footerChild);
FileOutputStream outputStream = new FileOutputStream("./result/smoke/result_parallel3.doc");
ReportFormatter formatter = defaultFormatterFactory.createFormatter(new FormatterFactoryInput("doc", root,
new ReportTemplateImpl("", "./modules/core/test/smoketest/test.doc", "./modules/core/test/smoketest/test.doc", ReportOutputType.doc), outputStream));
formatter.renderDocument();
IOUtils.closeQuietly(outputStream);
} catch (IOException e) {
Assert.fail();
} finally {