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));
+ }
+
}