public static class HttpResponseAssertion.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
HttpResponseAssertion.Builder |
assertResponse(Consumer<HttpResponse<?>> responseConsumer) |
HttpResponseAssertion.Builder |
body(BodyAssertion bodyAssertion) |
HttpResponseAssertion.Builder |
body(String containsBody) |
HttpResponseAssertion |
build() |
HttpResponseAssertion.Builder |
header(String headerName,
String headerValue) |
HttpResponseAssertion.Builder |
headers(Map<String,String> headers) |
HttpResponseAssertion.Builder |
status(HttpStatus httpStatus) |
public HttpResponseAssertion.Builder assertResponse(Consumer<HttpResponse<?>> responseConsumer)
responseConsumer
- HTTP Response Consumerpublic HttpResponseAssertion.Builder headers(Map<String,String> headers)
headers
- HTTP Headerspublic HttpResponseAssertion.Builder header(String headerName, String headerValue)
headerName
- Header NameheaderValue
- Header Valuepublic HttpResponseAssertion.Builder body(String containsBody)
containsBody
- Response Bodypublic HttpResponseAssertion.Builder body(BodyAssertion bodyAssertion)
bodyAssertion
- Response Body Assertionpublic HttpResponseAssertion.Builder status(HttpStatus httpStatus)
httpStatus
- Response's HTTP Statuspublic HttpResponseAssertion build()