Skip to content

Commit

Permalink
Fix test fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Feb 20, 2025
1 parent 9c8dabf commit 27eb9a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/org/apache/commons/io/file/PathUtilsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -574,8 +574,8 @@ public void testTouch() throws IOException {
@Test
public void testWriteStringToFile1() throws Exception {
final Path file = tempDirPath.resolve("write.txt");
PathUtils.writeString(file, "Hello /u1234", StandardCharsets.UTF_8);
final byte[] text = "Hello /u1234".getBytes(StandardCharsets.UTF_8);
PathUtils.writeString(file, "Hello \u1234", StandardCharsets.UTF_8);
final byte[] text = "Hello \u1234".getBytes(StandardCharsets.UTF_8);
TestUtils.assertEqualContent(text, file);
}

Expand Down

0 comments on commit 27eb9a9

Please sign in to comment.