test/jdk/java/net/httpclient/whitebox/java.net.http/jdk/internal/net/http/AuthenticationFilterTest.java
branchhttp-client-branch
changeset 56265 ec34ae013fbe
parent 56235 6218673d7fa0
child 56451 9585061fdb04
--- a/test/jdk/java/net/httpclient/whitebox/java.net.http/jdk/internal/net/http/AuthenticationFilterTest.java	Thu Mar 08 17:41:52 2018 +0000
+++ b/test/jdk/java/net/httpclient/whitebox/java.net.http/jdk/internal/net/http/AuthenticationFilterTest.java	Thu Mar 08 17:42:16 2018 +0000
@@ -73,14 +73,14 @@
                 { "http://foo.com:80", HTTP_2, null },
                 { "http://foo.com:80#blah", HTTP_1_1, null },
                 { "http://foo.com:80#blah", HTTP_2, null },
-                { "http://foo.com", HTTP_1_1, "127.0.0.1:8080" },
-                { "http://foo.com", HTTP_2, "127.0.0.1:8080" },
-                { "http://foo.com#blah", HTTP_1_1, "127.0.0.1:8080" },
-                { "http://foo.com#blah", HTTP_2, "127.0.0.1:8080" },
-                { "http://foo.com:8080", HTTP_1_1, "127.0.0.1:8080" },
-                { "http://foo.com:8080", HTTP_2, "127.0.0.1:8080" },
-                { "http://foo.com:8080#blah", HTTP_1_1, "127.0.0.1:8080" },
-                { "http://foo.com:8080#blah", HTTP_2, "127.0.0.1:8080" },
+                { "http://foo.com", HTTP_1_1, "localhost:8080" },
+                { "http://foo.com", HTTP_2, "localhost:8080" },
+                { "http://foo.com#blah", HTTP_1_1, "localhost:8080" },
+                { "http://foo.com#blah", HTTP_2, "localhost:8080" },
+                { "http://foo.com:8080", HTTP_1_1, "localhost:8080" },
+                { "http://foo.com:8080", HTTP_2, "localhost:8080" },
+                { "http://foo.com:8080#blah", HTTP_1_1, "localhost:8080" },
+                { "http://foo.com:8080#blah", HTTP_2, "localhost:8080" },
                 { "https://foo.com", HTTP_1_1, null },
                 { "https://foo.com", HTTP_2, null },
                 { "https://foo.com#blah", HTTP_1_1, null },
@@ -89,26 +89,26 @@
                 { "https://foo.com:443", HTTP_2, null },
                 { "https://foo.com:443#blah", HTTP_1_1, null },
                 { "https://foo.com:443#blah", HTTP_2, null },
-                { "https://foo.com", HTTP_1_1, "127.0.0.1:8080" },
-                { "https://foo.com", HTTP_2, "127.0.0.1:8080" },
-                { "https://foo.com#blah", HTTP_1_1, "127.0.0.1:8080" },
-                { "https://foo.com#blah", HTTP_2, "127.0.0.1:8080" },
-                { "https://foo.com:8080", HTTP_1_1, "127.0.0.1:8080" },
-                { "https://foo.com:8080", HTTP_2, "127.0.0.1:8080" },
-                { "https://foo.com:8080#blah", HTTP_1_1, "127.0.0.1:8080" },
-                { "https://foo.com:8080#blah", HTTP_2, "127.0.0.1:8080" },
+                { "https://foo.com", HTTP_1_1, "localhost:8080" },
+                { "https://foo.com", HTTP_2, "localhost:8080" },
+                { "https://foo.com#blah", HTTP_1_1, "localhost:8080" },
+                { "https://foo.com#blah", HTTP_2, "localhost:8080" },
+                { "https://foo.com:8080", HTTP_1_1, "localhost:8080" },
+                { "https://foo.com:8080", HTTP_2, "localhost:8080" },
+                { "https://foo.com:8080#blah", HTTP_1_1, "localhost:8080" },
+                { "https://foo.com:8080#blah", HTTP_2, "localhost:8080" },
                 { "http://foo.com:80/x/y/z", HTTP_1_1, null },
                 { "http://foo.com:80/x/y/z", HTTP_2, null },
                 { "http://foo.com:80/x/y/z#blah", HTTP_1_1, null },
                 { "http://foo.com:80/x/y/z#blah", HTTP_2, null },
-                { "http://foo.com/x/y/z", HTTP_1_1, "127.0.0.1:8080" },
-                { "http://foo.com/x/y/z", HTTP_2, "127.0.0.1:8080" },
-                { "http://foo.com/x/y/z#blah", HTTP_1_1, "127.0.0.1:8080" },
-                { "http://foo.com/x/y/z#blah", HTTP_2, "127.0.0.1:8080" },
-                { "http://foo.com:8080/x/y/z", HTTP_1_1, "127.0.0.1:8080" },
-                { "http://foo.com:8080/x/y/z", HTTP_2, "127.0.0.1:8080" },
-                { "http://foo.com:8080/x/y/z#blah", HTTP_1_1, "127.0.0.1:8080" },
-                { "http://foo.com:8080/x/y/z#blah", HTTP_2, "127.0.0.1:8080" },
+                { "http://foo.com/x/y/z", HTTP_1_1, "localhost:8080" },
+                { "http://foo.com/x/y/z", HTTP_2, "localhost:8080" },
+                { "http://foo.com/x/y/z#blah", HTTP_1_1, "localhost:8080" },
+                { "http://foo.com/x/y/z#blah", HTTP_2, "localhost:8080" },
+                { "http://foo.com:8080/x/y/z", HTTP_1_1, "localhost:8080" },
+                { "http://foo.com:8080/x/y/z", HTTP_2, "localhost:8080" },
+                { "http://foo.com:8080/x/y/z#blah", HTTP_1_1, "localhost:8080" },
+                { "http://foo.com:8080/x/y/z#blah", HTTP_2, "localhost:8080" },
                 { "https://foo.com/x/y/z", HTTP_1_1, null },
                 { "https://foo.com/x/y/z", HTTP_2, null },
                 { "https://foo.com/x/y/z#blah", HTTP_1_1, null },
@@ -117,14 +117,14 @@
                 { "https://foo.com:443/x/y/z", HTTP_2, null },
                 { "https://foo.com:443/x/y/z#blah", HTTP_1_1, null },
                 { "https://foo.com:443/x/y/z#blah", HTTP_2, null },
-                { "https://foo.com/x/y/z", HTTP_1_1, "127.0.0.1:8080" },
-                { "https://foo.com/x/y/z", HTTP_2, "127.0.0.1:8080" },
-                { "https://foo.com/x/y/z#blah", HTTP_1_1, "127.0.0.1:8080" },
-                { "https://foo.com/x/y/z#blah", HTTP_2, "127.0.0.1:8080" },
-                { "https://foo.com:8080/x/y/z", HTTP_1_1, "127.0.0.1:8080" },
-                { "https://foo.com:8080/x/y/z", HTTP_2, "127.0.0.1:8080" },
-                { "https://foo.com:8080/x/y/z#blah", HTTP_1_1, "127.0.0.1:8080" },
-                { "https://foo.com:8080/x/y/z#blah", HTTP_2, "127.0.0.1:8080" },
+                { "https://foo.com/x/y/z", HTTP_1_1, "localhost:8080" },
+                { "https://foo.com/x/y/z", HTTP_2, "localhost:8080" },
+                { "https://foo.com/x/y/z#blah", HTTP_1_1, "localhost:8080" },
+                { "https://foo.com/x/y/z#blah", HTTP_2, "localhost:8080" },
+                { "https://foo.com:8080/x/y/z", HTTP_1_1, "localhost:8080" },
+                { "https://foo.com:8080/x/y/z", HTTP_2, "localhost:8080" },
+                { "https://foo.com:8080/x/y/z#blah", HTTP_1_1, "localhost:8080" },
+                { "https://foo.com:8080/x/y/z#blah", HTTP_2, "localhost:8080" },
         };
     }