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

Method builder_noScheme_throws

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

Source from the content-addressed store, hash-verified

565 }
566
567 @Test
568 public void builder_noScheme_throws() {
569 IllegalStateException e =
570 assertThrows(IllegalStateException.class, () -> Uri.newBuilder().build());
571 assertThat(e.getMessage()).contains("Missing required scheme");
572 }
573
574 @Test
575 public void builder_noHost_hasUserInfo_throws() {

Callers

nothing calls this directly

Calls 4

newBuilderMethod · 0.95
assertThrowsMethod · 0.80
buildMethod · 0.65
containsMethod · 0.45

Tested by

no test coverage detected