Package akka.http.scaladsl.testkit
Class RouteTestResultComponent.RouteTestResult
java.lang.Object
akka.http.scaladsl.testkit.RouteTestResultComponent.RouteTestResult
- Enclosing interface:
- RouteTestResultComponent
A receptacle for the response or rejections created by a route.
-
Constructor Summary
ConstructorDescriptionRouteTestResult
(scala.concurrent.duration.FiniteDuration timeout, akka.stream.Materializer fm) -
Method Summary
Modifier and TypeMethodDescriptionscala.collection.immutable.Seq<HttpEntity.ChunkStreamPart>
chunks()
akka.stream.scaladsl.Source<HttpEntity.ChunkStreamPart,
Object> entity()
Returns a "fresh" entity with a "fresh" unconsumed byte- or chunk stream (if not strict)boolean
handled()
void
void
scala.collection.immutable.Seq<Rejection>
response()
-
Constructor Details
-
RouteTestResult
public RouteTestResult(scala.concurrent.duration.FiniteDuration timeout, akka.stream.Materializer fm)
-
-
Method Details
-
awaitResult
-
chunks
-
chunksStream
-
entity
Returns a "fresh" entity with a "fresh" unconsumed byte- or chunk stream (if not strict) -
handleResponse
-
handleResult
-
handled
public boolean handled() -
rawResponse
-
rejections
-
response
-