()
| 97 | } |
| 98 | |
| 99 | @Test |
| 100 | public void parse_noQuery() throws URISyntaxException { |
| 101 | Uri uri = Uri.parse("scheme://authority/path#fragment"); |
| 102 | assertThat(uri.getScheme()).isEqualTo("scheme"); |
| 103 | assertThat(uri.getAuthority()).isEqualTo("authority"); |
| 104 | assertThat(uri.getPath()).isEqualTo("/path"); |
| 105 | assertThat(uri.getRawQuery()).isNull(); |
| 106 | assertThat(uri.getFragment()).isEqualTo("fragment"); |
| 107 | assertThat(uri.toString()).isEqualTo("scheme://authority/path#fragment"); |
| 108 | } |
| 109 | |
| 110 | @Test |
| 111 | public void parse_noFragment() throws URISyntaxException { |
nothing calls this directly
no test coverage detected