Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Pursehouse2018-04-11 05:10:02 +0000
committerMatthias Sohn2018-04-11 07:12:16 +0000
commitec84767c338d255c149a59c8766c864b42eaa0f3 (patch)
treefa165859fb67cb1d611c751f67ac5482c09048b7 /org.eclipse.jgit.pgm.test
parentb0ac5f9c8907a4034612543a92eb465e88a9c6f2 (diff)
downloadjgit-ec84767c338d255c149a59c8766c864b42eaa0f3.tar.gz
jgit-ec84767c338d255c149a59c8766c864b42eaa0f3.tar.xz
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')
-rw-r--r--org.eclipse.jgit.pgm.test/tst/org/eclipse/jgit/pgm/ProxyConfigTest.java3
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);
}
}
}

Back to the top