Trait

akka.http.scaladsl.testkit

ScalatestRouteTest

Related Doc: package testkit

Permalink

trait ScalatestRouteTest extends RouteTest with Scalatest with ScalatestUtils

Self Type
ScalatestRouteTest with Suite
Source
ScalatestUtils.scala
Linear Supertypes
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. All

Type Members

  1. case class DefaultHostInfo(host: Host, securedConnection: Boolean) extends Product with Serializable

    Permalink
    Definition Classes
    RouteTest
  2. class RequestBuilder extends AnyRef

    Permalink
    Definition Classes
    RequestBuilding
  3. type RequestTransformer = (HttpRequest) ⇒ HttpRequest

    Permalink
    Definition Classes
    RequestBuilding
  4. class RouteTestResult extends AnyRef

    Permalink

    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
  5. abstract class TildeArrow[A, B] extends AnyRef

    Permalink
    Definition Classes
    RouteTest
  6. implicit class WithTransformation[A] extends AnyRef

    Permalink
    Definition Classes
    TransformerPipelineSupport
  7. implicit class WithTransformation2 extends AnyRef

    Permalink
    Definition Classes
    RouteTest
  8. implicit class WithTransformerConcatenation[A, B] extends (A) ⇒ B

    Permalink
    Definition Classes
    TransformerPipelineSupport

Abstract Value Members

  1. abstract def expectedTestCount(filter: Filter): Int

    Permalink
    Definition Classes
    SuiteMixin
  2. abstract def nestedSuites: IndexedSeq[Suite]

    Permalink
    Definition Classes
    SuiteMixin
  3. abstract def rerunner: Option[String]

    Permalink
    Definition Classes
    SuiteMixin
  4. abstract def runNestedSuites(args: Args): Status

    Permalink
    Attributes
    protected
    Definition Classes
    SuiteMixin
  5. abstract def runTest(testName: String, args: Args): Status

    Permalink
    Attributes
    protected
    Definition Classes
    SuiteMixin
  6. abstract def runTests(testName: Option[String], args: Args): Status

    Permalink
    Attributes
    protected
    Definition Classes
    SuiteMixin
  7. abstract val styleName: String

    Permalink
    Definition Classes
    SuiteMixin
  8. abstract def suiteId: String

    Permalink
    Definition Classes
    SuiteMixin
  9. abstract def suiteName: String

    Permalink
    Definition Classes
    SuiteMixin
  10. abstract def tags: Map[String, Set[String]]

    Permalink
    Definition Classes
    SuiteMixin
  11. abstract def testDataFor(testName: String, theConfigMap: ConfigMap): TestData

    Permalink
    Definition Classes
    SuiteMixin
  12. abstract def testNames: Set[String]

    Permalink
    Definition Classes
    SuiteMixin

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from ScalatestRouteTest to any2stringadd[ScalatestRouteTest] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (ScalatestRouteTest, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from ScalatestRouteTest to ArrowAssoc[ScalatestRouteTest] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. object DefaultHostInfo extends Serializable

    Permalink
    Definition Classes
    RouteTest
  7. val Delete: (ScalatestRouteTest.this)#RequestBuilder

    Permalink
    Definition Classes
    RequestBuilding
  8. val Get: (ScalatestRouteTest.this)#RequestBuilder

    Permalink
    Definition Classes
    RequestBuilding
  9. val Head: (ScalatestRouteTest.this)#RequestBuilder

    Permalink
    Definition Classes
    RequestBuilding
  10. val Options: (ScalatestRouteTest.this)#RequestBuilder

    Permalink
    Definition Classes
    RequestBuilding
  11. val Patch: (ScalatestRouteTest.this)#RequestBuilder

    Permalink
    Definition Classes
    RequestBuilding
  12. val Post: (ScalatestRouteTest.this)#RequestBuilder

    Permalink
    Definition Classes
    RequestBuilding
  13. val Put: (ScalatestRouteTest.this)#RequestBuilder

    Permalink
    Definition Classes
    RequestBuilding
  14. object TildeArrow

    Permalink
    Definition Classes
    RouteTest
  15. def WS(uri: Uri, clientSideHandler: Flow[Message, Message, Any], subprotocols: Seq[String] = Nil)(implicit materializer: Materializer): HttpRequest

    Permalink
    Definition Classes
    WSTestRequestBuilding
  16. def actorSystemNameFrom(clazz: Class[_]): String

    Permalink
    Definition Classes
    RouteTest
  17. def addCredentials(credentials: HttpCredentials): (ScalatestRouteTest.this)#RequestTransformer

    Permalink
    Definition Classes
    RequestBuilding
  18. def addHeader(headerName: String, headerValue: String): (ScalatestRouteTest.this)#RequestTransformer

    Permalink
    Definition Classes
    RequestBuilding
  19. def addHeader(header: HttpHeader): (ScalatestRouteTest.this)#RequestTransformer

    Permalink
    Definition Classes
    RequestBuilding
  20. def addHeaders(first: HttpHeader, more: HttpHeader*): (ScalatestRouteTest.this)#RequestTransformer

    Permalink
    Definition Classes
    RequestBuilding
  21. def afterAll(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Scalatest → BeforeAndAfterAll
  22. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  23. def beforeAll(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    BeforeAndAfterAll
  24. def charset: HttpCharset

    Permalink
    Definition Classes
    RouteTest
  25. def charsetOption: Option[HttpCharset]

    Permalink
    Definition Classes
    RouteTest
  26. def check[T](body: ⇒ T): ((ScalatestRouteTest.this)#RouteTestResult) ⇒ T

    Permalink
    Definition Classes
    RouteTest
  27. def chunks: Seq[ChunkStreamPart]

    Permalink
    Definition Classes
    RouteTest
  28. def cleanUp(): Unit

    Permalink
    Definition Classes
    RouteTest
  29. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. def closingExtension: String

    Permalink
    Definition Classes
    RouteTest
  31. def contentType: ContentType

    Permalink
    Definition Classes
    RouteTest
  32. def createActorSystem(): ActorSystem

    Permalink

    Override to supply a custom ActorSystem

    Override to supply a custom ActorSystem

    Attributes
    protected
    Definition Classes
    RouteTest
  33. def ensuring(cond: (ScalatestRouteTest) ⇒ Boolean, msg: ⇒ Any): ScalatestRouteTest

    Permalink
    Implicit information
    This member is added by an implicit conversion from ScalatestRouteTest to Ensuring[ScalatestRouteTest] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  34. def ensuring(cond: (ScalatestRouteTest) ⇒ Boolean): ScalatestRouteTest

    Permalink
    Implicit information
    This member is added by an implicit conversion from ScalatestRouteTest to Ensuring[ScalatestRouteTest] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  35. def ensuring(cond: Boolean, msg: ⇒ Any): ScalatestRouteTest

    Permalink
    Implicit information
    This member is added by an implicit conversion from ScalatestRouteTest to Ensuring[ScalatestRouteTest] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  36. def ensuring(cond: Boolean): ScalatestRouteTest

    Permalink
    Implicit information
    This member is added by an implicit conversion from ScalatestRouteTest to Ensuring[ScalatestRouteTest] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  37. def entityAs[T](implicit arg0: FromEntityUnmarshaller[T], arg1: ClassTag[T], timeout: Duration = 1.second): T

    Permalink
    Definition Classes
    RouteTest
  38. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  39. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  40. def evaluateTo[T](value: T): Matcher[Future[T]]

    Permalink
    Definition Classes
    ScalatestUtils
  41. implicit def executor: ExecutionContextExecutor

    Permalink
    Definition Classes
    RouteTest
  42. def expectWebSocketUpgradeWithProtocol(body: (String) ⇒ Unit): Unit

    Permalink

    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
  43. def failTest(msg: String): Nothing

    Permalink
    Definition Classes
    ScalatestTestFrameworkInterface
  44. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  45. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from ScalatestRouteTest to StringFormat[ScalatestRouteTest] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  46. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  47. def handled: Boolean

    Permalink
    Definition Classes
    RouteTest
  48. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  49. def haveFailedWith(t: Throwable): Matcher[Future[_]]

    Permalink
    Definition Classes
    ScalatestUtils
  50. def header(name: String): Option[HttpHeader]

    Permalink
    Definition Classes
    RouteTest
  51. def header[T >: Null <: HttpHeader](implicit arg0: ClassTag[T]): Option[T]

    Permalink
    Definition Classes
    RouteTest
  52. implicit def header2AddHeader(header: HttpHeader): (ScalatestRouteTest.this)#RequestTransformer

    Permalink
    Definition Classes
    RequestBuilding
  53. def headers: Seq[HttpHeader]

    Permalink
    Definition Classes
    RouteTest
  54. val invokeBeforeAllAndAfterAllEvenIfNoTestsAreExpected: Boolean

    Permalink
    Definition Classes
    BeforeAndAfterAll
  55. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  56. def isWebSocketUpgrade: Boolean

    Permalink
    Definition Classes
    RouteTest
  57. def logRequest(logFun: (HttpRequest) ⇒ Unit): (HttpRequest) ⇒ HttpRequest

    Permalink
    Definition Classes
    RequestBuilding
  58. def logRequest(log: LoggingAdapter, level: LogLevel): (HttpRequest) ⇒ HttpRequest

    Permalink
    Definition Classes
    RequestBuilding
  59. def logValue[T](logFun: (T) ⇒ Unit): (T) ⇒ T

    Permalink
    Definition Classes
    TransformerPipelineSupport
  60. def logValue[T](log: LoggingAdapter, level: LogLevel): (T) ⇒ T

    Permalink
    Definition Classes
    TransformerPipelineSupport
  61. def mapHeaders(f: (Seq[HttpHeader]) ⇒ Seq[HttpHeader]): (ScalatestRouteTest.this)#RequestTransformer

    Permalink
    Definition Classes
    RequestBuilding
  62. def marshal[T](value: T)(implicit arg0: ToEntityMarshaller[T], ec: ExecutionContext, mat: Materializer): Strict

    Permalink
    Definition Classes
    MarshallingTestUtils
  63. def marshalToResponse[T](value: T, request: HttpRequest = HttpRequest())(implicit arg0: ToResponseMarshaller[T], ec: ExecutionContext, mat: Materializer): HttpResponse

    Permalink
    Definition Classes
    MarshallingTestUtils
  64. def marshalToResponseForRequestAccepting[T](value: T, mediaRanges: MediaRange*)(implicit arg0: ToResponseMarshaller[T], ec: ExecutionContext, mat: Materializer): HttpResponse

    Permalink
    Definition Classes
    MarshallingTestUtils
  65. implicit val materializer: ActorMaterializer

    Permalink
    Definition Classes
    RouteTest
  66. def mediaType: MediaType

    Permalink
    Definition Classes
    RouteTest
  67. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  68. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  69. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  70. def rejection: Rejection

    Permalink
    Definition Classes
    RouteTest
  71. def rejections: Seq[Rejection]

    Permalink
    Definition Classes
    RouteTest
  72. def removeHeader(clazz: Class[_]): (ScalatestRouteTest.this)#RequestTransformer

    Permalink
    Definition Classes
    RequestBuilding
  73. def removeHeader[T <: HttpHeader](implicit arg0: ClassTag[T]): (ScalatestRouteTest.this)#RequestTransformer

    Permalink
    Definition Classes
    RequestBuilding
  74. def removeHeader(headerName: String): (ScalatestRouteTest.this)#RequestTransformer

    Permalink
    Definition Classes
    RequestBuilding
  75. def removeHeaders(names: String*): (ScalatestRouteTest.this)#RequestTransformer

    Permalink
    Definition Classes
    RequestBuilding
  76. def response: HttpResponse

    Permalink
    Definition Classes
    RouteTest
  77. def responseAs[T](implicit arg0: FromResponseUnmarshaller[T], arg1: ClassTag[T], timeout: Duration = 1.second): T

    Permalink
    Definition Classes
    RouteTest
  78. def responseEntity: HttpEntity

    Permalink
    Definition Classes
    RouteTest
  79. def run(testName: Option[String], args: Args): Status

    Permalink
    Definition Classes
    BeforeAndAfterAll → SuiteMixin
  80. def runRoute: ((ScalatestRouteTest.this)#RouteTestResult) ⇒ (ScalatestRouteTest.this)#RouteTestResult

    Permalink

    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
  81. def status: StatusCode

    Permalink
    Definition Classes
    RouteTest
  82. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  83. implicit val system: ActorSystem

    Permalink
    Definition Classes
    RouteTest
  84. def testConfig: Config

    Permalink
    Definition Classes
    RouteTest
  85. def testConfigSource: String

    Permalink
    Definition Classes
    RouteTest
  86. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  87. def trailer: Seq[HttpHeader]

    Permalink
    Definition Classes
    RouteTest
  88. def unmarshal[T](entity: HttpEntity)(implicit arg0: FromEntityUnmarshaller[T], ec: ExecutionContext, mat: Materializer): Try[T]

    Permalink
    Definition Classes
    MarshallingTestUtils
  89. def unmarshalTo[T](value: Try[T])(implicit arg0: FromEntityUnmarshaller[T], ec: ExecutionContext, mat: Materializer): Matcher[HttpEntity]

    Permalink
    Definition Classes
    ScalatestUtils
  90. def unmarshalToValue[T](value: T)(implicit arg0: FromEntityUnmarshaller[T], ec: ExecutionContext, mat: Materializer): Matcher[HttpEntity]

    Permalink
    Definition Classes
    ScalatestUtils
  91. def unmarshalValue[T](entity: HttpEntity)(implicit arg0: FromEntityUnmarshaller[T], ec: ExecutionContext, mat: Materializer): T

    Permalink
    Definition Classes
    MarshallingTestUtils
  92. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  93. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  94. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  95. def [B](y: B): (ScalatestRouteTest, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from ScalatestRouteTest to ArrowAssoc[ScalatestRouteTest] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. def ~>[B](f: (ScalatestRouteTest) ⇒ B): B

    Permalink
    Implicit information
    This member is added by an implicit conversion from ScalatestRouteTest to client.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

    Permalink
    Implicit information
    This member is added by an implicit conversion from ScalatestRouteTest to client.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

Inherited from ScalatestUtils

Inherited from Scalatest

Inherited from BeforeAndAfterAll

Inherited from SuiteMixin

Inherited from TestFrameworkInterface

Inherited from RouteTest

Inherited from MarshallingTestUtils

Inherited from RouteTestResultComponent

Inherited from WSTestRequestBuilding

Inherited from RequestBuilding

Inherited from TransformerPipelineSupport

Inherited from AnyRef

Inherited from Any

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

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

Inherited by implicit conversion any2stringadd from ScalatestRouteTest to any2stringadd[ScalatestRouteTest]

Inherited by implicit conversion StringFormat from ScalatestRouteTest to StringFormat[ScalatestRouteTest]

Inherited by implicit conversion Ensuring from ScalatestRouteTest to Ensuring[ScalatestRouteTest]

Inherited by implicit conversion ArrowAssoc from ScalatestRouteTest to ArrowAssoc[ScalatestRouteTest]

Ungrouped