Skip to content

Commit cef880c

Browse files
author
Niall Pemberton
committed
Improve test output
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1006088 13f79535-47bb-0310-9956-ffa450edef68
1 parent c17956b commit cef880c

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/test/java/org/apache/commons/io/FileCleaningTrackerTestCase.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,11 @@ private void pauseForDeleteToComplete(File file) throws Exception {
290290
}
291291
}
292292
private String showFailures() throws Exception {
293-
return "Failed to delete " + theInstance.deleteFailures.size() + " files";
293+
if (theInstance.deleteFailures.size() == 1) {
294+
return "[Delete Failed: " + theInstance.deleteFailures.get(0) + "]";
295+
} else {
296+
return "[Delete Failures: " + theInstance.deleteFailures.size() + "]";
297+
}
294298
}
295299

296300
private void waitUntilTrackCount() throws Exception {
@@ -310,7 +314,7 @@ private void waitUntilTrackCount() throws Exception {
310314
Thread.sleep(1000);
311315
}
312316
if (theInstance.getTrackCount() != 0) {
313-
throw new IllegalStateException("Your JVM is not releasing SoftReference, try running the testcase with less memory (-Xmx)");
317+
throw new IllegalStateException("Your JVM is not releasing References, try running the testcase with less memory (-Xmx)");
314318
}
315319

316320
}

0 commit comments

Comments
 (0)