Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
schlosna committed Nov 29, 2024
1 parent b79adbb commit 1b9f708
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ public void renderPath(ListMultimap<String, String> params, UrlBuilder url) {
"https://[email protected]:8443/path/to/foo/bar?baz=quux&hello=world#hash-octothorpe ,"
+ " www.example.com, 8443, user",
"https://user@[::1]:8443/path/to/foo/bar?baz=quux&hello=world#hash-octothorpe , ::1, 8443, user",
"https://user@[0000:0000:0000:0000:0000:ffff:c0a8:0102]:8443/path/to/foo/bar?baz=quux&hello=world#hash-octothorpe ,"
+ " 0000:0000:0000:0000:0000:ffff:c0a8:0102, 8443, user",
"https://user@[0000:0000:0000:0000:0000:ffff:c0a8:0102]:8443/path/to/foo/bar?baz=quux&hello=world#an-octothorpe"
+ " , 0000:0000:0000:0000:0000:ffff:c0a8:0102, 8443, user",
})
void parseAuthority(String input, String expectedHost, int expectedPort, String expectedUserInfo) throws Exception {
URL url = new URL(input);
Expand Down Expand Up @@ -145,7 +145,7 @@ void testHostComparator() {
assertThat("www.example.com")
.usingComparator(hostComparator)
.isEqualTo("www.example.com")
.isNotEqualTo("example.com");
.isNotEqualTo("github.com");
assertThat("127.0.0.1")
.usingComparator(hostComparator)
.isEqualTo("127.0.0.1")
Expand Down

0 comments on commit 1b9f708

Please sign in to comment.