()
| 198 | } |
| 199 | |
| 200 | @Test |
| 201 | public void parse_invalidScheme_throws() { |
| 202 | URISyntaxException e = |
| 203 | assertThrows(URISyntaxException.class, () -> Uri.parse("1scheme://authority/path")); |
| 204 | assertThat(e).hasMessageThat().contains("Scheme must start with an alphabetic char"); |
| 205 | |
| 206 | e = assertThrows(URISyntaxException.class, () -> Uri.parse(":path")); |
| 207 | assertThat(e).hasMessageThat().contains("Scheme must start with an alphabetic char"); |
| 208 | } |
| 209 | |
| 210 | @Test |
| 211 | public void parse_unTerminatedScheme_throws() { |
nothing calls this directly
no test coverage detected