| Package | Description |
|---|---|
| com.github.restdriver.clientdriver | |
| com.github.restdriver.clientdriver.jetty |
| Modifier and Type | Method and Description |
|---|---|
ClientDriverRequest |
ClientDriverRequest.capturingBodyIn(BodyCapture<?> bodyCapture)
Setter for adding a
BodyCapture to the expectation for later assertions/debugging. |
ClientDriverRequest |
ClientDriverRequestResponsePair.getRequest() |
static ClientDriverRequest |
RestClientDriver.onRequestTo(org.hamcrest.Matcher<? extends String> path)
Creates a new
ClientDriverRequest object. |
static ClientDriverRequest |
RestClientDriver.onRequestTo(Pattern path)
Creates a new
ClientDriverRequest object. |
static ClientDriverRequest |
RestClientDriver.onRequestTo(String path)
Creates a new
ClientDriverRequest object. |
ClientDriverRequest |
ClientDriverRequest.withAnyParams()
Setter for expecting any number of querystring parameters with any values.
|
ClientDriverRequest |
ClientDriverRequest.withBasicAuth(String username,
String password) |
ClientDriverRequest |
ClientDriverRequest.withBody(org.hamcrest.Matcher<? extends String> bodyContentMatcher,
String contentType)
Setter for expecting body content and type, where content is in the form of a Matcher and type is in the form of
a Pattern.
|
ClientDriverRequest |
ClientDriverRequest.withBody(Pattern withBodyContent,
Pattern contentType)
Setter for expecting body content and type, where content is in the form of a Pattern and type is in the form of
a Pattern.
|
ClientDriverRequest |
ClientDriverRequest.withBody(Pattern withBodyContent,
String contentType)
Setter for expecting body content and type, where content is in the form of a Pattern and type is in the form of
a String.
|
ClientDriverRequest |
ClientDriverRequest.withBody(String withBodyContent,
Pattern contentType)
Setter for expecting body content and type, where content is in the form of a String and type is in the form of a
Pattern.
|
ClientDriverRequest |
ClientDriverRequest.withBody(String withBodyContent,
String withContentType)
Setter for expecting body content and type, where content is in the form of a String and type is in the form of a
String.
|
ClientDriverRequest |
ClientDriverRequest.withHeader(String withHeaderName,
org.hamcrest.Matcher<? extends String> headerValueMatcher)
Setter for expecting a specific header name and value matcher.
|
ClientDriverRequest |
ClientDriverRequest.withHeader(String withHeaderName,
Pattern withHeaderValue)
Setter for expecting a specific header name and value pair, where value is in the form of a Pattern.
|
ClientDriverRequest |
ClientDriverRequest.withHeader(String withHeaderName,
String withHeaderValue)
Setter for expecting a specific header name and value pair.
|
ClientDriverRequest |
ClientDriverRequest.withHeaders(Map<String,Object> headers)
Setter for expecting a map of header name and value pairs.
|
ClientDriverRequest |
ClientDriverRequest.withMethod(ClientDriverRequest.Method withMethod) |
ClientDriverRequest |
ClientDriverRequest.withoutHeader(String withoutHeaderName)
Setter for expecting a specific header name not to be present on the request.
|
ClientDriverRequest |
ClientDriverRequest.withParam(String key,
boolean value)
Setter for expecting query-string parameters on the end of the url.
|
ClientDriverRequest |
ClientDriverRequest.withParam(String key,
int value)
Setter for expecting query-string parameters on the end of the url.
|
ClientDriverRequest |
ClientDriverRequest.withParam(String key,
long value)
Setter for expecting query-string parameters on the end of the url.
|
ClientDriverRequest |
ClientDriverRequest.withParam(String key,
org.hamcrest.Matcher<? extends String> value)
Setter for expecting query-string parameters on the end of the url.
|
ClientDriverRequest |
ClientDriverRequest.withParam(String key,
Object value)
Setter for expecting query-string parameters on the end of the url.
|
ClientDriverRequest |
ClientDriverRequest.withParam(String key,
Pattern value)
Setter for expecting query-string parameters on the end of the url.
|
ClientDriverRequest |
ClientDriverRequest.withParam(String key,
String value)
Setter for expecting query-string parameters on the end of the url.
|
ClientDriverRequest |
ClientDriverRequest.withParams(Map<String,Object> newParams)
Setter for expecting multiple query-string parameters on the end of the url.
|
| Modifier and Type | Method and Description |
|---|---|
ClientDriverExpectation |
ClientDriverRule.addExpectation(ClientDriverRequest request,
ClientDriverResponse response)
Adds an expectation on the ClientDriver to expect the given request and response.
|
ClientDriverExpectation |
ClientDriver.addExpectation(ClientDriverRequest request,
ClientDriverResponse response)
Add in an expected
ClientDriverRequest/ClientDriverResponse pair. |
boolean |
RequestMatcher.isMatch(RealRequest realRequest,
ClientDriverRequest expectedRequest)
Checks for a match between a real
RealRequest and an expected ClientDriverRequest. |
boolean |
DefaultRequestMatcher.isMatch(RealRequest realRequest,
ClientDriverRequest expectedRequest) |
void |
ClientDriverRule.verify(ClientDriverRequest clientDriverRequest,
int times)
When you want to verify, that following request was executed, you can use this method.
|
void |
ClientDriver.verify(ClientDriverRequest clientDriverRequest,
int times) |
| Constructor and Description |
|---|
ClientDriverRequestResponsePair(ClientDriverRequest request,
ClientDriverResponse response)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ClientDriverExpectation |
DefaultClientDriverJettyHandler.addExpectation(ClientDriverRequest request,
ClientDriverResponse response)
Add in a
ClientDriverRequest/ ClientDriverResponse pair. |
ClientDriverExpectation |
ClientDriverJettyHandler.addExpectation(ClientDriverRequest request,
ClientDriverResponse response)
Add in a
ClientDriverRequest/ClientDriverResponse pair. |
void |
DefaultClientDriverJettyHandler.verify(ClientDriverRequest request,
int times) |
void |
ClientDriverJettyHandler.verify(ClientDriverRequest clientDriverRequest,
int times) |
Copyright © 2016. All Rights Reserved.