makeResultForDate("TestPage", "latest");
assertHasRegexp("Tue Dec 05 01:20:00 [A-Z]+ 1995", response.getContent());
}
private void addDummySuiteResult(File resultFile) throws Exception {
SuiteExecutionReport report = new SuiteExecutionReport(fitNesseVersion, "SuitePage");
report.date = DateTimeUtil.getDateFromString("12/5/1980 01:19:00");
report.getFinalCounts().add(new TestSummary(4,5,6,7));
TimeMeasurement timeMeasurement = mock(TimeMeasurement.class);
when (timeMeasurement.elapsed()).thenReturn(12321L);
report.setTotalRunTimeInMillis(timeMeasurement);
long time = DateTimeUtil.getTimeFromString("12/5/1980 01:20:00");
SuiteExecutionReport.PageHistoryReference r1 = new SuiteExecutionReport.PageHistoryReference("SuitePage.TestPageOne", time, 9);
SuiteExecutionReport.PageHistoryReference r2 = new SuiteExecutionReport.PageHistoryReference("SuitePage.TestPageTwo", time, 11);
report.addPageHistoryReference(r1);
report.addPageHistoryReference(r2);
generateSuiteResultFile(report, resultFile);
}