public class ClientAndServer extends MockServerClient
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 |
hasStarted() |
boolean |
isRunning() |
static ClientAndServer |
startClientAndServer(Integer... port) |
static ClientAndServer |
startClientAndServer(List<Integer> ports) |
static ClientAndServer |
startClientAndServer(String remoteHost,
Integer remotePort,
Integer... port) |
void |
stop() |
Future |
stopAsync() |
bind, clear, clear, close, contextPath, hasStarted, hasStopped, hasStopped, isRunning, isSecure, remoteAddress, reset, retrieveActiveExpectations, retrieveActiveExpectations, retrieveLogMessages, retrieveLogMessagesArray, retrieveRecordedExpectations, retrieveRecordedExpectations, retrieveRecordedRequests, retrieveRecordedRequests, retrieveRecordedRequestsAndResponses, retrieveRecordedRequestsAndResponses, sendExpectation, setRequestOverride, stop, upsert, verify, verify, verifyZeroInteractions, when, when, when, when, withSecurepublic ClientAndServer(Integer... ports)
public static ClientAndServer startClientAndServer(List<Integer> ports)
public static ClientAndServer startClientAndServer(Integer... port)
public static ClientAndServer startClientAndServer(String remoteHost, Integer remotePort, Integer... port)
public boolean isRunning()
isRunning in class MockServerClientpublic boolean hasStarted()
hasStarted in class MockServerClientpublic Future stopAsync()
stopAsync in class MockServerClientpublic void stop()
stop in interface Stoppablestop in class MockServerClient@Deprecated public Integer getPort()
public Integer getLocalPort()
public InetSocketAddress getRemoteAddress()
Copyright © 2020. All rights reserved.