akka.http.scaladsl.testkit

ScalatestRouteTest

trait ScalatestRouteTest extends RouteTest with Scalatest with ScalatestUtils

Self Type
ScalatestRouteTest with Suite
Source
ScalatestUtils.scala
Linear Supertypes
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ScalatestRouteTest
  2. ScalatestUtils
  3. Scalatest
  4. BeforeAndAfterAll
  5. SuiteMixin
  6. TestFrameworkInterface
  7. RouteTest
  8. MarshallingTestUtils
  9. RouteTestResultComponent
  10. RequestBuilding
  11. TransformerPipelineSupport
  12. AnyRef
  13. 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

    Definition Classes
    RouteTest
  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

    Definition Classes
    RouteTest
  6. implicit class WithTransformation[A] extends AnyRef

    Definition Classes
    TransformerPipelineSupport
  7. implicit class WithTransformation2 extends AnyRef

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

    Definition Classes
    TransformerPipelineSupport

Abstract Value Members

  1. abstract def expectedTestCount(filter: Filter): Int

    Definition Classes
    SuiteMixin
  2. abstract def nestedSuites: IndexedSeq[Suite]

    Definition Classes
    SuiteMixin
  3. abstract def rerunner: Option[String]

    Definition Classes
    SuiteMixin
  4. abstract def runNestedSuites(args: Args): Status

    Attributes
    protected
    Definition Classes
    SuiteMixin
  5. abstract def runTest(testName: String, args: Args): Status

    Attributes
    protected
    Definition Classes
    SuiteMixin
  6. abstract def runTests(testName: Option[String], args: Args): Status

    Attributes
    protected
    Definition Classes
    SuiteMixin
  7. abstract val styleName: String

    Definition Classes
    SuiteMixin
  8. abstract def suiteId: String

    Definition Classes
    SuiteMixin
  9. abstract def suiteName: String

    Definition Classes
    SuiteMixin
  10. abstract def tags: Map[String, Set[String]]

    Definition Classes
    SuiteMixin
  11. abstract def testDataFor(testName: String, theConfigMap: ConfigMap): TestData

    Definition Classes
    SuiteMixin
  12. abstract def testNames: Set[String]

    Definition Classes
    SuiteMixin
  13. abstract def withFixture(test: (ScalatestRouteTest.this)#NoArgTest): Outcome

    Attributes
    protected
    Definition Classes
    SuiteMixin

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

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

    Definition Classes
    RouteTest
  9. val Delete: (ScalatestRouteTest.this)#RequestBuilder

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

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

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

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

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

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

    Definition Classes
    RequestBuilding
  16. object TildeArrow

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

    Definition Classes
    RouteTest
  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. def afterAll(): Unit

    Attributes
    protected
    Definition Classes
    Scalatest → BeforeAndAfterAll
  23. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  24. def beforeAll(): Unit

    Attributes
    protected
    Definition Classes
    BeforeAndAfterAll
  25. def charset: HttpCharset

    Definition Classes
    RouteTest
  26. def check[T](body: ⇒ T): ((ScalatestRouteTest.this)#RouteTestResult) ⇒ T

    Definition Classes
    RouteTest
  27. def chunks: Seq[ChunkStreamPart]

    Definition Classes
    RouteTest
  28. def cleanUp(): Unit

    Definition Classes
    RouteTest
  29. def clone(): AnyRef

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

    Definition Classes
    RouteTest
  31. def contentType: ContentType

    Definition Classes
    RouteTest
  32. def createActorSystem(): ActorSystem

    Override to supply a custom ActorSystem

    Override to supply a custom ActorSystem

    Attributes
    protected
    Definition Classes
    RouteTest
  33. def definedCharset: Option[HttpCharset]

    Definition Classes
    RouteTest
  34. def ensuring(cond: (ScalatestRouteTest) ⇒ Boolean, msg: ⇒ Any): ScalatestRouteTest

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

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

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

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

    Definition Classes
    RouteTest
  39. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  41. def evaluateTo[T](value: T): Matcher[Future[T]]

    Definition Classes
    ScalatestUtils
  42. implicit def executor: ExecutionContextExecutor

    Definition Classes
    RouteTest
  43. def failTest(msg: String): Nothing

    Definition Classes
    ScalatestTestFrameworkInterface
  44. def finalize(): Unit

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

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

    Definition Classes
    AnyRef → Any
  47. def handled: Boolean

    Definition Classes
    RouteTest
  48. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  49. def haveFailedWith(t: Throwable): Matcher[Future[_]]

    Definition Classes
    ScalatestUtils
  50. def header(name: String): Option[HttpHeader]

    Definition Classes
    RouteTest
  51. def header[T <: HttpHeader](implicit arg0: ClassTag[T]): Option[T]

    Definition Classes
    RouteTest
  52. implicit def header2AddHeader(header: HttpHeader): (HttpRequest) ⇒ HttpRequest

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

    Definition Classes
    RouteTest
  54. val invokeBeforeAllAndAfterAllEvenIfNoTestsAreExpected: Boolean

    Definition Classes
    BeforeAndAfterAll
  55. final def isInstanceOf[T0]: Boolean

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

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

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

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

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

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

    Definition Classes
    MarshallingTestUtils
  62. implicit val materializer: ActorMaterializer

    Definition Classes
    RouteTest
  63. def mediaType: MediaType

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

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

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

    Definition Classes
    AnyRef
  67. def rejection: Rejection

    Definition Classes
    RouteTest
  68. def rejections: Seq[Rejection]

    Definition Classes
    RouteTest
  69. def removeHeader(clazz: Class[_]): (HttpRequest) ⇒ HttpRequest

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

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

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

    Definition Classes
    RequestBuilding
  73. def response: HttpResponse

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

    Definition Classes
    RouteTest
  75. def responseEntity: HttpEntity

    Definition Classes
    RouteTest
  76. def run(testName: Option[String], args: Args): Status

    Definition Classes
    BeforeAndAfterAll → SuiteMixin
  77. def runRoute: ((ScalatestRouteTest.this)#RouteTestResult) ⇒ (ScalatestRouteTest.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.

    Definition Classes
    RouteTest
  78. def status: StatusCode

    Definition Classes
    RouteTest
  79. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  80. implicit val system: ActorSystem

    Definition Classes
    RouteTest
  81. def testConfig: Config

    Definition Classes
    RouteTest
  82. def testConfigSource: String

    Definition Classes
    RouteTest
  83. def toString(): String

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

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

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

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

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

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

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

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

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

    Implicit information
    This member is added by an implicit conversion from ScalatestRouteTest to ArrowAssoc[ScalatestRouteTest] 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 ScalatestRouteTest 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:
    (scalatestRouteTest: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from ScalatestRouteTest 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:
    (scalatestRouteTest: StringFormat).self
    Definition Classes
    StringFormat
  3. def ~>[B](f: (ScalatestRouteTest) ⇒ B): B

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

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

Deprecated Value Members

  1. def afterAll(configMap: ConfigMap): Unit

    Attributes
    protected
    Definition Classes
    BeforeAndAfterAll
    Annotations
    @deprecated
    Deprecated

    Please use the afterAll(ConfigMap) method of trait BeforeAndAfterAllConfigMap instead.

  2. def beforeAll(configMap: ConfigMap): Unit

    Attributes
    protected
    Definition Classes
    BeforeAndAfterAll
    Annotations
    @deprecated
    Deprecated

    Please use the beforeAll(ConfigMap) method of trait BeforeAndAfterAllConfigMap instead.

  3. def x: ScalatestRouteTest

    Implicit information
    This member is added by an implicit conversion from ScalatestRouteTest to ArrowAssoc[ScalatestRouteTest] 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:
    (scalatestRouteTest: ArrowAssoc[ScalatestRouteTest]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  4. def x: ScalatestRouteTest

    Implicit information
    This member is added by an implicit conversion from ScalatestRouteTest to Ensuring[ScalatestRouteTest] 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:
    (scalatestRouteTest: Ensuring[ScalatestRouteTest]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from ScalatestUtils

Inherited from Scalatest

Inherited from BeforeAndAfterAll

Inherited from SuiteMixin

Inherited from TestFrameworkInterface

Inherited from RouteTest

Inherited from MarshallingTestUtils

Inherited from RouteTestResultComponent

Inherited from RequestBuilding

Inherited from AnyRef

Inherited from Any

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

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

Inherited by implicit conversion any2stringadd from ScalatestRouteTest to StringAdd

Inherited by implicit conversion any2stringfmt from ScalatestRouteTest to StringFormat

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

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

Ungrouped