()
| 63 | } |
| 64 | |
| 65 | @Test |
| 66 | public void parse_ipv6Literal_withPort() throws URISyntaxException { |
| 67 | Uri uri = Uri.parse("scheme://[2001:db8::7]:012345"); |
| 68 | assertThat(uri.getAuthority()).isEqualTo("[2001:db8::7]:012345"); |
| 69 | assertThat(uri.getRawHost()).isEqualTo("[2001:db8::7]"); |
| 70 | assertThat(uri.getHost()).isEqualTo("[2001:db8::7]"); |
| 71 | assertThat(uri.getRawPort()).isEqualTo("012345"); |
| 72 | assertThat(uri.getPort()).isEqualTo(12345); |
| 73 | } |
| 74 | |
| 75 | @Test |
| 76 | public void parse_ipv6Literal_noPort() throws URISyntaxException { |
nothing calls this directly
no test coverage detected