hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject httpcomponents-client git commit: [HTTPCLIENT-1852] Add APIs URIBuilder.localhost() and setHost(InetAddress). The test now actually uses the new API.
Date Sat, 20 May 2017 02:34:40 GMT
Repository: httpcomponents-client
Updated Branches:
  refs/heads/4.6.x 1da8673a6 -> f030988e8


[HTTPCLIENT-1852] Add APIs URIBuilder.localhost() and
setHost(InetAddress). The test now actually uses the new API.

Project: http://git-wip-us.apache.org/repos/asf/httpcomponents-client/repo
Commit: http://git-wip-us.apache.org/repos/asf/httpcomponents-client/commit/f030988e
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-client/tree/f030988e
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-client/diff/f030988e

Branch: refs/heads/4.6.x
Commit: f030988e89f1b79ee411473c4ec29741f6a63730
Parents: 1da8673
Author: Gary Gregory <ggregory@apache.org>
Authored: Fri May 19 19:34:38 2017 -0700
Committer: Gary Gregory <ggregory@apache.org>
Committed: Fri May 19 19:34:38 2017 -0700

----------------------------------------------------------------------
 .../test/java/org/apache/http/client/utils/TestURIBuilder.java    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/httpcomponents-client/blob/f030988e/httpclient/src/test/java/org/apache/http/client/utils/TestURIBuilder.java
----------------------------------------------------------------------
diff --git a/httpclient/src/test/java/org/apache/http/client/utils/TestURIBuilder.java b/httpclient/src/test/java/org/apache/http/client/utils/TestURIBuilder.java
index de4cf3c..5095d39 100644
--- a/httpclient/src/test/java/org/apache/http/client/utils/TestURIBuilder.java
+++ b/httpclient/src/test/java/org/apache/http/client/utils/TestURIBuilder.java
@@ -219,9 +219,8 @@ public class TestURIBuilder {
         final String specials="/abcd!$&*()_-+.,=:;'~@[]?<>|#^%\"{}\\\u00a3`\u00ac\u00a6xyz";
// N.B. excludes space
         final URI uri = new URI(scheme, specials, host.getHostAddress(), 80, specials, specials,
specials);
 
-        final URI bld = new URIBuilder()
+        final URI bld = URIBuilder.localhost()
                 .setScheme(scheme)
-                .setHost(host)
                 .setUserInfo(specials)
                 .setPath(specials)
                 .setCustomQuery(specials)


Mime
View raw message