Better test comparison
MODIFY
src/test/java/org/apache/commons/io/FileUtilsTestCase.java
src/test/java/org/apache/commons/io/FileUtilsTestCase.java
@@ -1749,7 +1749,7 @@ public void testFileUtils() throws Exception {
assertTrue(file2.length() > 0);
final String file2contents = FileUtils.readFileToString(file2, "UTF-8");
- assertTrue(filename.equals(file2contents), "Second file's contents correct");
+ assertEquals(filename, file2contents, "Second file's contents correct");
assertTrue(file2.delete());

Better test comparison