|
9 | 9 | import static org.hamcrest.Matchers.equalTo;
|
10 | 10 | import static org.hamcrest.Matchers.is;
|
11 | 11 | import static org.hamcrest.Matchers.not;
|
12 |
| -import static org.mockserver.integration.ClientAndProxy.startClientAndProxy; |
13 |
| -import static org.mockserver.integration.ClientAndServer.startClientAndServer; |
14 | 12 |
|
15 | 13 | import java.io.File;
|
16 | 14 | import java.io.IOException;
|
|
19 | 17 | import java.util.Collections;
|
20 | 18 | import java.util.Map;
|
21 | 19 | import org.junit.jupiter.api.Test;
|
22 |
| -import org.mockserver.integration.ClientAndProxy; |
23 | 20 | import org.mockserver.integration.ClientAndServer;
|
24 | 21 | import org.mockserver.model.HttpRequest;
|
25 | 22 | import org.mockserver.model.HttpResponse;
|
@@ -77,7 +74,7 @@ public void failsWhenBadVersionRequested() {
|
77 | 74 | public void usesCustomRepoWithAuth() {
|
78 | 75 | ClientAndServer mockServer = null;
|
79 | 76 | try {
|
80 |
| - mockServer = startClientAndServer(1234); |
| 77 | + mockServer = ClientAndServer.startClientAndServer(1234); |
81 | 78 | mockServer.when(
|
82 | 79 | HttpRequest
|
83 | 80 | .request()
|
@@ -120,10 +117,10 @@ public void usesCustomRepoWithAuth() {
|
120 | 117 | @Test
|
121 | 118 | public void usesProxyConfiguration() {
|
122 | 119 | ClientAndServer mockServer = null;
|
123 |
| - ClientAndProxy proxyServer = null; |
| 120 | + ClientAndServer proxyServer = null; |
124 | 121 | try {
|
125 |
| - mockServer = startClientAndServer(1234); |
126 |
| - proxyServer = startClientAndProxy(2323); |
| 122 | + mockServer = ClientAndServer.startClientAndServer(1234); |
| 123 | + proxyServer = ClientAndServer.startClientAndServer(2323); |
127 | 124 |
|
128 | 125 | HttpRequest request = HttpRequest.request()
|
129 | 126 | .withMethod("GET")
|
@@ -162,10 +159,10 @@ public void usesProxyConfiguration() {
|
162 | 159 | @Test
|
163 | 160 | public void usesProxyConfigurationFromEnv() {
|
164 | 161 | ClientAndServer mockServer = null;
|
165 |
| - ClientAndProxy proxyServer = null; |
| 162 | + ClientAndServer proxyServer = null; |
166 | 163 | try {
|
167 |
| - mockServer = startClientAndServer(1234); |
168 |
| - proxyServer = startClientAndProxy(2323); |
| 164 | + mockServer = ClientAndServer.startClientAndServer(1234); |
| 165 | + proxyServer = ClientAndServer.startClientAndServer(2323); |
169 | 166 |
|
170 | 167 | HttpRequest request = HttpRequest.request()
|
171 | 168 | .withMethod("GET")
|
|
0 commit comments