ClassicEngineBoot.getInstance().start();
}
public void testConvertReport() throws Exception
{
final ReportConverter rc = new ReportConverter();
XmlDemoHandler[] handlers = FunctionalityTestLib.getAllXmlDemoHandlers();
for (int i = 0; i < handlers.length; i++)
{
XmlDemoHandler handler = handlers[i];
final URL url = handler.getReportDefinitionSource();
assertNotNull("Failed to locate " + url, url);
final ByteArrayOutputStream bo = new ByteArrayOutputStream();
try
{
rc.convertReport(url, url,
new OutputStreamWriter (bo, "UTF-16"), "UTF-16");
final byte[] buf = bo.toByteArray();
final String s = new String(buf, "UTF-16");
final ByteArrayInputStream bin = new ByteArrayInputStream(buf);
ReportGenerator.getInstance().parseReport(new InputSource(bin), url);