public class MockServer extends Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | MockServer.DummyResponseServerBehavior | 
| static class  | MockServer.OverloadedServerBehaviorA daemon thread which runs a simple server that listens to a specific server socket. | 
| static class  | MockServer.ServerBehavior | 
| static interface  | MockServer.ServerBehaviorStrategy | 
| static class  | MockServer.UnresponsiveServerBehaviorA daemon thread which runs a simple server that listens to a specific server socket. | 
| Constructor and Description | 
|---|
| MockServer(MockServer.ServerBehaviorStrategy serverBehaviorStrategy) | 
| Modifier and Type | Method and Description | 
|---|---|
| static MockServer | createMockServer(MockServer.ServerBehavior serverBehavior) | 
| String | getEndpoint() | 
| String | getHttpsEndpoint() | 
| int | getPort() | 
| void | startServer() | 
| void | stopServer() | 
public MockServer(MockServer.ServerBehaviorStrategy serverBehaviorStrategy)
public static MockServer createMockServer(MockServer.ServerBehavior serverBehavior)
public void startServer()
public void stopServer()
public int getPort()
public String getEndpoint()
public String getHttpsEndpoint()
Copyright © 2018. All rights reserved.