Package io.micronaut.http.tck
Class HttpResponseAssertion.Builder
java.lang.Object
io.micronaut.http.tck.HttpResponseAssertion.Builder
- Enclosing class:
- HttpResponseAssertion
HTTP Response Assertion Builder.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionassertResponse
(Consumer<HttpResponse<?>> responseConsumer) body
(BodyAssertion<?, ?> bodyAssertion) build()
status
(HttpStatus httpStatus)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
assertResponse
- Parameters:
responseConsumer
- HTTP Response Consumer- Returns:
- HTTP Response Assertion Builder
-
headers
- Parameters:
headers
- HTTP Headers- Returns:
- HTTP Response Assertion Builder
-
header
- Parameters:
headerName
- Header NameheaderValue
- Header Value- Returns:
- HTTP Response Assertion Builder
-
body
- Parameters:
containsBody
- Response Body- Returns:
- HTTP Response Assertion Builder
-
body
- Parameters:
bodyAssertion
- Response Body Assertion- Returns:
- HTTP Response Assertion Builder
-
status
- Parameters:
httpStatus
- Response's HTTP Status- Returns:
- HTTP Response Assertion Builder
-
build
- Returns:
- HTTP Response Assertion
-