Packages

trait Specs2RouteTest extends RouteTest with Specs2 with Specs2Utils

Source
Specs2Utils.scala
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. 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 is: SpecStructure
    Definition Classes
    SpecificationStructure

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 Specs2RouteTest toany2stringadd[Specs2RouteTest] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  7. def ->[B](y: B): (Specs2RouteTest, B)
    Implicit
    This member is added by an implicit conversion from Specs2RouteTest toArrowAssoc[Specs2RouteTest] 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: RequestBuilder
    Definition Classes
    RequestBuilding
  10. val Get: RequestBuilder
    Definition Classes
    RequestBuilding
  11. val Head: RequestBuilder
    Definition Classes
    RequestBuilding
  12. val Options: RequestBuilder
    Definition Classes
    RequestBuilding
  13. val Patch: RequestBuilder
    Definition Classes
    RequestBuilding
  14. val Post: RequestBuilder
    Definition Classes
    RequestBuilding
  15. val Put: 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): RequestTransformer
    Definition Classes
    RequestBuilding
  19. def addCredentials(credentials: HttpCredentials): RequestTransformer
    Definition Classes
    RequestBuilding
  20. def addHeader(headerName: String, headerValue: String): RequestTransformer
    Definition Classes
    RequestBuilding
  21. def addHeader(header: HttpHeader): RequestTransformer
    Definition Classes
    RequestBuilding
  22. def addHeaders(first: HttpHeader, more: HttpHeader*): RequestTransformer
    Definition Classes
    RequestBuilding
  23. def afterAll(): Unit
    Definition Classes
    Specs2 → AfterAll
  24. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  25. def charset: HttpCharset
    Definition Classes
    RouteTest
  26. def charsetOption: Option[HttpCharset]
    Definition Classes
    RouteTest
  27. def check[T](body: => T): (RouteTestResult) => T
    Definition Classes
    RouteTest
  28. def chunks: Seq[ChunkStreamPart]
    Definition Classes
    RouteTest
  29. def chunksStream: Source[ChunkStreamPart, Any]
    Definition Classes
    RouteTest
  30. def cleanUp(): Unit
    Definition Classes
    RouteTest
  31. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  32. def closingExtension: String
    Definition Classes
    RouteTest
  33. def contentType: ContentType
    Definition Classes
    RouteTest
  34. def createActorSystem(): ActorSystem

    Override to supply a custom ActorSystem

    Override to supply a custom ActorSystem

    Attributes
    protected
    Definition Classes
    RouteTest
  35. def decorate(is: SpecStructure, env: Env): SpecStructure
    Definition Classes
    SpecificationStructure
  36. def ensuring(cond: (Specs2RouteTest) => Boolean, msg: => Any): Specs2RouteTest
    Implicit
    This member is added by an implicit conversion from Specs2RouteTest toEnsuring[Specs2RouteTest] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  37. def ensuring(cond: (Specs2RouteTest) => Boolean): Specs2RouteTest
    Implicit
    This member is added by an implicit conversion from Specs2RouteTest toEnsuring[Specs2RouteTest] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  38. def ensuring(cond: Boolean, msg: => Any): Specs2RouteTest
    Implicit
    This member is added by an implicit conversion from Specs2RouteTest toEnsuring[Specs2RouteTest] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  39. def ensuring(cond: Boolean): Specs2RouteTest
    Implicit
    This member is added by an implicit conversion from Specs2RouteTest toEnsuring[Specs2RouteTest] 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)(implicit ee: ExecutionEnv): Matcher[Future[T]]
    Definition Classes
    Specs2Utils
  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
    Specs2TestFrameworkInterface
  47. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  48. def fragmentFactory: FragmentFactory
    Attributes
    protected
    Definition Classes
    FragmentsFactory
  49. def fragments: (Env) => Fragments
    Definition Classes
    ContextualSpecificationStructure
  50. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  51. def handled: Boolean
    Definition Classes
    RouteTest
  52. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  53. def haveFailedWith(t: Throwable)(implicit ee: ExecutionEnv): Matcher[Future[_]]
    Definition Classes
    Specs2Utils
  54. def header(name: String): Option[HttpHeader]
    Definition Classes
    RouteTest
  55. def header[T >: Null <: HttpHeader](implicit arg0: ClassTag[T]): Option[T]
    Definition Classes
    RouteTest
  56. implicit def header2AddHeader(header: HttpHeader): RequestTransformer
    Definition Classes
    RequestBuilding
  57. def headers: Seq[HttpHeader]
    Definition Classes
    RouteTest
  58. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  59. def isWebSocketUpgrade: Boolean
    Definition Classes
    RouteTest
  60. def logRequest(logFun: (HttpRequest) => Unit): (HttpRequest) => HttpRequest
    Definition Classes
    RequestBuilding
  61. def logRequest(log: LoggingAdapter, level: LogLevel = Logging.DebugLevel): (HttpRequest) => HttpRequest
    Definition Classes
    RequestBuilding
  62. def logValue[T](logFun: (T) => Unit): (T) => T
    Definition Classes
    TransformerPipelineSupport
  63. def logValue[T](log: LoggingAdapter, level: LogLevel = Logging.DebugLevel): (T) => T
    Definition Classes
    TransformerPipelineSupport
  64. def map(fs: => Fragments): Fragments
    Definition Classes
    AfterAll → SpecificationStructure
  65. def map(fs: => Fragments, env: Env): Fragments
    Definition Classes
    SpecificationStructure
  66. def map(structure: SpecStructure): SpecStructure
    Definition Classes
    SpecificationStructure
  67. def mapHeaders(f: (Seq[HttpHeader]) => Seq[HttpHeader]): RequestTransformer
    Definition Classes
    RequestBuilding
  68. def marshal[T](value: T)(implicit arg0: ToEntityMarshaller[T], ec: ExecutionContext, mat: Materializer): Strict
    Definition Classes
    MarshallingTestUtils
  69. def marshalToResponse[T](value: T, request: HttpRequest = HttpRequest())(implicit arg0: ToResponseMarshaller[T], ec: ExecutionContext): HttpResponse
    Definition Classes
    MarshallingTestUtils
  70. def marshalToResponseForRequestAccepting[T](value: T, mediaRanges: MediaRange*)(implicit arg0: ToResponseMarshaller[T], ec: ExecutionContext): HttpResponse
    Definition Classes
    MarshallingTestUtils
  71. def marshallingTimeout: FiniteDuration
    Definition Classes
    MarshallingTestUtils
  72. implicit val materializer: Materializer
    Definition Classes
    RouteTest
  73. def mediaType: MediaType
    Definition Classes
    RouteTest
  74. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  75. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  76. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  77. def rejection: Rejection
    Definition Classes
    RouteTest
  78. def rejections: Seq[Rejection]
    Definition Classes
    RouteTest
  79. def removeHeader(clazz: Class[_]): RequestTransformer
    Definition Classes
    RequestBuilding
  80. def removeHeader[T <: HttpHeader](implicit arg0: ClassTag[T]): RequestTransformer
    Definition Classes
    RequestBuilding
  81. def removeHeader(headerName: String): RequestTransformer
    Definition Classes
    RequestBuilding
  82. def removeHeaders(names: String*): RequestTransformer
    Definition Classes
    RequestBuilding
  83. def response: HttpResponse
    Definition Classes
    RouteTest
  84. def responseAs[T](implicit arg0: FromResponseUnmarshaller[T], arg1: ClassTag[T], timeout: Duration = 1.second): T
    Definition Classes
    RouteTest
  85. def responseEntity: HttpEntity
    Definition Classes
    RouteTest
  86. def runRoute: (RouteTestResult) => 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
  87. def status: StatusCode
    Definition Classes
    RouteTest
  88. def structure: (Env) => SpecStructure
    Definition Classes
    SpecificationStructure → ContextualSpecificationStructure
  89. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  90. implicit val system: ActorSystem
    Definition Classes
    RouteTest
  91. def testConfig: Config
    Definition Classes
    RouteTestMarshallingTestUtils
  92. def testConfigSource: String
    Definition Classes
    RouteTest
  93. val testExceptionHandler: ExceptionHandler
    Definition Classes
    Specs2TestFrameworkInterface
  94. def toString(): String
    Definition Classes
    AnyRef → Any
  95. def trailer: Seq[HttpHeader]
    Definition Classes
    RouteTest
  96. def unmarshal[T](entity: HttpEntity)(implicit arg0: FromEntityUnmarshaller[T], ec: ExecutionContext, mat: Materializer): Try[T]
    Definition Classes
    MarshallingTestUtils
  97. def unmarshalTo[T](value: Try[T])(implicit arg0: FromEntityUnmarshaller[T], ec: ExecutionContext, mat: Materializer): Matcher[HttpEntity]
    Definition Classes
    Specs2Utils
  98. def unmarshalToValue[T](value: T)(implicit arg0: FromEntityUnmarshaller[T], ec: ExecutionContext, mat: Materializer): Matcher[HttpEntity]
    Definition Classes
    Specs2Utils
  99. def unmarshalValue[T](entity: HttpEntity)(implicit arg0: FromEntityUnmarshaller[T], ec: ExecutionContext, mat: Materializer): T
    Definition Classes
    MarshallingTestUtils
  100. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  101. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  102. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Shadowed Implicit Value Members

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

Deprecated Value Members

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

Inherited from Specs2

Inherited from AfterAll

Inherited from FragmentsFactory

Inherited from SpecificationStructure

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 fromSpecs2RouteTest to client.RequestBuilding.WithTransformation[Specs2RouteTest]

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

Inherited by implicit conversion any2stringadd fromSpecs2RouteTest to any2stringadd[Specs2RouteTest]

Inherited by implicit conversion StringFormat fromSpecs2RouteTest to StringFormat[Specs2RouteTest]

Inherited by implicit conversion Ensuring fromSpecs2RouteTest to Ensuring[Specs2RouteTest]

Inherited by implicit conversion ArrowAssoc fromSpecs2RouteTest to ArrowAssoc[Specs2RouteTest]

Ungrouped