Packages

t

org.apache.pekko.http.scaladsl.testkit

ScalatestRouteTest

trait ScalatestRouteTest extends RouteTest with Scalatest with ScalatestUtils

Self Type
ScalatestRouteTest with Suite
Source
ScalatestUtils.scala
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ScalatestRouteTest
  2. ScalatestUtils
  3. Scalatest
  4. BeforeAndAfterAll
  5. SuiteMixin
  6. TestFrameworkInterface
  7. RouteTest
  8. MarshallingTestUtils
  9. RouteTestResultComponent
  10. WSTestRequestBuilding
  11. RequestBuilding
  12. TransformerPipelineSupport
  13. AnyRef
  14. 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
    Definition Classes
    RouteTest
  5. abstract class TildeArrow[A, B] extends AnyRef
    Definition Classes
    RouteTest
  6. abstract class TildeBangArrow[A, B] extends AnyRef
    Definition Classes
    RouteTest
  7. implicit class WithTransformation2 extends AnyRef
    Definition Classes
    RouteTest
  8. 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
  9. type RequestTransformer = (HttpRequest) => HttpRequest
    Definition Classes
    RequestBuilding

Abstract Value Members

  1. abstract def expectedTestCount(filter: Filter): Int
    Definition Classes
    SuiteMixin
  2. abstract def nestedSuites: IndexedSeq[Suite]
    Definition Classes
    SuiteMixin
  3. abstract def rerunner: Option[String]
    Definition Classes
    SuiteMixin
  4. abstract def runNestedSuites(args: Args): Status
    Attributes
    protected
    Definition Classes
    SuiteMixin
  5. abstract def runTest(testName: String, args: Args): Status
    Attributes
    protected
    Definition Classes
    SuiteMixin
  6. abstract def runTests(testName: Option[String], args: Args): Status
    Attributes
    protected
    Definition Classes
    SuiteMixin
  7. abstract def suiteId: String
    Definition Classes
    SuiteMixin
  8. abstract def suiteName: String
    Definition Classes
    SuiteMixin
  9. abstract def tags: Map[String, Set[String]]
    Definition Classes
    SuiteMixin
  10. abstract def testDataFor(testName: String, theConfigMap: ConfigMap): TestData
    Definition Classes
    SuiteMixin
  11. abstract def testNames: Set[String]
    Definition Classes
    SuiteMixin
  12. abstract val styleName: String
    Definition Classes
    SuiteMixin
    Annotations
    @deprecated
    Deprecated

    (Since version 3.1.0) The styleName lifecycle method has been deprecated and will be removed in a future version of ScalaTest with no replacement.

Concrete Value Members

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

    Override to supply a custom ActorSystem

    Override to supply a custom ActorSystem

    Attributes
    protected
    Definition Classes
    RouteTest
  36. def ensuring(cond: (ScalatestRouteTest) => Boolean, msg: => Any): ScalatestRouteTest
    Implicit
    This member is added by an implicit conversion from ScalatestRouteTest toEnsuring[ScalatestRouteTest] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  37. def ensuring(cond: (ScalatestRouteTest) => Boolean): ScalatestRouteTest
    Implicit
    This member is added by an implicit conversion from ScalatestRouteTest toEnsuring[ScalatestRouteTest] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  38. def ensuring(cond: Boolean, msg: => Any): ScalatestRouteTest
    Implicit
    This member is added by an implicit conversion from ScalatestRouteTest toEnsuring[ScalatestRouteTest] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  39. def ensuring(cond: Boolean): ScalatestRouteTest
    Implicit
    This member is added by an implicit conversion from ScalatestRouteTest toEnsuring[ScalatestRouteTest] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  40. def entityAs[T](implicit arg0: FromEntityUnmarshaller[T], arg1: ClassTag[T], timeout: Duration = 1.second): T
    Definition Classes
    RouteTest
  41. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  42. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  43. def evaluateTo[T](value: T): Matcher[Future[T]]
    Definition Classes
    ScalatestUtils
  44. implicit def executor: ExecutionContextExecutor
    Definition Classes
    RouteTest
  45. 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.

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

    Definition Classes
    RouteTest
  46. def failTest(msg: String): Nothing
    Definition Classes
    ScalatestTestFrameworkInterface
  47. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  48. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  49. def handled: Boolean
    Definition Classes
    RouteTest
  50. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  51. def haveFailedWith(t: Throwable): Matcher[Future[_]]
    Definition Classes
    ScalatestUtils
  52. def header(name: String): Option[HttpHeader]
    Definition Classes
    RouteTest
  53. def header[T >: Null <: HttpHeader](implicit arg0: ClassTag[T]): Option[T]
    Definition Classes
    RouteTest
  54. implicit def header2AddHeader(header: HttpHeader): (ScalatestRouteTest.this)#RequestTransformer
    Definition Classes
    RequestBuilding
  55. def headers: Seq[HttpHeader]
    Definition Classes
    RouteTest
  56. val invokeBeforeAllAndAfterAllEvenIfNoTestsAreExpected: Boolean
    Definition Classes
    BeforeAndAfterAll
  57. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  58. def isWebSocketUpgrade: Boolean
    Definition Classes
    RouteTest
  59. def logRequest(logFun: (HttpRequest) => Unit): (HttpRequest) => HttpRequest
    Definition Classes
    RequestBuilding
  60. def logRequest(log: LoggingAdapter, level: LogLevel = Logging.DebugLevel): (HttpRequest) => HttpRequest
    Definition Classes
    RequestBuilding
  61. def logValue[T](logFun: (T) => Unit): (T) => T
    Definition Classes
    TransformerPipelineSupport
  62. def logValue[T](log: LoggingAdapter, level: LogLevel = Logging.DebugLevel): (T) => T
    Definition Classes
    TransformerPipelineSupport
  63. def mapHeaders(f: (Seq[HttpHeader]) => Seq[HttpHeader]): (ScalatestRouteTest.this)#RequestTransformer
    Definition Classes
    RequestBuilding
  64. def marshal[T](value: T)(implicit arg0: ToEntityMarshaller[T], ec: ExecutionContext, mat: Materializer): Strict
    Definition Classes
    MarshallingTestUtils
  65. def marshalToResponse[T](value: T, request: HttpRequest = HttpRequest())(implicit arg0: ToResponseMarshaller[T], ec: ExecutionContext): HttpResponse
    Definition Classes
    MarshallingTestUtils
  66. def marshalToResponseForRequestAccepting[T](value: T, mediaRanges: MediaRange*)(implicit arg0: ToResponseMarshaller[T], ec: ExecutionContext): HttpResponse
    Definition Classes
    MarshallingTestUtils
  67. def marshallingTimeout: FiniteDuration
    Definition Classes
    MarshallingTestUtils
  68. implicit val materializer: Materializer
    Definition Classes
    RouteTest
  69. def mediaType: MediaType
    Definition Classes
    RouteTest
  70. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  71. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  72. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  73. def rejection: Rejection
    Definition Classes
    RouteTest
  74. def rejections: Seq[Rejection]
    Definition Classes
    RouteTest
  75. def removeHeader(clazz: Class[_]): (ScalatestRouteTest.this)#RequestTransformer
    Definition Classes
    RequestBuilding
  76. def removeHeader[T <: HttpHeader](implicit arg0: ClassTag[T]): (ScalatestRouteTest.this)#RequestTransformer
    Definition Classes
    RequestBuilding
  77. def removeHeader(headerName: String): (ScalatestRouteTest.this)#RequestTransformer
    Definition Classes
    RequestBuilding
  78. def removeHeaders(names: String*): (ScalatestRouteTest.this)#RequestTransformer
    Definition Classes
    RequestBuilding
  79. def response: HttpResponse
    Definition Classes
    RouteTest
  80. def responseAs[T](implicit arg0: FromResponseUnmarshaller[T], arg1: ClassTag[T], timeout: Duration = 1.second): T
    Definition Classes
    RouteTest
  81. def responseEntity: HttpEntity
    Definition Classes
    RouteTest
  82. def run(testName: Option[String], args: Args): Status
    Definition Classes
    BeforeAndAfterAll → SuiteMixin
  83. def runRoute: ((ScalatestRouteTest.this)#RouteTestResult) => (ScalatestRouteTest.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.

    Definition Classes
    RouteTest
  84. def status: StatusCode
    Definition Classes
    RouteTest
  85. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  86. implicit val system: ActorSystem
    Definition Classes
    RouteTest
  87. def testConfig: Config
    Definition Classes
    RouteTestMarshallingTestUtils
  88. def testConfigSource: String
    Definition Classes
    RouteTest
  89. val testExceptionHandler: ExceptionHandler
    Definition Classes
    ScalatestTestFrameworkInterface
  90. def toString(): String
    Definition Classes
    AnyRef → Any
  91. def trailer: Seq[HttpHeader]
    Definition Classes
    RouteTest
  92. def unmarshal[T](entity: HttpEntity)(implicit arg0: FromEntityUnmarshaller[T], ec: ExecutionContext, mat: Materializer): Try[T]
    Definition Classes
    MarshallingTestUtils
  93. def unmarshalTo[T](value: Try[T])(implicit arg0: FromEntityUnmarshaller[T], ec: ExecutionContext, mat: Materializer): Matcher[HttpEntity]
    Definition Classes
    ScalatestUtils
  94. def unmarshalToValue[T](value: T)(implicit arg0: FromEntityUnmarshaller[T], ec: ExecutionContext, mat: Materializer): Matcher[HttpEntity]
    Definition Classes
    ScalatestUtils
  95. def unmarshalValue[T](entity: HttpEntity)(implicit arg0: FromEntityUnmarshaller[T], ec: ExecutionContext, mat: Materializer): T
    Definition Classes
    MarshallingTestUtils
  96. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  97. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  98. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Shadowed Implicit Value Members

  1. def ~>[B](f: (ScalatestRouteTest) => B): B
    Implicit
    This member is added by an implicit conversion from ScalatestRouteTest toclient.RequestBuilding.WithTransformation[ScalatestRouteTest] performed by method WithTransformation in org.apache.pekko.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:
    (scalatestRouteTest: client.RequestBuilding.WithTransformation[ScalatestRouteTest]).~>(f)
    Definition Classes
    WithTransformation
  2. def ~>[B](f: (ScalatestRouteTest) => B): B
    Implicit
    This member is added by an implicit conversion from ScalatestRouteTest toclient.TransformerPipelineSupport.WithTransformation[ScalatestRouteTest] performed by method WithTransformation in org.apache.pekko.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:
    (scalatestRouteTest: client.TransformerPipelineSupport.WithTransformation[ScalatestRouteTest]).~>(f)
    Definition Classes
    WithTransformation

Deprecated Value Members

  1. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from ScalatestRouteTest toStringFormat[ScalatestRouteTest] 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.

  2. def [B](y: B): (ScalatestRouteTest, B)
    Implicit
    This member is added by an implicit conversion from ScalatestRouteTest toArrowAssoc[ScalatestRouteTest] 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 ScalatestUtils

Inherited from Scalatest

Inherited from BeforeAndAfterAll

Inherited from SuiteMixin

Inherited from TestFrameworkInterface

Inherited from RouteTest

Inherited from MarshallingTestUtils

Inherited from WSTestRequestBuilding

Inherited from RequestBuilding

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion WithTransformation fromScalatestRouteTest to client.RequestBuilding.WithTransformation[ScalatestRouteTest]

Inherited by implicit conversion WithTransformation fromScalatestRouteTest to client.TransformerPipelineSupport.WithTransformation[ScalatestRouteTest]

Inherited by implicit conversion any2stringadd fromScalatestRouteTest to any2stringadd[ScalatestRouteTest]

Inherited by implicit conversion StringFormat fromScalatestRouteTest to StringFormat[ScalatestRouteTest]

Inherited by implicit conversion Ensuring fromScalatestRouteTest to Ensuring[ScalatestRouteTest]

Inherited by implicit conversion ArrowAssoc fromScalatestRouteTest to ArrowAssoc[ScalatestRouteTest]

Ungrouped