Class RouteTestResultComponent.RouteTestResult
java.lang.Object
org.apache.pekko.http.scaladsl.testkit.RouteTestResultComponent.RouteTestResult
- Enclosing interface:
- RouteTestResultComponent
A receptacle for the response or rejections created by a route.
-
Constructor Summary
ConstructorsConstructorDescriptionRouteTestResult(scala.concurrent.duration.FiniteDuration timeout, org.apache.pekko.stream.Materializer fm) -
Method Summary
Modifier and TypeMethodDescriptionscala.collection.immutable.Seq<HttpEntity.ChunkStreamPart>chunks()org.apache.pekko.stream.scaladsl.Source<HttpEntity.ChunkStreamPart,Object> entity()Returns a "fresh" entity with a "fresh" unconsumed byte- or chunk stream (if not strict)booleanhandled()voidvoidscala.collection.immutable.Seq<Rejection>response()
-
Constructor Details
-
RouteTestResult
public RouteTestResult(scala.concurrent.duration.FiniteDuration timeout, org.apache.pekko.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
-