@Test @SuppressWarnings("unchecked") public void generateSimpleReport() throws Exception { JAXBContext context = JAXBContext.newInstance(XmlSimpleReport.class.getPackage().getName()); Unmarshaller unmarshaller = context.createUnmarshaller(); Marshaller marshaller = context.createMarshaller(); JAXBElement<XmlSimpleReport> unmarshal = (JAXBElement<XmlSimpleReport>) unmarshaller.unmarshal(new File("src/test/resources/simpleReport.xml")); assertNotNull(unmarshal); XmlSimpleReport simpleReport = unmarshal.getValue(); assertNotNull(simpleReport); StringWriter writer = new StringWriter(); marshaller.marshal(OF_SIMPLE_REPORT.createSimpleReport(simpleReport), writer); String htmlSimpleReport = service.generateSimpleReport(writer.toString()); assertTrue(Utils.isStringNotEmpty(htmlSimpleReport)); LOG.debug("Simple report html : " + htmlSimpleReport); }
public String generateSimpleReport(String simpleReport) { try { return SimpleReportFacade.newFacade().generateHtmlReport(simpleReport); } catch (Exception e) { LOG.error("Error while generating simple report : " + e.getMessage(), e); return null; } }
XSLTService { public String generateSimpleReport(String simpleReport) { try { return SimpleReportFacade.newFacade().generateHtmlReport(simpleReport); } catch (Exception e) { LOG.error("Error while generating simple report : " + e.getMessage(), e); return null; } } }
XSLTService { public String generateSimpleReport(String simpleReport) { try { return SimpleReportFacade.newFacade().generateHtmlReport(simpleReport); } catch (Exception e) { LOG.error("Error while generating simple report : " + e.getMessage(), e); return null; } }  }
XSLTService { public String generateSimpleReport(String simpleReport) { try { return SimpleReportFacade.newFacade().generateHtmlReport(simpleReport); } catch (Exception e) { LOG.error("Error while generating simple report : " + e.getMessage(), e); return null; } }  String generateSimpleReport(String simpleReport); String generateSimpleCertificateReport(String simpleReport); String generateDetailedReport(String detailedReport); String generateSVG(String diagnosticDataXml); }
XSLTService { public String generateSimpleReport(String simpleReport) { try { return SimpleReportFacade.newFacade().generateHtmlReport(simpleReport); } catch (Exception e) { LOG.error("Error while generating simple report : " + e.getMessage(), e); return null; } }  String generateSimpleReport(String simpleReport); String generateSimpleCertificateReport(String simpleReport); String generateDetailedReport(String detailedReport); String generateSVG(String diagnosticDataXml);  }