System.out.println("\nFailed tests:");
for (int i = 0; i < m_failures.size(); i++) {
TestResult tr = (TestResult) m_failures.get(i);
Enumeration e = tr.failures();
while (e.hasMoreElements()) {
TestFailure tf = (TestFailure) e.nextElement();
System.out.println(" " + tf.toString());
}
}
}
if (m_failures.size() > 0) {
System.out.println("\nTests in error:");
for (int i = 0; i < m_errors.size(); i++) {
TestResult tr = (TestResult) m_errors.get(i);
Enumeration e = tr.errors();
while (e.hasMoreElements()) {
TestFailure tf = (TestFailure) e.nextElement();
System.out.println(" " + tf.toString());
}
}
}
System.out.println("\nTests run: " + m_total + ", Failures: " + m_totalFailures + ", Errors:" + m_totalErrors + "\n");