()
| 134 | } |
| 135 | |
| 136 | @Test |
| 137 | public void parse_rootless() throws URISyntaxException { |
| 138 | Uri uri = Uri.parse("mailto:ceo@company.com?subject=raise"); |
| 139 | assertThat(uri.getScheme()).isEqualTo("mailto"); |
| 140 | assertThat(uri.getAuthority()).isNull(); |
| 141 | assertThat(uri.getPath()).isEqualTo("ceo@company.com"); |
| 142 | assertThat(uri.getRawQuery()).isEqualTo("subject=raise"); |
| 143 | assertThat(uri.getFragment()).isNull(); |
| 144 | assertThat(uri.toString()).isEqualTo("mailto:ceo@company.com?subject=raise"); |
| 145 | assertThat(uri.isAbsolute()).isTrue(); |
| 146 | assertThat(uri.isPathAbsolute()).isFalse(); |
| 147 | assertThat(uri.isPathRootless()).isTrue(); |
| 148 | } |
| 149 | |
| 150 | @Test |
| 151 | public void parse_emptyPath() throws URISyntaxException { |
nothing calls this directly
no test coverage detected