Trait

akka.http.scaladsl.testkit

Specs2RouteTest

Related Doc: package testkit

Permalink

trait Specs2RouteTest extends RouteTest with Specs2 with Specs2Utils

Source
Specs2Utils.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Specs2RouteTest
  2. Specs2Utils
  3. Specs2
  4. AfterAll
  5. FragmentsFactory
  6. SpecificationStructure
  7. ContextualSpecificationStructure
  8. TestFrameworkInterface
  9. RouteTest
  10. MarshallingTestUtils
  11. RouteTestResultComponent
  12. WSTestRequestBuilding
  13. RequestBuilding
  14. TransformerPipelineSupport
  15. AnyRef
  16. 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 is: SpecStructure

    Permalink
    Definition Classes
    SpecificationStructure

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 Specs2RouteTest to any2stringadd[Specs2RouteTest] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Specs2RouteTest, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Specs2RouteTest to ArrowAssoc[Specs2RouteTest] 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: RequestBuilder

    Permalink
    Definition Classes
    RequestBuilding
  8. val Get: RequestBuilder

    Permalink
    Definition Classes
    RequestBuilding
  9. val Head: RequestBuilder

    Permalink
    Definition Classes
    RequestBuilding
  10. val Options: RequestBuilder

    Permalink
    Definition Classes
    RequestBuilding
  11. val Patch: RequestBuilder

    Permalink
    Definition Classes
    RequestBuilding
  12. val Post: RequestBuilder

    Permalink
    Definition Classes
    RequestBuilding
  13. val Put: 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): RequestTransformer

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

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

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

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

    Permalink
    Definition Classes
    Specs2 → AfterAll
  22. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  23. def charset: HttpCharset

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

    Permalink
    Definition Classes
    RouteTest
  25. def check[T](body: ⇒ T): (RouteTestResult) ⇒ T

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

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

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

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

    Permalink
    Definition Classes
    RouteTest
  30. def contentType: ContentType

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

    Permalink

    Override to supply a custom ActorSystem

    Override to supply a custom ActorSystem

    Attributes
    protected
    Definition Classes
    RouteTest
  32. def decorate(is: SpecStructure, env: Env): SpecStructure

    Permalink
    Definition Classes
    SpecificationStructure
  33. def ensuring(cond: (Specs2RouteTest) ⇒ Boolean, msg: ⇒ Any): Specs2RouteTest

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

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

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

    Permalink
    Implicit information
    This member is added by an implicit conversion from Specs2RouteTest to Ensuring[Specs2RouteTest] 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)(implicit ee: ExecutionEnv): Matcher[Future[T]]

    Permalink
    Definition Classes
    Specs2Utils
  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
    Specs2TestFrameworkInterface
  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 Specs2RouteTest to StringFormat[Specs2RouteTest] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  46. def fragmentFactory: FragmentFactory

    Permalink
    Attributes
    protected
    Definition Classes
    FragmentsFactory
  47. def fragments: (Env) ⇒ Fragments

    Permalink
    Definition Classes
    ContextualSpecificationStructure
  48. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  51. def haveFailedWith(t: Throwable)(implicit ee: ExecutionEnv): Matcher[Future[_]]

    Permalink
    Definition Classes
    Specs2Utils
  52. def header(name: String): Option[HttpHeader]

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

    Permalink
    Definition Classes
    RouteTest
  54. implicit def header2AddHeader(header: HttpHeader): RequestTransformer

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

    Permalink
    Definition Classes
    RouteTest
  56. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  57. def isWebSocketUpgrade: Boolean

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

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

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

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

    Permalink
    Definition Classes
    TransformerPipelineSupport
  62. def map(fs: ⇒ Fragments): Fragments

    Permalink
    Definition Classes
    AfterAll → SpecificationStructure
  63. def map(fs: ⇒ Fragments, env: Env): Fragments

    Permalink
    Definition Classes
    SpecificationStructure
  64. def map(structure: SpecStructure): SpecStructure

    Permalink
    Definition Classes
    SpecificationStructure
  65. def mapHeaders(f: (Seq[HttpHeader]) ⇒ Seq[HttpHeader]): RequestTransformer

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

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

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

    Permalink
    Definition Classes
    MarshallingTestUtils
  69. def marshallingTimeout: FiniteDuration

    Permalink
    Definition Classes
    MarshallingTestUtils
  70. implicit val materializer: ActorMaterializer

    Permalink
    Definition Classes
    RouteTest
  71. def mediaType: MediaType

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

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

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

    Permalink
    Definition Classes
    AnyRef
  75. def rejection: Rejection

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

    Permalink
    Definition Classes
    RouteTest
  77. def removeHeader(clazz: Class[_]): RequestTransformer

    Permalink
    Definition Classes
    RequestBuilding
  78. def removeHeader[T <: HttpHeader](implicit arg0: ClassTag[T]): RequestTransformer

    Permalink
    Definition Classes
    RequestBuilding
  79. def removeHeader(headerName: String): RequestTransformer

    Permalink
    Definition Classes
    RequestBuilding
  80. def removeHeaders(names: String*): RequestTransformer

    Permalink
    Definition Classes
    RequestBuilding
  81. def response: HttpResponse

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

    Permalink
    Definition Classes
    RouteTest
  83. def responseEntity: HttpEntity

    Permalink
    Definition Classes
    RouteTest
  84. def runRoute: (RouteTestResult) ⇒ 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
  85. def status: StatusCode

    Permalink
    Definition Classes
    RouteTest
  86. def structure: (Env) ⇒ SpecStructure

    Permalink
    Definition Classes
    SpecificationStructure → ContextualSpecificationStructure
  87. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  88. implicit val system: ActorSystem

    Permalink
    Definition Classes
    RouteTest
  89. def testConfig: Config

    Permalink
    Definition Classes
    RouteTestMarshallingTestUtils
  90. def testConfigSource: String

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

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

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

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

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

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

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

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

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

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

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

Shadowed Implicit Value Members

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

    Permalink
    Implicit information
    This member is added by an implicit conversion from Specs2RouteTest to client.RequestBuilding.WithTransformation[Specs2RouteTest] 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:
    (specs2RouteTest: client.RequestBuilding.WithTransformation[Specs2RouteTest]).~>(f)
    Definition Classes
    WithTransformation
  2. def ~>[B](f: (Specs2RouteTest) ⇒ B): B

    Permalink
    Implicit information
    This member is added by an implicit conversion from Specs2RouteTest to client.TransformerPipelineSupport.WithTransformation[Specs2RouteTest] 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:
    (specs2RouteTest: client.TransformerPipelineSupport.WithTransformation[Specs2RouteTest]).~>(f)
    Definition Classes
    WithTransformation

Inherited from Specs2Utils

Inherited from Specs2

Inherited from AfterAll

Inherited from FragmentsFactory

Inherited from SpecificationStructure

Inherited from TestFrameworkInterface

Inherited from RouteTest

Inherited from MarshallingTestUtils

Inherited from RouteTestResultComponent

Inherited from WSTestRequestBuilding

Inherited from RequestBuilding

Inherited from AnyRef

Inherited from Any

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

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

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

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

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

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

Ungrouped