()
| 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 { |
nothing calls this directly
no test coverage detected