diff --git a/src/test/java/org/apache/commons/io/IOUtilsTestCase.java b/src/test/java/org/apache/commons/io/IOUtilsTestCase.java index ccf3f25d692..156cd5d5789 100644 --- a/src/test/java/org/apache/commons/io/IOUtilsTestCase.java +++ b/src/test/java/org/apache/commons/io/IOUtilsTestCase.java @@ -339,13 +339,22 @@ public synchronized void close() throws IOException { } public void testSingleEOL(String s1, String s2, boolean ifEquals) throws IOException { - assertEquals(ifEquals, IOUtils.contentEqualsIgnoreEOL(new CharArrayReader(s1.toCharArray()), - new CharArrayReader(s2.toCharArray())), "failed at :{" + s1 + "," + s2 + "}"); - assertEquals(ifEquals, IOUtils.contentEqualsIgnoreEOL(new CharArrayReader(s2.toCharArray()), - new CharArrayReader(s1.toCharArray())), "failed at :{" + s2 + "," + s1 + "}"); - assertTrue(IOUtils.contentEqualsIgnoreEOL(new CharArrayReader(s1.toCharArray()), - new CharArrayReader(s1.toCharArray())), "failed at :{" + s1 + "," + s1 + "}"); - assertTrue(IOUtils.contentEqualsIgnoreEOL(new CharArrayReader(s2.toCharArray()), new CharArrayReader(s2.toCharArray())), "failed at :{" + s2 + "," + s2 + "}"); + assertEquals(ifEquals, IOUtils.contentEqualsIgnoreEOL( + new CharArrayReader(s1.toCharArray()), + new CharArrayReader(s2.toCharArray()) + ), "failed at :{" + s1 + "," + s2 + "}"); + assertEquals(ifEquals, IOUtils.contentEqualsIgnoreEOL( + new CharArrayReader(s2.toCharArray()), + new CharArrayReader(s1.toCharArray()) + ), "failed at :{" + s2 + "," + s1 + "}"); + assertTrue(IOUtils.contentEqualsIgnoreEOL( + new CharArrayReader(s1.toCharArray()), + new CharArrayReader(s1.toCharArray()) + ),"failed at :{" + s1 + "," + s1 + "}"); + assertTrue(IOUtils.contentEqualsIgnoreEOL( + new CharArrayReader(s2.toCharArray()), + new CharArrayReader(s2.toCharArray()) + ), "failed at :{" + s2 + "," + s2 + "}"); } @Test public void testCopy_ByteArray_OutputStream() throws Exception {