assertEquals(utf8, utf16);
}
private String writeReport(final MasterReport report) throws IOException, ReportWriterException
{
final MemoryStringWriter oWriter = new MemoryStringWriter();
final ReportWriter rc = new ReportWriter
(report, "UTF-16", ReportWriter.createDefaultConfiguration(report));
rc.addClassFactoryFactory(new URLClassFactory());
rc.addClassFactoryFactory(new DefaultClassFactory());
rc.addClassFactoryFactory(new BandLayoutClassFactory());
rc.addClassFactoryFactory(new ArrayClassFactory());
rc.addStyleKeyFactory(new DefaultStyleKeyFactory());
rc.addStyleKeyFactory(new PageableLayoutStyleKeyFactory());
rc.addTemplateCollection(new DefaultTemplateCollection());
rc.addElementFactory(new DefaultElementFactory());
rc.addDataSourceFactory(new DefaultDataSourceFactory());
rc.write(oWriter);
oWriter.close();
return oWriter.toString();
}