Package com.codingchili.core.testing
Interface ResponseListener
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Used together with the
RequestMock
to get the response body and code from a handler that the mocked
request was passed into.-
Method Summary
Modifier and TypeMethodDescriptionvoid
handle(io.vertx.core.json.JsonObject response, ResponseStatus status)
Invoked when the processing handler returns a response.
-
Method Details
-
handle
Invoked when the processing handler returns a response.- Parameters:
response
- the message body of the returned response.status
- the response status code from the handler.
-