akka.http.scaladsl.testkit

RouteTest

trait RouteTest extends RequestBuilding with RouteTestResultComponent with MarshallingTestUtils

Self Type
RouteTest with TestFrameworkInterface
Source
RouteTest.scala
Linear Supertypes
Known Subclasses
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RouteTest
  2. MarshallingTestUtils
  3. RouteTestResultComponent
  4. RequestBuilding
  5. TransformerPipelineSupport
  6. AnyRef
  7. Any
Implicitly
  1. by WithTransformation
  2. by WithTransformation
  3. by any2stringadd
  4. by any2stringfmt
  5. by any2ArrowAssoc
  6. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

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

  2. class RequestBuilder extends AnyRef

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

    Definition Classes
    RequestBuilding
  4. class RouteTestResult extends AnyRef

    A receptacle for the response or rejections created by a route.

  5. abstract class TildeArrow[A, B] extends AnyRef

  6. implicit class WithTransformation[A] extends AnyRef

    Definition Classes
    TransformerPipelineSupport
  7. implicit class WithTransformation2 extends AnyRef

  8. implicit class WithTransformerConcatenation[A, B] extends (A) ⇒ B

    Definition Classes
    TransformerPipelineSupport

Abstract Value Members

  1. abstract def failTest(msg: String): Nothing

    Definition Classes
    RouteTestResultComponent

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

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

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. object DefaultHostInfo extends Serializable

  9. val Delete: (RouteTest.this)#RequestBuilder

    Definition Classes
    RequestBuilding
  10. val Get: (RouteTest.this)#RequestBuilder

    Definition Classes
    RequestBuilding
  11. val Head: (RouteTest.this)#RequestBuilder

    Definition Classes
    RequestBuilding
  12. val Options: (RouteTest.this)#RequestBuilder

    Definition Classes
    RequestBuilding
  13. val Patch: (RouteTest.this)#RequestBuilder

    Definition Classes
    RequestBuilding
  14. val Post: (RouteTest.this)#RequestBuilder

    Definition Classes
    RequestBuilding
  15. val Put: (RouteTest.this)#RequestBuilder

    Definition Classes
    RequestBuilding
  16. object TildeArrow

  17. def actorSystemNameFrom(clazz: Class[_]): String

  18. def addCredentials(credentials: HttpCredentials): (HttpRequest) ⇒ HttpRequest

    Definition Classes
    RequestBuilding
  19. def addHeader(headerName: String, headerValue: String): (HttpRequest) ⇒ HttpRequest

    Definition Classes
    RequestBuilding
  20. def addHeader(header: HttpHeader): (HttpRequest) ⇒ HttpRequest

    Definition Classes
    RequestBuilding
  21. def addHeaders(first: HttpHeader, more: HttpHeader*): (HttpRequest) ⇒ HttpRequest

    Definition Classes
    RequestBuilding
  22. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  23. def charset: HttpCharset

  24. def check[T](body: ⇒ T): ((RouteTest.this)#RouteTestResult) ⇒ T

  25. def chunks: Seq[ChunkStreamPart]

  26. def cleanUp(): Unit

  27. def clone(): AnyRef

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

  29. def contentType: ContentType

  30. def createActorSystem(): ActorSystem

    Override to supply a custom ActorSystem

    Override to supply a custom ActorSystem

    Attributes
    protected
  31. def definedCharset: Option[HttpCharset]

  32. def ensuring(cond: (RouteTest) ⇒ Boolean, msg: ⇒ Any): RouteTest

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

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

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

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

  37. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  39. implicit def executor: ExecutionContextExecutor

  40. def finalize(): Unit

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

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

    Definition Classes
    AnyRef → Any
  43. def handled: Boolean

  44. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  45. def header(name: String): Option[HttpHeader]

  46. def header[T <: HttpHeader](implicit arg0: ClassTag[T]): Option[T]

  47. implicit def header2AddHeader(header: HttpHeader): (HttpRequest) ⇒ HttpRequest

    Definition Classes
    RequestBuilding
  48. def headers: Seq[HttpHeader]

  49. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  50. def logRequest(logFun: (HttpRequest) ⇒ Unit): (HttpRequest) ⇒ HttpRequest

    Definition Classes
    RequestBuilding
  51. def logRequest(log: LoggingAdapter, level: LogLevel = Logging.DebugLevel): (HttpRequest) ⇒ HttpRequest

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

    Definition Classes
    TransformerPipelineSupport
  53. def logValue[T](log: LoggingAdapter, level: LogLevel = Logging.DebugLevel): (T) ⇒ T

    Definition Classes
    TransformerPipelineSupport
  54. def mapHeaders(f: (Seq[HttpHeader]) ⇒ Seq[HttpHeader]): (HttpRequest) ⇒ HttpRequest

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

    Definition Classes
    MarshallingTestUtils
  56. implicit val materializer: ActorMaterializer

  57. def mediaType: MediaType

  58. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  59. final def notify(): Unit

    Definition Classes
    AnyRef
  60. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  61. def rejection: Rejection

  62. def rejections: Seq[Rejection]

  63. def removeHeader(clazz: Class[_]): (HttpRequest) ⇒ HttpRequest

    Definition Classes
    RequestBuilding
  64. def removeHeader[T <: HttpHeader](implicit arg0: ClassTag[T]): (HttpRequest) ⇒ HttpRequest

    Definition Classes
    RequestBuilding
  65. def removeHeader(headerName: String): (HttpRequest) ⇒ HttpRequest

    Definition Classes
    RequestBuilding
  66. def removeHeaders(names: String*): (HttpRequest) ⇒ HttpRequest

    Definition Classes
    RequestBuilding
  67. def response: HttpResponse

  68. def responseAs[T](implicit arg0: FromResponseUnmarshaller[T], arg1: ClassTag[T], timeout: Duration = 1.second): T

  69. def responseEntity: HttpEntity

  70. def runRoute: ((RouteTest.this)#RouteTestResult) ⇒ (RouteTest.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.

  71. def status: StatusCode

  72. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  73. implicit val system: ActorSystem

  74. def testConfig: Config

  75. def testConfigSource: String

  76. def toString(): String

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

  78. def unmarshal[T](entity: HttpEntity)(implicit arg0: FromEntityUnmarshaller[T], ec: ExecutionContext, mat: Materializer): Try[T]

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

    Definition Classes
    MarshallingTestUtils
  80. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  83. def [B](y: B): (RouteTest, B)

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

Shadowed Implicit Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from RouteTest to StringAdd performed by method any2stringadd in scala.Predef.
    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:
    (routeTest: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from RouteTest to StringFormat performed by method any2stringfmt in scala.Predef.
    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:
    (routeTest: StringFormat).self
    Definition Classes
    StringFormat
  3. def ~>[B](f: (RouteTest) ⇒ B): B

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

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

Deprecated Value Members

  1. def x: RouteTest

    Implicit information
    This member is added by an implicit conversion from RouteTest to ArrowAssoc[RouteTest] performed by method any2ArrowAssoc in scala.Predef.
    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:
    (routeTest: ArrowAssoc[RouteTest]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: RouteTest

    Implicit information
    This member is added by an implicit conversion from RouteTest to Ensuring[RouteTest] performed by method any2Ensuring in scala.Predef.
    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:
    (routeTest: Ensuring[RouteTest]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from MarshallingTestUtils

Inherited from RouteTestResultComponent

Inherited from RequestBuilding

Inherited from AnyRef

Inherited from Any

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

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

Inherited by implicit conversion any2stringadd from RouteTest to StringAdd

Inherited by implicit conversion any2stringfmt from RouteTest to StringFormat

Inherited by implicit conversion any2ArrowAssoc from RouteTest to ArrowAssoc[RouteTest]

Inherited by implicit conversion any2Ensuring from RouteTest to Ensuring[RouteTest]

Ungrouped