|
15 | 15 | */ |
16 | 16 | package feign; |
17 | 17 |
|
18 | | -import com.squareup.okhttp.mockwebserver.MockResponse; |
19 | | -import com.squareup.okhttp.mockwebserver.MockWebServer; |
| 18 | +import okhttp3.mockwebserver.MockResponse; |
| 19 | +import okhttp3.mockwebserver.MockWebServer; |
20 | 20 |
|
21 | 21 | import org.assertj.core.api.SoftAssertions; |
22 | 22 | import org.junit.Rule; |
@@ -105,7 +105,7 @@ public void levelEmits() throws IOException, InterruptedException { |
105 | 105 | SendsStuff api = Feign.builder() |
106 | 106 | .logger(logger) |
107 | 107 | .logLevel(logLevel) |
108 | | - .target(SendsStuff.class, "http://localhost:" + server.getUrl("").getPort()); |
| 108 | + .target(SendsStuff.class, "http://localhost:" + server.getPort()); |
109 | 109 |
|
110 | 110 | api.login("netflix", "denominator", "password"); |
111 | 111 | } |
@@ -137,7 +137,7 @@ public void reasonPhraseOptional() throws IOException, InterruptedException { |
137 | 137 | SendsStuff api = Feign.builder() |
138 | 138 | .logger(logger) |
139 | 139 | .logLevel(logLevel) |
140 | | - .target(SendsStuff.class, "http://localhost:" + server.getUrl("").getPort()); |
| 140 | + .target(SendsStuff.class, "http://localhost:" + server.getPort()); |
141 | 141 |
|
142 | 142 | api.login("netflix", "denominator", "password"); |
143 | 143 | } |
@@ -194,7 +194,7 @@ public void levelEmitsOnReadTimeout() throws IOException, InterruptedException { |
194 | 194 | .logger(logger) |
195 | 195 | .logLevel(logLevel) |
196 | 196 | .options(new Request.Options(10 * 1000, 50)) |
197 | | - .target(SendsStuff.class, "http://localhost:" + server.getUrl("").getPort()); |
| 197 | + .target(SendsStuff.class, "http://localhost:" + server.getPort()); |
198 | 198 |
|
199 | 199 | api.login("netflix", "denominator", "password"); |
200 | 200 | } |
|
0 commit comments