@Test public void shouldReport_inHtmlFormat_successfully_andSplitFiles_perTest() throws IOException, TemplateException {
String reportDirPath = Files.createTempDir().getAbsolutePath() + "/reports";
List<GalenTestInfo> testInfos = new LinkedList<GalenTestInfo>();
GalenTestInfo testInfo = new GalenTestInfo("Home page test", null);
TestReport report = new TestReport();
LayoutReport layoutReport = new LayoutReport();
layoutReport.setScreenshotFullPath(File.createTempFile("screenshot", ".png").getAbsolutePath());
ReportingListenerTestUtils.performSampleReporting("Home page test", null, new LayoutReportListener(layoutReport), null);
report.addNode(new LayoutReportNode(layoutReport, "check layout"));
report.getNodes().get(0).setTime(new Date(1404681346000L));
testInfo.setReport(report);
testInfos.add(testInfo);
testInfo.setStartedAt(new Date(1404681346000L));
testInfo.setEndedAt(new Date(1404681416000L));
new HtmlReportBuilder().build(testInfos, reportDirPath);
String expectedGeneralHtml = trimEveryLine(IOUtils.toString(getClass().getResourceAsStream("/expected-reports/report.html")));