InvoiceReportData reportData = new InvoiceReportData();
TableDataFactory tableDataFactory = new TableDataFactory("default", reportData);//$NON-NLS-1$
report.setDataFactory(tableDataFactory);
XmlDebugReportUtil.createFlowTable(report, outputFilename);
// Comparing the File just generated with the golden version
DetailedDiff myDiff = new DetailedDiff(compareXML(readFileAsString(inputFileName),
readFileAsString(outputFilename)));
allDifferences = myDiff.getAllDifferences();
if (myDiff != null && myDiff.toString() != null) {
FileOutputStream outputStream = new FileOutputStream(logFile);
outputStream.write(myDiff.toString().getBytes());
outputStream.flush();
outputStream.close();
}
// Done!
System.err.println("Done!");//$NON-NLS-1$