()
| 108 | } |
| 109 | |
| 110 | @Test |
| 111 | public void parse_noFragment() throws URISyntaxException { |
| 112 | Uri uri = Uri.parse("scheme://authority/path?query"); |
| 113 | assertThat(uri.getScheme()).isEqualTo("scheme"); |
| 114 | assertThat(uri.getAuthority()).isEqualTo("authority"); |
| 115 | assertThat(uri.getPath()).isEqualTo("/path"); |
| 116 | assertThat(uri.getRawQuery()).isEqualTo("query"); |
| 117 | assertThat(uri.getFragment()).isNull(); |
| 118 | assertThat(uri.toString()).isEqualTo("scheme://authority/path?query"); |
| 119 | assertThat(uri.isAbsolute()).isTrue(); |
| 120 | } |
| 121 | |
| 122 | @Test |
| 123 | public void parse_emptyPathWithAuthority() throws URISyntaxException { |
nothing calls this directly
no test coverage detected