Skip to content

Commit 6261195

Browse files
committed
Fix breaking change introduced by major version upgrade of mockserver
1 parent 22c31b5 commit 6261195

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

smithy-cli/src/it/java/software/amazon/smithy/cli/MavenResolverTest.java

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
import static org.hamcrest.Matchers.equalTo;
1010
import static org.hamcrest.Matchers.is;
1111
import static org.hamcrest.Matchers.not;
12-
import static org.mockserver.integration.ClientAndProxy.startClientAndProxy;
13-
import static org.mockserver.integration.ClientAndServer.startClientAndServer;
1412

1513
import java.io.File;
1614
import java.io.IOException;
@@ -19,7 +17,6 @@
1917
import java.util.Collections;
2018
import java.util.Map;
2119
import org.junit.jupiter.api.Test;
22-
import org.mockserver.integration.ClientAndProxy;
2320
import org.mockserver.integration.ClientAndServer;
2421
import org.mockserver.model.HttpRequest;
2522
import org.mockserver.model.HttpResponse;
@@ -77,7 +74,7 @@ public void failsWhenBadVersionRequested() {
7774
public void usesCustomRepoWithAuth() {
7875
ClientAndServer mockServer = null;
7976
try {
80-
mockServer = startClientAndServer(1234);
77+
mockServer = ClientAndServer.startClientAndServer(1234);
8178
mockServer.when(
8279
HttpRequest
8380
.request()
@@ -120,10 +117,10 @@ public void usesCustomRepoWithAuth() {
120117
@Test
121118
public void usesProxyConfiguration() {
122119
ClientAndServer mockServer = null;
123-
ClientAndProxy proxyServer = null;
120+
ClientAndServer proxyServer = null;
124121
try {
125-
mockServer = startClientAndServer(1234);
126-
proxyServer = startClientAndProxy(2323);
122+
mockServer = ClientAndServer.startClientAndServer(1234);
123+
proxyServer = ClientAndServer.startClientAndServer(2323);
127124

128125
HttpRequest request = HttpRequest.request()
129126
.withMethod("GET")
@@ -162,10 +159,10 @@ public void usesProxyConfiguration() {
162159
@Test
163160
public void usesProxyConfigurationFromEnv() {
164161
ClientAndServer mockServer = null;
165-
ClientAndProxy proxyServer = null;
162+
ClientAndServer proxyServer = null;
166163
try {
167-
mockServer = startClientAndServer(1234);
168-
proxyServer = startClientAndProxy(2323);
164+
mockServer = ClientAndServer.startClientAndServer(1234);
165+
proxyServer = ClientAndServer.startClientAndServer(2323);
169166

170167
HttpRequest request = HttpRequest.request()
171168
.withMethod("GET")

0 commit comments

Comments
 (0)