()
| 148 | } |
| 149 | |
| 150 | @Test |
| 151 | public void parse_emptyPath() throws URISyntaxException { |
| 152 | Uri uri = Uri.parse("scheme:"); |
| 153 | assertThat(uri.getScheme()).isEqualTo("scheme"); |
| 154 | assertThat(uri.getAuthority()).isNull(); |
| 155 | assertThat(uri.getPath()).isEmpty(); |
| 156 | assertThat(uri.getRawQuery()).isNull(); |
| 157 | assertThat(uri.getFragment()).isNull(); |
| 158 | assertThat(uri.toString()).isEqualTo("scheme:"); |
| 159 | assertThat(uri.isAbsolute()).isTrue(); |
| 160 | assertThat(uri.isPathAbsolute()).isFalse(); |
| 161 | assertThat(uri.isPathRootless()).isFalse(); |
| 162 | } |
| 163 | |
| 164 | @Test |
| 165 | public void parse_emptyQuery() { |
nothing calls this directly
no test coverage detected