()
| 186 | } |
| 187 | |
| 188 | @Test |
| 189 | public void parse_emptyPort() { |
| 190 | Uri uri = Uri.create("scheme://host:"); |
| 191 | assertThat(uri.getScheme()).isEqualTo("scheme"); |
| 192 | assertThat(uri.getAuthority()).isEqualTo("host:"); |
| 193 | assertThat(uri.getRawAuthority()).isEqualTo("host:"); |
| 194 | assertThat(uri.getHost()).isEqualTo("host"); |
| 195 | assertThat(uri.getPort()).isEqualTo(-1); |
| 196 | assertThat(uri.getRawPort()).isEqualTo(""); |
| 197 | assertThat(uri.toString()).isEqualTo("scheme://host:"); |
| 198 | } |
| 199 | |
| 200 | @Test |
| 201 | public void parse_invalidScheme_throws() { |
nothing calls this directly
no test coverage detected