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

Method hardCodedTargetWithURI

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

Source from the content-addressed store, hash-verified

97 }
98
99 @Test
100 void hardCodedTargetWithURI() throws InterruptedException {
101 server.enqueue(new MockResponse());
102
103 String host = server.getHostName();
104 int port = server.getPort();
105 String base = "http://" + host + ":" + port;
106
107 UriTarget uriTarget = Feign.builder().target(UriTarget.class, base);
108
109 uriTarget.get(URI.create("http://" + host + ":" + port + "/path?query=param"));
110
111 assertThat(server.takeRequest()).hasPath("/path?query=param").hasQueryParams("query=param");
112 }
113
114 @AfterEach
115 void afterEachTest() throws IOException {

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