spray.testkit

RouteTest

trait RouteTest extends RequestBuilding with RouteResultComponent

Self Type
RouteTest with TestFrameworkInterface
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RouteTest
  2. RouteResultComponent
  3. RequestBuilding
  4. TransformerPipelineSupport
  5. AnyRef
  6. Any
  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 RouteResult extends AnyRef

    A receptacle for the response, rejections and potentially generated response chunks created by a route.

  5. case class RouteTestTimeout(duration: FiniteDuration) extends Product with Serializable

    Definition Classes
    RouteResultComponent
  6. abstract class TildeArrow[A, B] extends AnyRef

  7. implicit class WithTransformation[A] extends AnyRef

    Definition Classes
    TransformerPipelineSupport
  8. implicit class WithTransformation2 extends AnyRef

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

    Definition Classes
    TransformerPipelineSupport

Abstract Value Members

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

    Definition Classes
    RouteResultComponent

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. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  6. object DefaultHostInfo extends Serializable

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

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

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

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

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

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

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

    Definition Classes
    RequestBuilding
  14. object RouteTestTimeout extends Serializable

    Definition Classes
    RouteResultComponent
  15. object TildeArrow

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

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

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

    Definition Classes
    RequestBuilding
  19. def addHeaders(headers: List[HttpHeader]): (HttpRequest) ⇒ HttpRequest

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

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

    Definition Classes
    Any
  22. def body: NonEmpty

  23. def charset: HttpCharset

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

  25. def chunks: List[MessageChunk]

  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 encode(encoder: Encoder): (HttpRequest) ⇒ HttpRequest

    Definition Classes
    RequestBuilding
  33. def entity: HttpEntity

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

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

    Definition Classes
    AnyRef → Any
  36. implicit def executor: MessageDispatcher

  37. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  38. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  39. def handled: Boolean

  40. def hashCode(): Int

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

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

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

    Definition Classes
    RequestBuilding
  44. def headers: List[HttpHeader]

  45. final def isInstanceOf[T0]: Boolean

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

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

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

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

    Definition Classes
    TransformerPipelineSupport
  50. def mapHeaders(f: (List[HttpHeader]) ⇒ List[HttpHeader]): (HttpRequest) ⇒ HttpRequest

    Definition Classes
    RequestBuilding
  51. def mediaType: MediaType

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

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

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

    Definition Classes
    AnyRef
  55. def rejection: Rejection

  56. def rejections: List[Rejection]

  57. def removeHeader[T <: HttpHeader](implicit arg0: ClassTag[T]): (HttpRequest) ⇒ HttpRequest

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

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

    Definition Classes
    RequestBuilding
  60. def response: HttpResponse

  61. def responseAs[T](implicit arg0: FromResponseUnmarshaller[T], arg1: ClassTag[T]): T

  62. def runRoute: ((RouteTest.this)#RouteResult) ⇒ (RouteTest.this)#RouteResult

    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.

  63. def status: StatusCode

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

    Definition Classes
    AnyRef
  65. implicit val system: ActorSystem

  66. def testConfig: Config

  67. def testConfigSource: String

  68. def toString(): String

    Definition Classes
    AnyRef → Any
  69. def trailer: List[HttpHeader]

  70. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def entityAs[T](implicit arg0: Unmarshaller[T], arg1: ClassTag[T]): T

    Annotations
    @deprecated
    Deprecated

    (Since version 1.0/1.1/1.2-RC1) Use responseAs instead.

Inherited from RouteResultComponent

Inherited from RequestBuilding

Inherited from AnyRef

Inherited from Any

Ungrouped