MCPcopy Create free account
hub / github.com/grpc/grpc-java / parse_invalidScheme_throws

Method parse_invalidScheme_throws

api/src/test/java/io/grpc/UriTest.java:200–208  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 3

parseMethod · 0.95
assertThrowsMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected