()
| 350 | } |
| 351 | |
| 352 | @Test |
| 353 | public void parse_emptyAuthority() { |
| 354 | Uri uri = Uri.create("file:///foo/bar"); |
| 355 | assertThat(uri.getAuthority()).isEmpty(); |
| 356 | assertThat(uri.getHost()).isEmpty(); |
| 357 | assertThat(uri.getUserInfo()).isNull(); |
| 358 | assertThat(uri.getPort()).isEqualTo(-1); |
| 359 | assertThat(uri.getPath()).isEqualTo("/foo/bar"); |
| 360 | } |
| 361 | |
| 362 | @Test |
| 363 | public void parse_pathSegments_empty() throws URISyntaxException { |
nothing calls this directly
no test coverage detected