// The character set UTF-8 should be specified
assertTrue(html.contains("<META CHARSET=\"UTF-8\"/>"));
+
+ // The footer should be present
+ assertTrue(html.contains("DIV CLASS=\"Footer\">Report generated by <A HREF=\"https://jaekl.net/cfb/\">CFB</A></DIV>"));
}
@Before
assertTrue(pos > 0);
assertFalse(html.substring(pos + expected.length()).contains(expected));
}
+
+ @Test
+ public void testField() throws FileNotFoundException, IOException, SAXException, ParserConfigurationException
+ {
+ String xml = BugReportData.getPrologue()
+ + BugReportData.getVoVolatileIncrement()
+ + BugReportData.getEpilogue();
+
+ String html = createReport(null, xml);
+ validateReport(html);
+
+ String expected = "junit.extensions.ActiveTestSuite.fActiveTestDeathCount";
+
+ // expected string should be present exactly once
+ int pos = html.indexOf(expected);
+ assertTrue(pos > 0);
+ assertFalse(html.substring(pos + expected.length()).contains(expected));
+ }
+
}