TestRouteResult
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.
Attributes
- Source
- TestRouteResult.scala
- Graph
-
- Supertypes
Members list
Value members
Abstract methods
Attributes
- Source
- TestRouteResult.scala
Attributes
- Source
- TestRouteResult.scala
Attributes
- Source
- TestRouteResult.scala
Attributes
- Source
- TestRouteResult.scala
Concrete methods
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 be a UTF8 representation of the given string.
Attributes
- Source
- TestRouteResult.scala
Assert on the response entity to equal the given object after applying an pekko.http.javadsl.unmarshalling.Unmarshaller.
Assert on the response entity to equal the given object after applying an pekko.http.javadsl.unmarshalling.Unmarshaller.
Attributes
- Source
- TestRouteResult.scala
Assert on the response entity to equal the given bytes.
Attributes
- Source
- TestRouteResult.scala
Attributes
- Source
- TestRouteResult.scala
Assert that a header of the given name and value exists.
Assert that a given header instance exists in the response.
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.
Attributes
- Source
- TestRouteResult.scala
Assert on the numeric status code.
Assert on the status code.
Returns the response's content-type
Returns a string representation of the response's content-type
Returns a string representation of the response's content-type
Attributes
- Source
- TestRouteResult.scala
Returns the entity of the response unmarshalled with the given Unmarshaller
.
Returns the entity of the response unmarshalled with the given Unmarshaller
.
Attributes
- Source
- TestRouteResult.scala
Returns the bytes of the response entity
Returns the entity of the response interpreted as an UTF-8 encoded string.
Returns the entity of the response interpreted as an UTF-8 encoded string.
Attributes
- Source
- TestRouteResult.scala
Returns the first header of the response which is of the given class.
Returns the first header of the response which is of the given class.
Attributes
- Source
- TestRouteResult.scala
Returns the media-type of the response's content-type
Returns a string representation of the media-type of the response's content-type
Returns a string representation of the media-type of the response's content-type
Attributes
- Source
- TestRouteResult.scala
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 with a single rejection. Fails the test if the route completes with a response, or is rejected with 0 or >1 rejections.
Attributes
- Source
- TestRouteResult.scala
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.
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.
Attributes
- Source
- TestRouteResult.scala
Returns the pekko.http.javadsl.model.StatusCode of the response.
Returns the pekko.http.javadsl.model.StatusCode of the response.
Attributes
- Source
- TestRouteResult.scala
Returns the numeric status code of the response.
Concrete fields
Returns the strictified entity of the response. It will be strictified on first access.
Returns the strictified entity of the response. It will be strictified on first access.
Attributes
- Source
- TestRouteResult.scala
Returns a copy of the underlying response with the strictified entity.
Returns a copy of the underlying response with the strictified entity.
Attributes
- Source
- TestRouteResult.scala