public class RequestMatcherBuilder
extends java.lang.Object
RequestMatcher| Modifier and Type | Method and Description |
|---|---|
RequestMatcherBuilder |
body(HttpBodyConverter httpBodyConverter)
Sets the request body and the matching content-type header using
HttpBodyConverter |
RequestMatcherBuilder |
body(java.lang.String body)
Sets the request body
|
RequestMatcherBuilder |
header(java.lang.String key,
java.lang.String value)
Sets one request header
|
RequestMatcherBuilder |
queryParam(java.lang.String key,
java.lang.Object... values)
Sets the request query
|
StubServiceBuilder |
willReturn(ResponseBuilder responseBuilder)
Sets the expected response
|
public RequestMatcherBuilder body(java.lang.String body)
body - the request body to match onRequestMatcherBuilder for further customizationspublic RequestMatcherBuilder body(HttpBodyConverter httpBodyConverter)
HttpBodyConverterhttpBodyConverter - custom http body converterRequestMatcherBuilder for further customizationspublic RequestMatcherBuilder header(java.lang.String key, java.lang.String value)
key - the header key to match onvalue - the header value to match onRequestMatcherBuilder for further customizationspublic RequestMatcherBuilder queryParam(java.lang.String key, java.lang.Object... values)
key - the query params key to match onvalues - the query params values to match onRequestMatcherBuilder for further customizationspublic StubServiceBuilder willReturn(ResponseBuilder responseBuilder)
responseBuilder - the builder for responseStubServiceBuilder for chaining the next RequestMatcherBuilderResponseBuilder