t

akka.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 suiteId: String
    Definition Classes
    SuiteMixin
  5. abstract def suiteName: String
    Definition Classes
    SuiteMixin
  6. abstract def tags: Map[String, Set[String]]
    Definition Classes
    SuiteMixin
  7. abstract def testDataFor(testName: String, theConfigMap: ConfigMap): TestData
    Definition Classes
    SuiteMixin
  8. abstract def testNames: Set[String]
    Definition Classes
    SuiteMixin
  9. 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. val Delete: (ScalatestRouteTest.this)#RequestBuilder
    Definition Classes
    RequestBuilding
  5. val Get: (ScalatestRouteTest.this)#RequestBuilder
    Definition Classes
    RequestBuilding
  6. val Head: (ScalatestRouteTest.this)#RequestBuilder
    Definition Classes
    RequestBuilding
  7. val Options: (ScalatestRouteTest.this)#RequestBuilder
    Definition Classes
    RequestBuilding
  8. val Patch: (ScalatestRouteTest.this)#RequestBuilder
    Definition Classes
    RequestBuilding
  9. val Post: (ScalatestRouteTest.this)#RequestBuilder
    Definition Classes
    RequestBuilding
  10. val Put: (ScalatestRouteTest.this)#RequestBuilder
    Definition Classes
    RequestBuilding
  11. def WS(uri: Uri, clientSideHandler: Flow[Message, Message, Any], subprotocols: Seq[String] = Nil)(implicit materializer: Materializer): HttpRequest
    Definition Classes
    WSTestRequestBuilding
    Annotations
    @nowarn()
  12. def actorSystemNameFrom(clazz: Class[_]): String
    Definition Classes
    RouteTest
  13. def addAttribute[T](key: AttributeKey[T], value: T): (ScalatestRouteTest.this)#RequestTransformer
    Definition Classes
    RequestBuilding
  14. def addCredentials(credentials: HttpCredentials): (ScalatestRouteTest.this)#RequestTransformer
    Definition Classes
    RequestBuilding
  15. def addHeader(headerName: String, headerValue: String): (ScalatestRouteTest.this)#RequestTransformer
    Definition Classes
    RequestBuilding
  16. def addHeader(header: HttpHeader): (ScalatestRouteTest.this)#RequestTransformer
    Definition Classes
    RequestBuilding
  17. def addHeaders(first: HttpHeader, more: HttpHeader*): (ScalatestRouteTest.this)#RequestTransformer
    Definition Classes
    RequestBuilding
  18. def charset: HttpCharset
    Definition Classes
    RouteTest
  19. def charsetOption: Option[HttpCharset]
    Definition Classes
    RouteTest
  20. def check[T](body: => T): ((ScalatestRouteTest.this)#RouteTestResult) => T
    Definition Classes
    RouteTest
  21. def chunks: Seq[ChunkStreamPart]
    Definition Classes
    RouteTest
  22. def chunksStream: Source[ChunkStreamPart, Any]
    Definition Classes
    RouteTest
  23. def cleanUp(): Unit
    Definition Classes
    RouteTest
  24. def closingExtension: String
    Definition Classes
    RouteTest
  25. def contentType: ContentType
    Definition Classes
    RouteTest
  26. def entityAs[T](implicit arg0: FromEntityUnmarshaller[T], arg1: ClassTag[T], timeout: Duration = 1.second): T
    Definition Classes
    RouteTest
  27. def evaluateTo[T](value: T): Matcher[Future[T]]
    Definition Classes
    ScalatestUtils
  28. implicit def executor: ExecutionContextExecutor
    Definition Classes
    RouteTest
  29. 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
  30. def failTest(msg: String): Nothing
    Definition Classes
    ScalatestTestFrameworkInterface
  31. def handled: Boolean
    Definition Classes
    RouteTest
  32. def haveFailedWith(t: Throwable): Matcher[Future[_]]
    Definition Classes
    ScalatestUtils
  33. def header(name: String): Option[HttpHeader]
    Definition Classes
    RouteTest
  34. def header[T >: Null <: HttpHeader](implicit arg0: ClassTag[T]): Option[T]
    Definition Classes
    RouteTest
  35. implicit def header2AddHeader(header: HttpHeader): (ScalatestRouteTest.this)#RequestTransformer
    Definition Classes
    RequestBuilding
  36. def headers: Seq[HttpHeader]
    Definition Classes
    RouteTest
  37. val invokeBeforeAllAndAfterAllEvenIfNoTestsAreExpected: Boolean
    Definition Classes
    BeforeAndAfterAll
  38. def isWebSocketUpgrade: Boolean
    Definition Classes
    RouteTest
  39. def logRequest(logFun: (HttpRequest) => Unit): (HttpRequest) => HttpRequest
    Definition Classes
    RequestBuilding
  40. def logRequest(log: LoggingAdapter, level: LogLevel = Logging.DebugLevel): (HttpRequest) => HttpRequest
    Definition Classes
    RequestBuilding
  41. def logValue[T](logFun: (T) => Unit): (T) => T
    Definition Classes
    TransformerPipelineSupport
  42. def logValue[T](log: LoggingAdapter, level: LogLevel = Logging.DebugLevel): (T) => T
    Definition Classes
    TransformerPipelineSupport
  43. def mapHeaders(f: (Seq[HttpHeader]) => Seq[HttpHeader]): (ScalatestRouteTest.this)#RequestTransformer
    Definition Classes
    RequestBuilding
  44. def marshal[T](value: T)(implicit arg0: ToEntityMarshaller[T], ec: ExecutionContext, mat: Materializer): Strict
    Definition Classes
    MarshallingTestUtils
  45. def marshalToResponse[T](value: T, request: HttpRequest = HttpRequest())(implicit arg0: ToResponseMarshaller[T], ec: ExecutionContext): HttpResponse
    Definition Classes
    MarshallingTestUtils
  46. def marshalToResponseForRequestAccepting[T](value: T, mediaRanges: MediaRange*)(implicit arg0: ToResponseMarshaller[T], ec: ExecutionContext): HttpResponse
    Definition Classes
    MarshallingTestUtils
  47. def marshallingTimeout: FiniteDuration
    Definition Classes
    MarshallingTestUtils
  48. implicit val materializer: Materializer
    Definition Classes
    RouteTest
  49. def mediaType: MediaType
    Definition Classes
    RouteTest
  50. def rejection: Rejection
    Definition Classes
    RouteTest
  51. def rejections: Seq[Rejection]
    Definition Classes
    RouteTest
  52. def removeHeader(clazz: Class[_]): (ScalatestRouteTest.this)#RequestTransformer
    Definition Classes
    RequestBuilding
  53. def removeHeader[T <: HttpHeader](implicit arg0: ClassTag[T]): (ScalatestRouteTest.this)#RequestTransformer
    Definition Classes
    RequestBuilding
  54. def removeHeader(headerName: String): (ScalatestRouteTest.this)#RequestTransformer
    Definition Classes
    RequestBuilding
  55. def removeHeaders(names: String*): (ScalatestRouteTest.this)#RequestTransformer
    Definition Classes
    RequestBuilding
  56. def response: HttpResponse
    Definition Classes
    RouteTest
  57. def responseAs[T](implicit arg0: FromResponseUnmarshaller[T], arg1: ClassTag[T], timeout: Duration = 1.second): T
    Definition Classes
    RouteTest
  58. def responseEntity: HttpEntity
    Definition Classes
    RouteTest
  59. def run(testName: Option[String], args: Args): Status
    Definition Classes
    BeforeAndAfterAll → SuiteMixin
  60. 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
  61. def status: StatusCode
    Definition Classes
    RouteTest
  62. implicit val system: ActorSystem
    Definition Classes
    RouteTest
  63. def testConfig: Config
    Definition Classes
    RouteTestMarshallingTestUtils
  64. def testConfigSource: String
    Definition Classes
    RouteTest
  65. val testExceptionHandler: ExceptionHandler
    Definition Classes
    ScalatestTestFrameworkInterface
  66. def trailer: Seq[HttpHeader]
    Definition Classes
    RouteTest
  67. def unmarshal[T](entity: HttpEntity)(implicit arg0: FromEntityUnmarshaller[T], ec: ExecutionContext, mat: Materializer): Try[T]
    Definition Classes
    MarshallingTestUtils
  68. def unmarshalTo[T](value: Try[T])(implicit arg0: FromEntityUnmarshaller[T], ec: ExecutionContext, mat: Materializer): Matcher[HttpEntity]
    Definition Classes
    ScalatestUtils
  69. def unmarshalToValue[T](value: T)(implicit arg0: FromEntityUnmarshaller[T], ec: ExecutionContext, mat: Materializer): Matcher[HttpEntity]
    Definition Classes
    ScalatestUtils
  70. def unmarshalValue[T](entity: HttpEntity)(implicit arg0: FromEntityUnmarshaller[T], ec: ExecutionContext, mat: Materializer): T
    Definition Classes
    MarshallingTestUtils

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 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:
    (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 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:
    (scalatestRouteTest: client.TransformerPipelineSupport.WithTransformation[ScalatestRouteTest]).~>(f)
    Definition Classes
    WithTransformation