You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ni...@apache.org on 2010/10/09 02:59:39 UTC
svn commit: r1006088 -
/commons/proper/io/trunk/src/test/java/org/apache/commons/io/FileCleaningTrackerTestCase.java
Author: niallp
Date: Sat Oct 9 00:59:39 2010
New Revision: 1006088
URL: http://svn.apache.org/viewvc?rev=1006088&view=rev
Log:
Improve test output
Modified:
commons/proper/io/trunk/src/test/java/org/apache/commons/io/FileCleaningTrackerTestCase.java
Modified: commons/proper/io/trunk/src/test/java/org/apache/commons/io/FileCleaningTrackerTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/test/java/org/apache/commons/io/FileCleaningTrackerTestCase.java?rev=1006088&r1=1006087&r2=1006088&view=diff
==============================================================================
--- commons/proper/io/trunk/src/test/java/org/apache/commons/io/FileCleaningTrackerTestCase.java (original)
+++ commons/proper/io/trunk/src/test/java/org/apache/commons/io/FileCleaningTrackerTestCase.java Sat Oct 9 00:59:39 2010
@@ -290,7 +290,11 @@ public class FileCleaningTrackerTestCase
}
}
private String showFailures() throws Exception {
- return "Failed to delete " + theInstance.deleteFailures.size() + " files";
+ if (theInstance.deleteFailures.size() == 1) {
+ return "[Delete Failed: " + theInstance.deleteFailures.get(0) + "]";
+ } else {
+ return "[Delete Failures: " + theInstance.deleteFailures.size() + "]";
+ }
}
private void waitUntilTrackCount() throws Exception {
@@ -310,7 +314,7 @@ public class FileCleaningTrackerTestCase
Thread.sleep(1000);
}
if (theInstance.getTrackCount() != 0) {
- throw new IllegalStateException("Your JVM is not releasing SoftReference, try running the testcase with less memory (-Xmx)");
+ throw new IllegalStateException("Your JVM is not releasing References, try running the testcase with less memory (-Xmx)");
}
}