()
| 73 | } |
| 74 | |
| 75 | @Test |
| 76 | public void parse_ipv6Literal_noPort() throws URISyntaxException { |
| 77 | Uri uri = Uri.parse("scheme://[2001:db8::7]"); |
| 78 | assertThat(uri.getAuthority()).isEqualTo("[2001:db8::7]"); |
| 79 | assertThat(uri.getRawHost()).isEqualTo("[2001:db8::7]"); |
| 80 | assertThat(uri.getHost()).isEqualTo("[2001:db8::7]"); |
| 81 | assertThat(uri.getRawPort()).isNull(); |
| 82 | assertThat(uri.getPort()).isLessThan(0); |
| 83 | } |
| 84 | |
| 85 | @Test |
| 86 | public void parse_ipv6ScopedLiteral() throws URISyntaxException { |
nothing calls this directly
no test coverage detected