This is an automated email from the ASF dual-hosted git repository. sebb pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-io.git
The following commit(s) were added to refs/heads/master by this push: new 0b5b8c6 Better test comparison 0b5b8c6 is described below commit 0b5b8c65c76685c331bfff3cdafcfcd97c9826c0 Author: Sebb <s...@apache.org> AuthorDate: Fri Aug 7 21:29:14 2020 +0100 Better test comparison --- src/test/java/org/apache/commons/io/FileUtilsTestCase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/apache/commons/io/FileUtilsTestCase.java b/src/test/java/org/apache/commons/io/FileUtilsTestCase.java index a51e072..31cb7af 100644 --- a/src/test/java/org/apache/commons/io/FileUtilsTestCase.java +++ b/src/test/java/org/apache/commons/io/FileUtilsTestCase.java @@ -1749,7 +1749,7 @@ public class FileUtilsTestCase { 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());