]> source.dussan.org Git - jgit.git/commitdiff
T0003_BasicTest: Use CommitBuilder.setEncoding(Charset) 47/118747/3
authorDavid Pursehouse <david.pursehouse@gmail.com>
Tue, 6 Mar 2018 04:42:45 +0000 (13:42 +0900)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Tue, 6 Mar 2018 07:56:13 +0000 (16:56 +0900)
Change-Id: I1c4cdd4b856d715a204030d2de25ef91977186c2
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/T0003_BasicTest.java

index aa50697172d7aad3371dee0463501e10269d869e..d7505af4cf899403c89abba3cc7d3c66a409df1c 100644 (file)
@@ -47,6 +47,7 @@
 package org.eclipse.jgit.internal.storage.file;
 
 import static java.nio.charset.StandardCharsets.ISO_8859_1;
+import static java.nio.charset.StandardCharsets.UTF_8;
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertNotNull;
@@ -521,7 +522,7 @@ public class T0003_BasicTest extends SampleDataRepositoryTestCase {
                                4294967295000L, 60));
                commit.setCommitter(new PersonIdent("Joe Hacker", "joe2@example.com",
                                4294967295000L, 60));
-               commit.setEncoding("UTF-8");
+               commit.setEncoding(UTF_8);
                commit.setMessage("\u00dcbergeeks");
                ObjectId cid = insertCommit(commit);
                assertEquals("4680908112778718f37e686cbebcc912730b3154", cid.name());