diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/patch/PatchApplierTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/patch/PatchApplierTest.java index eeec14987..e2637257c 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/patch/PatchApplierTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/patch/PatchApplierTest.java @@ -378,7 +378,7 @@ public void testShiftDown2() throws Exception { @Test public void testAddAlreadyExistingFile() throws Exception { - addFile("M1", "existing content".getBytes()); + addFile("M1", "existing content".getBytes(StandardCharsets.UTF_8)); init("M1", false, false); Result result = applyPatch(); @@ -429,7 +429,7 @@ public void testCopyNonexistentFile() throws Exception { @Test public void testCopyOnTopAlreadyExistingFile() throws Exception { - addFile("CopyResult", "existing content".getBytes()); + addFile("CopyResult", "existing content".getBytes(StandardCharsets.UTF_8)); init("CopyWithHunks", true, false); Result result = applyPatch();