public abstract class AbstractMockClient extends Object
| Constructor and Description |
|---|
AbstractMockClient() |
| Modifier and Type | Method and Description |
|---|---|
void |
negotiate()
Negotiates the connection between the client and the Mock server.
|
abstract MockResponse |
request(MockRequest req)
Sends a mock command to the mock
|
void |
shutdown()
Closes the mock connection
|
public void negotiate()
throws IOException
IOException - if an I/O error occurs@NotNull public abstract MockResponse request(@NotNull MockRequest req) throws IOException
req - The command to sendIOException - if an I/O error occurspublic void shutdown()
Copyright © 2017. All rights reserved.