public interface ClientDriverJettyHandler
extends org.eclipse.jetty.server.Handler
| Modifier and Type | Method and Description |
|---|---|
ClientDriverExpectation |
addExpectation(ClientDriverRequest request,
ClientDriverResponse response)
Add in a
ClientDriverRequest/ClientDriverResponse pair. |
void |
checkForUnexpectedRequests()
This method will throw a ClientDriverFailedExpectationException if there have been any unexpected requests.
|
void |
checkForUnmatchedExpectations()
This method will throw a ClientDriverFailedExpectationException if any expectations have not been met.
|
void |
noFailFastOnUnexpectedRequest()
Should not fail fast on unexpected requests, but will fail later when running
checkForUnexpectedRequests(). |
void |
reset()
Resets the expectations so the current ClientDriver instance can be reused.
|
void |
verify(ClientDriverRequest clientDriverRequest,
int times) |
ClientDriverExpectation addExpectation(ClientDriverRequest request, ClientDriverResponse response)
ClientDriverRequest/ClientDriverResponse pair.request - The expected requestresponse - The response to serve to that requestvoid checkForUnexpectedRequests()
void checkForUnmatchedExpectations()
void noFailFastOnUnexpectedRequest()
checkForUnexpectedRequests().void reset()
void verify(ClientDriverRequest clientDriverRequest, int times)
Copyright © 2016. All Rights Reserved.