()
| 120 | } |
| 121 | |
| 122 | @Test |
| 123 | public void parse_emptyPathWithAuthority() throws URISyntaxException { |
| 124 | Uri uri = Uri.parse("scheme://authority"); |
| 125 | assertThat(uri.getScheme()).isEqualTo("scheme"); |
| 126 | assertThat(uri.getAuthority()).isEqualTo("authority"); |
| 127 | assertThat(uri.getPath()).isEmpty(); |
| 128 | assertThat(uri.getRawQuery()).isNull(); |
| 129 | assertThat(uri.getFragment()).isNull(); |
| 130 | assertThat(uri.toString()).isEqualTo("scheme://authority"); |
| 131 | assertThat(uri.isAbsolute()).isTrue(); |
| 132 | assertThat(uri.isPathAbsolute()).isFalse(); |
| 133 | assertThat(uri.isPathRootless()).isFalse(); |
| 134 | } |
| 135 | |
| 136 | @Test |
| 137 | public void parse_rootless() throws URISyntaxException { |
nothing calls this directly
no test coverage detected