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

Method builder_setRawQuery_null

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

Source from the content-addressed store, hash-verified

631 }
632
633 @Test
634 public void builder_setRawQuery_null() {
635 Uri uri =
636 Uri.newBuilder()
637 .setScheme("http")
638 .setHost("host")
639 .setRawQuery("a=b")
640 .setRawQuery(null)
641 .build();
642 assertThat(uri.getRawQuery()).isNull();
643 assertThat(uri.toString()).isEqualTo("http://host");
644 }
645
646 @Test
647 public void builder_setRawFragment() {

Callers

nothing calls this directly

Calls 7

newBuilderMethod · 0.95
getRawQueryMethod · 0.95
toStringMethod · 0.95
setRawQueryMethod · 0.80
setHostMethod · 0.80
setSchemeMethod · 0.80
buildMethod · 0.65

Tested by

no test coverage detected