public class MockServerClient extends AbstractClient<MockServerClient>
contextPath, expectationSerializer, host, httpRequestSerializer, logger, nettyHttpClient, port, portBindingSerializer, verificationSequenceSerializer, verificationSerializer| Constructor and Description |
|---|
MockServerClient(String host,
int port)
Start the client communicating to a MockServer at the specified host and port
for example:
|
MockServerClient(String host,
int port,
String contextPath)
Start the client communicating to a MockServer at the specified host and port
and contextPath for example:
|
bind, calculatePath, clear, clear, close, contextPath, formatErrorMessage, isRunning, isRunning, remoteAddress, reset, retrieveActiveExpectations, retrieveActiveExpectations, retrieveLogMessages, retrieveLogMessagesArray, retrieveRecordedExpectations, retrieveRecordedExpectations, retrieveRecordedRequests, retrieveRecordedRequests, sendRequest, stop, stop, verify, verify, verifyZeroInteractions, when, when, whenpublic MockServerClient(String host, int port)
MockServerClient mockServerClient = new MockServerClient("localhost", 1080);
host - the host for the MockServer to communicate withport - the port for the MockServer to communicate withpublic MockServerClient(String host, int port, String contextPath)
MockServerClient mockServerClient = new MockServerClient("localhost", 1080, "/mockserver");
host - the host for the MockServer to communicate withport - the port for the MockServer to communicate withcontextPath - the context path that the MockServer war is deployed toCopyright © 2018. All rights reserved.