trait RouteTest extends RequestBuilding with WSTestRequestBuilding with RouteTestResultComponent with MarshallingTestUtils

Self Type
RouteTest with TestFrameworkInterface
Source
RouteTest.scala
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RouteTest
  2. MarshallingTestUtils
  3. RouteTestResultComponent
  4. WSTestRequestBuilding
  5. RequestBuilding
  6. TransformerPipelineSupport
  7. AnyRef
  8. Any
Implicitly
  1. by WithTransformation
  2. by WithTransformation
  3. by any2stringadd
  4. by StringFormat
  5. by Ensuring
  6. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. class RequestBuilder extends AnyRef
    Definition Classes
    RequestBuilding
  2. implicit class WithTransformation[A] extends AnyRef
    Definition Classes
    TransformerPipelineSupport
  3. implicit class WithTransformerConcatenation[A, B] extends (A) => B
    Definition Classes
    TransformerPipelineSupport
  4. case class DefaultHostInfo(host: Host, securedConnection: Boolean) extends Product with Serializable
  5. type RequestTransformer = (HttpRequest) => HttpRequest
    Definition Classes
    RequestBuilding
  6. abstract class TildeArrow[A, B] extends AnyRef
  7. abstract class TildeBangArrow[A, B] extends AnyRef
  8. implicit class WithTransformation2 extends AnyRef
  9. class RouteTestResult extends AnyRef

    A receptacle for the response or rejections created by a route.

    A receptacle for the response or rejections created by a route.

    Definition Classes
    RouteTestResultComponent

Abstract Value Members

  1. abstract def failTest(msg: String): Nothing
    Definition Classes
    RouteTestResultComponent

Concrete Value Members

  1. val Delete: (RouteTest.this)#RequestBuilder
    Definition Classes
    RequestBuilding
  2. val Get: (RouteTest.this)#RequestBuilder
    Definition Classes
    RequestBuilding
  3. val Head: (RouteTest.this)#RequestBuilder
    Definition Classes
    RequestBuilding
  4. val Options: (RouteTest.this)#RequestBuilder
    Definition Classes
    RequestBuilding
  5. val Patch: (RouteTest.this)#RequestBuilder
    Definition Classes
    RequestBuilding
  6. val Post: (RouteTest.this)#RequestBuilder
    Definition Classes
    RequestBuilding
  7. val Put: (RouteTest.this)#RequestBuilder
    Definition Classes
    RequestBuilding
  8. def WS(uri: Uri, clientSideHandler: Flow[Message, Message, Any], subprotocols: Seq[String] = Nil)(implicit materializer: Materializer): HttpRequest
    Definition Classes
    WSTestRequestBuilding
    Annotations
    @nowarn()
  9. def actorSystemNameFrom(clazz: Class[_]): String
  10. def addAttribute[T](key: AttributeKey[T], value: T): (RouteTest.this)#RequestTransformer
    Definition Classes
    RequestBuilding
  11. def addCredentials(credentials: HttpCredentials): (RouteTest.this)#RequestTransformer
    Definition Classes
    RequestBuilding
  12. def addHeader(headerName: String, headerValue: String): (RouteTest.this)#RequestTransformer
    Definition Classes
    RequestBuilding
  13. def addHeader(header: HttpHeader): (RouteTest.this)#RequestTransformer
    Definition Classes
    RequestBuilding
  14. def addHeaders(first: HttpHeader, more: HttpHeader*): (RouteTest.this)#RequestTransformer
    Definition Classes
    RequestBuilding
  15. def charset: HttpCharset
  16. def charsetOption: Option[HttpCharset]
  17. def check[T](body: => T): ((RouteTest.this)#RouteTestResult) => T
  18. def chunks: Seq[ChunkStreamPart]
  19. def chunksStream: Source[ChunkStreamPart, Any]
  20. def cleanUp(): Unit
  21. def closingExtension: String
  22. def contentType: ContentType
  23. def entityAs[T](implicit arg0: FromEntityUnmarshaller[T], arg1: ClassTag[T], timeout: Duration = 1.second): T
  24. implicit def executor: ExecutionContextExecutor
  25. def expectWebSocketUpgradeWithProtocol(body: (String) => Unit): Unit

    Asserts that the received response is a WebSocket upgrade response and the extracts the chosen subprotocol and passes it to the handler.

  26. def handled: Boolean
  27. def header(name: String): Option[HttpHeader]
  28. def header[T >: Null <: HttpHeader](implicit arg0: ClassTag[T]): Option[T]
  29. implicit def header2AddHeader(header: HttpHeader): (RouteTest.this)#RequestTransformer
    Definition Classes
    RequestBuilding
  30. def headers: Seq[HttpHeader]
  31. def isWebSocketUpgrade: Boolean
  32. def logRequest(logFun: (HttpRequest) => Unit): (HttpRequest) => HttpRequest
    Definition Classes
    RequestBuilding
  33. def logRequest(log: LoggingAdapter, level: LogLevel = Logging.DebugLevel): (HttpRequest) => HttpRequest
    Definition Classes
    RequestBuilding
  34. def logValue[T](logFun: (T) => Unit): (T) => T
    Definition Classes
    TransformerPipelineSupport
  35. def logValue[T](log: LoggingAdapter, level: LogLevel = Logging.DebugLevel): (T) => T
    Definition Classes
    TransformerPipelineSupport
  36. def mapHeaders(f: (Seq[HttpHeader]) => Seq[HttpHeader]): (RouteTest.this)#RequestTransformer
    Definition Classes
    RequestBuilding
  37. def marshal[T](value: T)(implicit arg0: ToEntityMarshaller[T], ec: ExecutionContext, mat: Materializer): Strict
    Definition Classes
    MarshallingTestUtils
  38. def marshalToResponse[T](value: T, request: HttpRequest = HttpRequest())(implicit arg0: ToResponseMarshaller[T], ec: ExecutionContext): HttpResponse
    Definition Classes
    MarshallingTestUtils
  39. def marshalToResponseForRequestAccepting[T](value: T, mediaRanges: MediaRange*)(implicit arg0: ToResponseMarshaller[T], ec: ExecutionContext): HttpResponse
    Definition Classes
    MarshallingTestUtils
  40. def marshallingTimeout: FiniteDuration
    Definition Classes
    MarshallingTestUtils
  41. implicit val materializer: Materializer
  42. def mediaType: MediaType
  43. def rejection: Rejection
  44. def rejections: Seq[Rejection]
  45. def removeHeader(clazz: Class[_]): (RouteTest.this)#RequestTransformer
    Definition Classes
    RequestBuilding
  46. def removeHeader[T <: HttpHeader](implicit arg0: ClassTag[T]): (RouteTest.this)#RequestTransformer
    Definition Classes
    RequestBuilding
  47. def removeHeader(headerName: String): (RouteTest.this)#RequestTransformer
    Definition Classes
    RequestBuilding
  48. def removeHeaders(names: String*): (RouteTest.this)#RequestTransformer
    Definition Classes
    RequestBuilding
  49. def response: HttpResponse
  50. def responseAs[T](implicit arg0: FromResponseUnmarshaller[T], arg1: ClassTag[T], timeout: Duration = 1.second): T
  51. def responseEntity: HttpEntity
  52. def runRoute: ((RouteTest.this)#RouteTestResult) => (RouteTest.this)#RouteTestResult

    A dummy that can be used as ~> runRoute to run the route but without blocking for the result.

    A dummy that can be used as ~> runRoute to run the route but without blocking for the result. The result of the pipeline is the result that can later be checked with check. See the "separate running route from checking" example from ScalatestRouteTestSpec.scala.

  53. def status: StatusCode
  54. implicit val system: ActorSystem
  55. def testConfig: Config
    Definition Classes
    RouteTestMarshallingTestUtils
  56. def testConfigSource: String
  57. def trailer: Seq[HttpHeader]
  58. def unmarshal[T](entity: HttpEntity)(implicit arg0: FromEntityUnmarshaller[T], ec: ExecutionContext, mat: Materializer): Try[T]
    Definition Classes
    MarshallingTestUtils
  59. def unmarshalValue[T](entity: HttpEntity)(implicit arg0: FromEntityUnmarshaller[T], ec: ExecutionContext, mat: Materializer): T
    Definition Classes
    MarshallingTestUtils
  60. object DefaultHostInfo extends Serializable
  61. object TildeArrow
  62. object TildeBangArrow

Shadowed Implicit Value Members

  1. def ~>[B](f: (RouteTest) => B): B
    Implicit
    This member is added by an implicit conversion from RouteTest toclient.RequestBuilding.WithTransformation[RouteTest] performed by method WithTransformation in akka.http.scaladsl.client.TransformerPipelineSupport.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (routeTest: client.RequestBuilding.WithTransformation[RouteTest]).~>(f)
    Definition Classes
    WithTransformation
  2. def ~>[B](f: (RouteTest) => B): B
    Implicit
    This member is added by an implicit conversion from RouteTest toclient.TransformerPipelineSupport.WithTransformation[RouteTest] performed by method WithTransformation in akka.http.scaladsl.client.TransformerPipelineSupport.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (routeTest: client.TransformerPipelineSupport.WithTransformation[RouteTest]).~>(f)
    Definition Classes
    WithTransformation