writer.println( "<tr><td colspan=3>" + getFormatted( count, title ) + "</td></tr>" );
Enumeration e = enumeration;
for (int i = 1; e.hasMoreElements(); i++) {
TestFailure failure = (TestFailure) e.nextElement();
writer.println( "<tr><td class='detail' align='right'>" + i + "</td>" );
writer.println( "<td class='detail'>" + failure.failedTest() + "</td><td class='detail'>" );
if (failure.thrownException() instanceof AssertionFailedError) {
writer.println( htmlEscape( failure.thrownException().getMessage() ) );
} else {
writer.println( htmlEscape( getFilteredTrace( failure.thrownException() ) ) );
}