Assert on the content type of the response.
Assert on the content type of the response.
Assert on the response entity to be a UTF8 representation of the given string.
Assert on the response entity to equal the given object after applying an akka.http.javadsl.unmarshalling.Unmarshaller.
Assert on the response entity to equal the given bytes.
Assert that a given header instance exists in the response.
Assert that a header of the given name and value exists.
Assert that a header of the given type exists.
Assert that a header of the given type does not exist.
Assert on the media type of the response.
Assert on the media type of the response.
Assert on the status code.
Assert on the numeric status code.
Returns the response's content-type
Returns a string representation of the response's content-type
Returns the entity of the response unmarshalled with the given
.Unmarshaller
Returns the strictified entity of the response.
Returns the strictified entity of the response. It will be strictified on first access.
Returns the bytes of the response entity
Returns the entity of the response interpreted as an UTF-8 encoded string.
Returns the first header of the response which is of the given class.
Returns the media-type of the the response's content-type
Returns a string representation of the media-type of the response's content-type
Expects the route to have been rejected with a single rejection.
Expects the route to have been rejected with a single rejection. Fails the test if the route completes with a response, or is rejected with 0 or >1 rejections.
Expects the route to have been rejected, returning the list of rejections, or empty list if the route was rejected with an empty rejection list.
Expects the route to have been rejected, returning the list of rejections, or empty list if the route was rejected with an empty rejection list. Fails the test if the route completes with a response rather than having been rejected.
Returns a copy of the underlying response with the strictified entity.
Returns the akka.http.javadsl.model.StatusCode of the response.
Returns the numeric status code of the response.
A wrapper for route results.
To support the testkit API, a third-party testing library needs to implement this class and provide implementations for the abstract assertion methods.