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. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from RouteTest toany2stringadd[RouteTest] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (RouteTest, B)
    Implicit
    This member is added by an implicit conversion from RouteTest toArrowAssoc[RouteTest] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. val Delete: (RouteTest.this)#RequestBuilder
    Definition Classes
    RequestBuilding
  7. val Get: (RouteTest.this)#RequestBuilder
    Definition Classes
    RequestBuilding
  8. val Head: (RouteTest.this)#RequestBuilder
    Definition Classes
    RequestBuilding
  9. val Options: (RouteTest.this)#RequestBuilder
    Definition Classes
    RequestBuilding
  10. val Patch: (RouteTest.this)#RequestBuilder
    Definition Classes
    RequestBuilding
  11. val Post: (RouteTest.this)#RequestBuilder
    Definition Classes
    RequestBuilding
  12. val Put: (RouteTest.this)#RequestBuilder
    Definition Classes
    RequestBuilding
  13. def WS(uri: Uri, clientSideHandler: Flow[Message, Message, Any], subprotocols: Seq[String] = Nil)(implicit materializer: Materializer): HttpRequest
    Definition Classes
    WSTestRequestBuilding
    Annotations
    @nowarn()
  14. def actorSystemNameFrom(clazz: Class[_]): String
  15. def addAttribute[T](key: AttributeKey[T], value: T): (RouteTest.this)#RequestTransformer
    Definition Classes
    RequestBuilding
  16. def addCredentials(credentials: HttpCredentials): (RouteTest.this)#RequestTransformer
    Definition Classes
    RequestBuilding
  17. def addHeader(headerName: String, headerValue: String): (RouteTest.this)#RequestTransformer
    Definition Classes
    RequestBuilding
  18. def addHeader(header: HttpHeader): (RouteTest.this)#RequestTransformer
    Definition Classes
    RequestBuilding
  19. def addHeaders(first: HttpHeader, more: HttpHeader*): (RouteTest.this)#RequestTransformer
    Definition Classes
    RequestBuilding
  20. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  21. def charset: HttpCharset
  22. def charsetOption: Option[HttpCharset]
  23. def check[T](body: => T): ((RouteTest.this)#RouteTestResult) => T
  24. def chunks: Seq[ChunkStreamPart]
  25. def chunksStream: Source[ChunkStreamPart, Any]
  26. def cleanUp(): Unit
  27. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  28. def closingExtension: String
  29. def contentType: ContentType
  30. def createActorSystem(): ActorSystem

    Override to supply a custom ActorSystem

    Override to supply a custom ActorSystem

    Attributes
    protected
  31. def ensuring(cond: (RouteTest) => Boolean, msg: => Any): RouteTest
    Implicit
    This member is added by an implicit conversion from RouteTest toEnsuring[RouteTest] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  32. def ensuring(cond: (RouteTest) => Boolean): RouteTest
    Implicit
    This member is added by an implicit conversion from RouteTest toEnsuring[RouteTest] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  33. def ensuring(cond: Boolean, msg: => Any): RouteTest
    Implicit
    This member is added by an implicit conversion from RouteTest toEnsuring[RouteTest] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  34. def ensuring(cond: Boolean): RouteTest
    Implicit
    This member is added by an implicit conversion from RouteTest toEnsuring[RouteTest] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  35. def entityAs[T](implicit arg0: FromEntityUnmarshaller[T], arg1: ClassTag[T], timeout: Duration = 1.second): T
  36. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  37. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  38. implicit def executor: ExecutionContextExecutor
  39. 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.

  40. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  41. def handled: Boolean
  42. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  43. def header(name: String): Option[HttpHeader]
  44. def header[T >: Null <: HttpHeader](implicit arg0: ClassTag[T]): Option[T]
  45. implicit def header2AddHeader(header: HttpHeader): (RouteTest.this)#RequestTransformer
    Definition Classes
    RequestBuilding
  46. def headers: Seq[HttpHeader]
  47. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  48. def isWebSocketUpgrade: Boolean
  49. def logRequest(logFun: (HttpRequest) => Unit): (HttpRequest) => HttpRequest
    Definition Classes
    RequestBuilding
  50. def logRequest(log: LoggingAdapter, level: LogLevel = Logging.DebugLevel): (HttpRequest) => HttpRequest
    Definition Classes
    RequestBuilding
  51. def logValue[T](logFun: (T) => Unit): (T) => T
    Definition Classes
    TransformerPipelineSupport
  52. def logValue[T](log: LoggingAdapter, level: LogLevel = Logging.DebugLevel): (T) => T
    Definition Classes
    TransformerPipelineSupport
  53. def mapHeaders(f: (Seq[HttpHeader]) => Seq[HttpHeader]): (RouteTest.this)#RequestTransformer
    Definition Classes
    RequestBuilding
  54. def marshal[T](value: T)(implicit arg0: ToEntityMarshaller[T], ec: ExecutionContext, mat: Materializer): Strict
    Definition Classes
    MarshallingTestUtils
  55. def marshalToResponse[T](value: T, request: HttpRequest = HttpRequest())(implicit arg0: ToResponseMarshaller[T], ec: ExecutionContext): HttpResponse
    Definition Classes
    MarshallingTestUtils
  56. def marshalToResponseForRequestAccepting[T](value: T, mediaRanges: MediaRange*)(implicit arg0: ToResponseMarshaller[T], ec: ExecutionContext): HttpResponse
    Definition Classes
    MarshallingTestUtils
  57. def marshallingTimeout: FiniteDuration
    Definition Classes
    MarshallingTestUtils
  58. implicit val materializer: Materializer
  59. def mediaType: MediaType
  60. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  61. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  62. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  63. def rejection: Rejection
  64. def rejections: Seq[Rejection]
  65. def removeHeader(clazz: Class[_]): (RouteTest.this)#RequestTransformer
    Definition Classes
    RequestBuilding
  66. def removeHeader[T <: HttpHeader](implicit arg0: ClassTag[T]): (RouteTest.this)#RequestTransformer
    Definition Classes
    RequestBuilding
  67. def removeHeader(headerName: String): (RouteTest.this)#RequestTransformer
    Definition Classes
    RequestBuilding
  68. def removeHeaders(names: String*): (RouteTest.this)#RequestTransformer
    Definition Classes
    RequestBuilding
  69. def response: HttpResponse
  70. def responseAs[T](implicit arg0: FromResponseUnmarshaller[T], arg1: ClassTag[T], timeout: Duration = 1.second): T
  71. def responseEntity: HttpEntity
  72. 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.

  73. def status: StatusCode
  74. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  75. implicit val system: ActorSystem
  76. def testConfig: Config
    Definition Classes
    RouteTestMarshallingTestUtils
  77. def testConfigSource: String
  78. def toString(): String
    Definition Classes
    AnyRef → Any
  79. def trailer: Seq[HttpHeader]
  80. def unmarshal[T](entity: HttpEntity)(implicit arg0: FromEntityUnmarshaller[T], ec: ExecutionContext, mat: Materializer): Try[T]
    Definition Classes
    MarshallingTestUtils
  81. def unmarshalValue[T](entity: HttpEntity)(implicit arg0: FromEntityUnmarshaller[T], ec: ExecutionContext, mat: Materializer): T
    Definition Classes
    MarshallingTestUtils
  82. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  83. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  84. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  85. object DefaultHostInfo extends Serializable
  86. object TildeArrow
  87. 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

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

  2. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from RouteTest toStringFormat[RouteTest] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  3. def [B](y: B): (RouteTest, B)
    Implicit
    This member is added by an implicit conversion from RouteTest toArrowAssoc[RouteTest] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from MarshallingTestUtils

Inherited from WSTestRequestBuilding

Inherited from RequestBuilding

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion WithTransformation fromRouteTest to client.RequestBuilding.WithTransformation[RouteTest]

Inherited by implicit conversion WithTransformation fromRouteTest to client.TransformerPipelineSupport.WithTransformation[RouteTest]

Inherited by implicit conversion any2stringadd fromRouteTest to any2stringadd[RouteTest]

Inherited by implicit conversion StringFormat fromRouteTest to StringFormat[RouteTest]

Inherited by implicit conversion Ensuring fromRouteTest to Ensuring[RouteTest]

Inherited by implicit conversion ArrowAssoc fromRouteTest to ArrowAssoc[RouteTest]

Ungrouped