diff options
author | David Pursehouse <david.pursehouse@gmail.com> | 2018-04-11 14:10:02 +0900 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2018-04-11 03:12:16 -0400 |
commit | ec84767c338d255c149a59c8766c864b42eaa0f3 (patch) | |
tree | fa165859fb67cb1d611c751f67ac5482c09048b7 /org.eclipse.jgit.pgm.test/tst | |
parent | b0ac5f9c8907a4034612543a92eb465e88a9c6f2 (diff) | |
download | jgit-ec84767c338d255c149a59c8766c864b42eaa0f3.tar.gz jgit-ec84767c338d255c149a59c8766c864b42eaa0f3.zip |
Use Constants.CHARACTER_ENCODING in tests
Change-Id: Iba9fc991aee54fcb8b0dc5e5841da24c2d54dfc2
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.pgm.test/tst')
-rw-r--r-- | org.eclipse.jgit.pgm.test/tst/org/eclipse/jgit/pgm/ProxyConfigTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.jgit.pgm.test/tst/org/eclipse/jgit/pgm/ProxyConfigTest.java b/org.eclipse.jgit.pgm.test/tst/org/eclipse/jgit/pgm/ProxyConfigTest.java index 06e7a1dbe6..40a223d92f 100644 --- a/org.eclipse.jgit.pgm.test/tst/org/eclipse/jgit/pgm/ProxyConfigTest.java +++ b/org.eclipse.jgit.pgm.test/tst/org/eclipse/jgit/pgm/ProxyConfigTest.java @@ -47,6 +47,7 @@ import java.net.MalformedURLException; import java.util.List; import java.util.Map; +import org.eclipse.jgit.lib.Constants; import org.junit.Before; import org.junit.Test; @@ -203,7 +204,7 @@ public class ProxyConfigTest { while ((length = inputStream.read(buffer)) != -1) { result.write(buffer, 0, length); } - return result.toString("UTF-8"); + return result.toString(Constants.CHARACTER_ENCODING); } } } |