public class ClientAndServer extends MockServerClient
mockServerLogger, portFuture
Constructor and Description |
---|
ClientAndServer(Integer... ports) |
ClientAndServer(String remoteHost,
Integer remotePort,
Integer... ports) |
Modifier and Type | Method and Description |
---|---|
Integer |
getLocalPort() |
List<Integer> |
getLocalPorts() |
Integer |
getPort()
Deprecated.
use getLocalPort instead of getPort
|
InetSocketAddress |
getRemoteAddress() |
boolean |
isRunning()
Returns whether MockServer is running
|
static ClientAndServer |
startClientAndServer(Integer... port) |
static ClientAndServer |
startClientAndServer(String remoteHost,
Integer remotePort,
Integer... port) |
bind, clear, clear, close, contextPath, isRunning, remoteAddress, reset, retrieveActiveExpectations, retrieveActiveExpectations, retrieveLogMessages, retrieveLogMessagesArray, retrieveRecordedExpectations, retrieveRecordedExpectations, retrieveRecordedRequests, retrieveRecordedRequests, stop, stop, verify, verify, verifyZeroInteractions, when, when, when
public ClientAndServer(Integer... ports)
public static ClientAndServer startClientAndServer(Integer... port)
public static ClientAndServer startClientAndServer(String remoteHost, Integer remotePort, Integer... port)
public boolean isRunning()
MockServerClient
isRunning
in class MockServerClient
@Deprecated public Integer getPort()
public Integer getLocalPort()
public InetSocketAddress getRemoteAddress()
Copyright © 2018. All rights reserved.