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 SummaryConstructorsConstructorDescriptionRouteTestResult(scala.concurrent.duration.FiniteDuration timeout, org.apache.pekko.stream.Materializer fm) 
- 
Method SummaryModifier 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- 
RouteTestResultpublic RouteTestResult(scala.concurrent.duration.FiniteDuration timeout, org.apache.pekko.stream.Materializer fm) 
 
- 
- 
Method Details- 
awaitResult
- 
chunks
- 
chunksStream
- 
entityReturns a "fresh" entity with a "fresh" unconsumed byte- or chunk stream (if not strict)
- 
handleResponse
- 
handleResult
- 
handledpublic boolean handled()
- 
rawResponse
- 
rejections
- 
response
 
-