{
final Failure failure = (Failure)iterator.next();
final Throwable information = failure.information;
if (information instanceof AssertionFailedError)
{
FileComparator comparator = (FileComparator)failure.test;
this.reportWriter.println(ctr + ") " + comparator.getActualFile());
}
}
this.reportWriter.println("-------------------------------------------------------------------------------");
this.reportWriter.println();
}
for (final Iterator iterator = this.failures.iterator(); iterator.hasNext();)
{
final Failure failure = (Failure)iterator.next();
FileComparator comparator = (FileComparator)failure.test;
final Throwable information = failure.information;
if (information instanceof AssertionFailedError)
{
this.reportWriter.println("FAILURE: " + comparator.getActualFile());
this.reportWriter.println(failure.information.getMessage());
}
else
{
this.reportWriter.println("ERROR:");