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