MCPcopy Index your code
hub / github.com/OpenFeign/feign / emptyTarget

Method emptyTarget

core/src/test/java/feign/TargetTest.java:85–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83 }
84
85 @Test
86 void emptyTarget() throws InterruptedException {
87 server.enqueue(new MockResponse());
88
89 UriTarget uriTarget = Feign.builder().target(Target.EmptyTarget.create(UriTarget.class));
90
91 String host = server.getHostName();
92 int port = server.getPort();
93
94 uriTarget.get(URI.create("http://" + host + ":" + port + "/path?query=param"));
95
96 assertThat(server.takeRequest()).hasPath("/path?query=param").hasQueryParams("query=param");
97 }
98
99 @Test
100 void hardCodedTargetWithURI() throws InterruptedException {

Callers

nothing calls this directly

Calls 8

builderMethod · 0.95
getMethod · 0.95
hasQueryParamsMethod · 0.80
takeRequestMethod · 0.80
createMethod · 0.65
targetMethod · 0.45
hasPathMethod · 0.45
assertThatMethod · 0.45

Tested by

no test coverage detected