Skip to content

Commit 9f45d70

Browse files
baljeet20maibin
authored andcommitted
BAEL-1024 introduction to mock server (eugenp#2333)
* review changes * BAEL-1024 Removed the proxy reference * BAEL-1024 Renamed methods
1 parent fd6e7c5 commit 9f45d70

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

‎mockserver/src/test/java/com/baeldung/mock/server/MockServerLiveTest.java‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,11 @@
2828

2929
public class MockServerLiveTest {
3030

31-
private static ClientAndProxy proxy;
3231
private static ClientAndServer mockServer;
3332

3433
@BeforeClass
35-
public static void startProxy() {
34+
public static void startServer() {
3635
mockServer = startClientAndServer(1080);
37-
proxy = startClientAndProxy(1090);
3836
}
3937

4038

@@ -169,8 +167,7 @@ private void createExpectationForCallBack(){
169167
}
170168

171169
@AfterClass
172-
public static void stopProxy() {
173-
proxy.stop();
170+
public static void stopServer() {
174171
mockServer.stop();
175172
}
176173
}

0 commit comments

Comments
 (0)