Skip to content

Commit 8054742

Browse files
committed
minor fix.
1 parent 92b67b3 commit 8054742

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎core-java-io/src/test/java/com/baeldung/filechannel/FileChannelUnitTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public void givenFile_whenReadWithFileChannelUsingFileInputStream_thenCorrect()
6262
}
6363
}
6464

65-
assertEquals(expected_value, out.toString());
65+
assertEquals(expected_value, new String(out.toByteArray(), StandardCharsets.UTF_8));
6666
out.close();
6767
channel.close();
6868
fin.close();

0 commit comments

Comments
 (0)