public class MockClient extends AbstractMockClient
| Constructor and Description |
|---|
MockClient(InetSocketAddress address) |
| Modifier and Type | Method and Description |
|---|---|
InetSocketAddress |
getListeningAddress() |
int |
getPort() |
InetSocketAddress |
getRestAddress() |
int |
getRestPort() |
void |
negotiate()
Negotiates the connection between the client and the Mock server.
|
MockResponse |
request(MockRequest request)
Sends a mock command to the mock
|
void |
shutdown()
Closes the mock connection
|
public MockClient(@NotNull
InetSocketAddress address)
throws IOException
IOExceptionpublic InetSocketAddress getListeningAddress()
public InetSocketAddress getRestAddress()
public int getPort()
public int getRestPort()
public void negotiate()
throws IOException
AbstractMockClientnegotiate in class AbstractMockClientIOException - if an I/O error occurs@NotNull public MockResponse request(@NotNull MockRequest request) throws IOException
AbstractMockClientrequest in class AbstractMockClientrequest - The command to sendIOException - if an I/O error occurspublic void shutdown()
AbstractMockClientshutdown in class AbstractMockClientCopyright © 2017. All rights reserved.