public interface MockRunner<MockRequest extends GenericMockRequest, MockResponse extends GenericMockResponse> extends GenericMockDispatcher, Releasable
The mock runner is responsible for setting up a server on a port. It listens to requests and dispatches them to the correct target.
Type Params | Return Type | Name and description |
---|---|---|
|
public MockRunContext |
getMockContext()
|
|
public boolean |
isRunning()
|
|
public void |
start() Start this runner. |
|
public void |
stop() Stop this runner. |
Methods inherited from class | Name |
---|---|
interface GenericMockDispatcher |
clearResults, dispatchRequest, getMockResultAt, getMockResultCount, setLogEnabled, setMaxResults |
interface Releasable |
release |
Start this runner. If already started - do nothing.
Stop this runner. If not running - do nothing.