t

akka.http.scaladsl.testkit

Specs2RouteTest

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. val Delete: RequestBuilder
    Definition Classes
    RequestBuilding
  5. val Get: RequestBuilder
    Definition Classes
    RequestBuilding
  6. val Head: RequestBuilder
    Definition Classes
    RequestBuilding
  7. val Options: RequestBuilder
    Definition Classes
    RequestBuilding
  8. val Patch: RequestBuilder
    Definition Classes
    RequestBuilding
  9. val Post: RequestBuilder
    Definition Classes
    RequestBuilding
  10. val Put: 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): RequestTransformer
    Definition Classes
    RequestBuilding
  14. def addCredentials(credentials: HttpCredentials): RequestTransformer
    Definition Classes
    RequestBuilding
  15. def addHeader(headerName: String, headerValue: String): RequestTransformer
    Definition Classes
    RequestBuilding
  16. def addHeader(header: HttpHeader): RequestTransformer
    Definition Classes
    RequestBuilding
  17. def addHeaders(first: HttpHeader, more: HttpHeader*): RequestTransformer
    Definition Classes
    RequestBuilding
  18. def afterAll(): Unit
    Definition Classes
    Specs2 → AfterAll
  19. def charset: HttpCharset
    Definition Classes
    RouteTest
  20. def charsetOption: Option[HttpCharset]
    Definition Classes
    RouteTest
  21. def check[T](body: => T): (RouteTestResult) => T
    Definition Classes
    RouteTest
  22. def chunks: Seq[ChunkStreamPart]
    Definition Classes
    RouteTest
  23. def chunksStream: Source[ChunkStreamPart, Any]
    Definition Classes
    RouteTest
  24. def cleanUp(): Unit
    Definition Classes
    RouteTest
  25. def closingExtension: String
    Definition Classes
    RouteTest
  26. def contentType: ContentType
    Definition Classes
    RouteTest
  27. def decorate(is: SpecStructure, env: Env): SpecStructure
    Definition Classes
    SpecificationStructure
  28. def entityAs[T](implicit arg0: FromEntityUnmarshaller[T], arg1: ClassTag[T], timeout: Duration = 1.second): T
    Definition Classes
    RouteTest
  29. def evaluateTo[T](value: T)(implicit ee: ExecutionEnv): Matcher[Future[T]]
    Definition Classes
    Specs2Utils
  30. implicit def executor: ExecutionContextExecutor
    Definition Classes
    RouteTest
  31. 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
  32. def failTest(msg: String): Nothing
    Definition Classes
    Specs2TestFrameworkInterface
  33. def fragments: (Env) => Fragments
    Definition Classes
    ContextualSpecificationStructure
  34. def handled: Boolean
    Definition Classes
    RouteTest
  35. def haveFailedWith(t: Throwable)(implicit ee: ExecutionEnv): Matcher[Future[_]]
    Definition Classes
    Specs2Utils
  36. def header(name: String): Option[HttpHeader]
    Definition Classes
    RouteTest
  37. def header[T >: Null <: HttpHeader](implicit arg0: ClassTag[T]): Option[T]
    Definition Classes
    RouteTest
  38. implicit def header2AddHeader(header: HttpHeader): RequestTransformer
    Definition Classes
    RequestBuilding
  39. def headers: Seq[HttpHeader]
    Definition Classes
    RouteTest
  40. def isWebSocketUpgrade: Boolean
    Definition Classes
    RouteTest
  41. def logRequest(logFun: (HttpRequest) => Unit): (HttpRequest) => HttpRequest
    Definition Classes
    RequestBuilding
  42. def logRequest(log: LoggingAdapter, level: LogLevel = Logging.DebugLevel): (HttpRequest) => HttpRequest
    Definition Classes
    RequestBuilding
  43. def logValue[T](logFun: (T) => Unit): (T) => T
    Definition Classes
    TransformerPipelineSupport
  44. def logValue[T](log: LoggingAdapter, level: LogLevel = Logging.DebugLevel): (T) => T
    Definition Classes
    TransformerPipelineSupport
  45. def map(fs: => Fragments): Fragments
    Definition Classes
    AfterAll → SpecificationStructure
  46. def map(fs: => Fragments, env: Env): Fragments
    Definition Classes
    SpecificationStructure
  47. def map(structure: SpecStructure): SpecStructure
    Definition Classes
    SpecificationStructure
  48. def mapHeaders(f: (Seq[HttpHeader]) => Seq[HttpHeader]): RequestTransformer
    Definition Classes
    RequestBuilding
  49. def marshal[T](value: T)(implicit arg0: ToEntityMarshaller[T], ec: ExecutionContext, mat: Materializer): Strict
    Definition Classes
    MarshallingTestUtils
  50. def marshalToResponse[T](value: T, request: HttpRequest = HttpRequest())(implicit arg0: ToResponseMarshaller[T], ec: ExecutionContext): HttpResponse
    Definition Classes
    MarshallingTestUtils
  51. def marshalToResponseForRequestAccepting[T](value: T, mediaRanges: MediaRange*)(implicit arg0: ToResponseMarshaller[T], ec: ExecutionContext): HttpResponse
    Definition Classes
    MarshallingTestUtils
  52. def marshallingTimeout: FiniteDuration
    Definition Classes
    MarshallingTestUtils
  53. implicit val materializer: Materializer
    Definition Classes
    RouteTest
  54. def mediaType: MediaType
    Definition Classes
    RouteTest
  55. def rejection: Rejection
    Definition Classes
    RouteTest
  56. def rejections: Seq[Rejection]
    Definition Classes
    RouteTest
  57. def removeHeader(clazz: Class[_]): RequestTransformer
    Definition Classes
    RequestBuilding
  58. def removeHeader[T <: HttpHeader](implicit arg0: ClassTag[T]): RequestTransformer
    Definition Classes
    RequestBuilding
  59. def removeHeader(headerName: String): RequestTransformer
    Definition Classes
    RequestBuilding
  60. def removeHeaders(names: String*): RequestTransformer
    Definition Classes
    RequestBuilding
  61. def response: HttpResponse
    Definition Classes
    RouteTest
  62. def responseAs[T](implicit arg0: FromResponseUnmarshaller[T], arg1: ClassTag[T], timeout: Duration = 1.second): T
    Definition Classes
    RouteTest
  63. def responseEntity: HttpEntity
    Definition Classes
    RouteTest
  64. 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
  65. def status: StatusCode
    Definition Classes
    RouteTest
  66. def structure: (Env) => SpecStructure
    Definition Classes
    SpecificationStructure → ContextualSpecificationStructure
  67. implicit val system: ActorSystem
    Definition Classes
    RouteTest
  68. def testConfig: Config
    Definition Classes
    RouteTestMarshallingTestUtils
  69. def testConfigSource: String
    Definition Classes
    RouteTest
  70. val testExceptionHandler: ExceptionHandler
    Definition Classes
    Specs2TestFrameworkInterface
  71. def trailer: Seq[HttpHeader]
    Definition Classes
    RouteTest
  72. def unmarshal[T](entity: HttpEntity)(implicit arg0: FromEntityUnmarshaller[T], ec: ExecutionContext, mat: Materializer): Try[T]
    Definition Classes
    MarshallingTestUtils
  73. def unmarshalTo[T](value: Try[T])(implicit arg0: FromEntityUnmarshaller[T], ec: ExecutionContext, mat: Materializer): Matcher[HttpEntity]
    Definition Classes
    Specs2Utils
  74. def unmarshalToValue[T](value: T)(implicit arg0: FromEntityUnmarshaller[T], ec: ExecutionContext, mat: Materializer): Matcher[HttpEntity]
    Definition Classes
    Specs2Utils
  75. 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: (Specs2RouteTest) => B): B
    Implicit
    This member is added by an implicit conversion from Specs2RouteTest toclient.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
    Implicit
    This member is added by an implicit conversion from Specs2RouteTest toclient.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