trait ScalatestRouteTest extends RouteTest with Scalatest with ScalatestUtils
- Alphabetic
- By Inheritance
- ScalatestRouteTest
- ScalatestUtils
- Scalatest
- BeforeAndAfterAll
- SuiteMixin
- TestFrameworkInterface
- RouteTest
- MarshallingTestUtils
- RouteTestResultComponent
- WSTestRequestBuilding
- RequestBuilding
- TransformerPipelineSupport
- AnyRef
- Any
- by WithTransformation
- by WithTransformation
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Type Members
- class RequestBuilder extends AnyRef
- Definition Classes
- RequestBuilding
- implicit class WithTransformation[A] extends AnyRef
- Definition Classes
- TransformerPipelineSupport
- implicit class WithTransformerConcatenation[A, B] extends (A) => B
- Definition Classes
- TransformerPipelineSupport
- case class DefaultHostInfo(host: Host, securedConnection: Boolean) extends Product with Serializable
- Definition Classes
- RouteTest
- abstract class TildeArrow[A, B] extends AnyRef
- Definition Classes
- RouteTest
- abstract class TildeBangArrow[A, B] extends AnyRef
- Definition Classes
- RouteTest
- implicit class WithTransformation2 extends AnyRef
- Definition Classes
- RouteTest
- 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
- type RequestTransformer = (HttpRequest) => HttpRequest
- Definition Classes
- RequestBuilding
Abstract Value Members
- abstract def expectedTestCount(filter: Filter): Int
- Definition Classes
- SuiteMixin
- abstract def nestedSuites: IndexedSeq[Suite]
- Definition Classes
- SuiteMixin
- abstract def rerunner: Option[String]
- Definition Classes
- SuiteMixin
- abstract def runNestedSuites(args: Args): Status
- Attributes
- protected
- Definition Classes
- SuiteMixin
- abstract def runTest(testName: String, args: Args): Status
- Attributes
- protected
- Definition Classes
- SuiteMixin
- abstract def runTests(testName: Option[String], args: Args): Status
- Attributes
- protected
- Definition Classes
- SuiteMixin
- abstract def suiteId: String
- Definition Classes
- SuiteMixin
- abstract def suiteName: String
- Definition Classes
- SuiteMixin
- abstract def tags: Map[String, Set[String]]
- Definition Classes
- SuiteMixin
- abstract def testDataFor(testName: String, theConfigMap: ConfigMap): TestData
- Definition Classes
- SuiteMixin
- abstract def testNames: Set[String]
- Definition Classes
- SuiteMixin
- abstract val styleName: String
- Definition Classes
- SuiteMixin
- Annotations
- @deprecated
- Deprecated
(Since version 3.1.0) The styleName lifecycle method has been deprecated and will be removed in a future version of ScalaTest with no replacement.
Concrete Value Members
- object DefaultHostInfo extends Serializable
- Definition Classes
- RouteTest
- object TildeArrow
- Definition Classes
- RouteTest
- object TildeBangArrow
- Definition Classes
- RouteTest
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from ScalatestRouteTest toany2stringadd[ScalatestRouteTest] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (ScalatestRouteTest, B)
- Implicit
- This member is added by an implicit conversion from ScalatestRouteTest toArrowAssoc[ScalatestRouteTest] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val Delete: (ScalatestRouteTest.this)#RequestBuilder
- Definition Classes
- RequestBuilding
- val Get: (ScalatestRouteTest.this)#RequestBuilder
- Definition Classes
- RequestBuilding
- val Head: (ScalatestRouteTest.this)#RequestBuilder
- Definition Classes
- RequestBuilding
- val Options: (ScalatestRouteTest.this)#RequestBuilder
- Definition Classes
- RequestBuilding
- val Patch: (ScalatestRouteTest.this)#RequestBuilder
- Definition Classes
- RequestBuilding
- val Post: (ScalatestRouteTest.this)#RequestBuilder
- Definition Classes
- RequestBuilding
- val Put: (ScalatestRouteTest.this)#RequestBuilder
- Definition Classes
- RequestBuilding
- def WS(uri: Uri, clientSideHandler: Flow[Message, Message, Any], subprotocols: Seq[String] = Nil)(implicit materializer: Materializer): HttpRequest
- Definition Classes
- WSTestRequestBuilding
- def actorSystemNameFrom(clazz: Class[_]): String
- Definition Classes
- RouteTest
- def addAttribute[T](key: AttributeKey[T], value: T): (ScalatestRouteTest.this)#RequestTransformer
- Definition Classes
- RequestBuilding
- def addCredentials(credentials: HttpCredentials): (ScalatestRouteTest.this)#RequestTransformer
- Definition Classes
- RequestBuilding
- def addHeader(headerName: String, headerValue: String): (ScalatestRouteTest.this)#RequestTransformer
- Definition Classes
- RequestBuilding
- def addHeader(header: HttpHeader): (ScalatestRouteTest.this)#RequestTransformer
- Definition Classes
- RequestBuilding
- def addHeaders(first: HttpHeader, more: HttpHeader*): (ScalatestRouteTest.this)#RequestTransformer
- Definition Classes
- RequestBuilding
- def afterAll(): Unit
- Attributes
- protected
- Definition Classes
- Scalatest → BeforeAndAfterAll
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def beforeAll(): Unit
- Attributes
- protected
- Definition Classes
- BeforeAndAfterAll
- def charset: HttpCharset
- Definition Classes
- RouteTest
- def charsetOption: Option[HttpCharset]
- Definition Classes
- RouteTest
- def check[T](body: => T): ((ScalatestRouteTest.this)#RouteTestResult) => T
- Definition Classes
- RouteTest
- def chunks: Seq[ChunkStreamPart]
- Definition Classes
- RouteTest
- def chunksStream: Source[ChunkStreamPart, Any]
- Definition Classes
- RouteTest
- def cleanUp(): Unit
- Definition Classes
- RouteTest
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def closingExtension: String
- Definition Classes
- RouteTest
- def contentType: ContentType
- Definition Classes
- RouteTest
- def createActorSystem(): ActorSystem
Override to supply a custom ActorSystem
Override to supply a custom ActorSystem
- Attributes
- protected
- Definition Classes
- RouteTest
- def ensuring(cond: (ScalatestRouteTest) => Boolean, msg: => Any): ScalatestRouteTest
- Implicit
- This member is added by an implicit conversion from ScalatestRouteTest toEnsuring[ScalatestRouteTest] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (ScalatestRouteTest) => Boolean): ScalatestRouteTest
- Implicit
- This member is added by an implicit conversion from ScalatestRouteTest toEnsuring[ScalatestRouteTest] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): ScalatestRouteTest
- Implicit
- This member is added by an implicit conversion from ScalatestRouteTest toEnsuring[ScalatestRouteTest] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): ScalatestRouteTest
- Implicit
- This member is added by an implicit conversion from ScalatestRouteTest toEnsuring[ScalatestRouteTest] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def entityAs[T](implicit arg0: FromEntityUnmarshaller[T], arg1: ClassTag[T], timeout: Duration = 1.second): T
- Definition Classes
- RouteTest
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def evaluateTo[T](value: T): Matcher[Future[T]]
- Definition Classes
- ScalatestUtils
- implicit def executor: ExecutionContextExecutor
- Definition Classes
- RouteTest
- 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
- def failTest(msg: String): Nothing
- Definition Classes
- Scalatest → TestFrameworkInterface
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def handled: Boolean
- Definition Classes
- RouteTest
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def haveFailedWith(t: Throwable): Matcher[Future[_]]
- Definition Classes
- ScalatestUtils
- def header(name: String): Option[HttpHeader]
- Definition Classes
- RouteTest
- def header[T >: Null <: HttpHeader](implicit arg0: ClassTag[T]): Option[T]
- Definition Classes
- RouteTest
- implicit def header2AddHeader(header: HttpHeader): (ScalatestRouteTest.this)#RequestTransformer
- Definition Classes
- RequestBuilding
- def headers: Seq[HttpHeader]
- Definition Classes
- RouteTest
- val invokeBeforeAllAndAfterAllEvenIfNoTestsAreExpected: Boolean
- Definition Classes
- BeforeAndAfterAll
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isWebSocketUpgrade: Boolean
- Definition Classes
- RouteTest
- def logRequest(logFun: (HttpRequest) => Unit): (HttpRequest) => HttpRequest
- Definition Classes
- RequestBuilding
- def logRequest(log: LoggingAdapter, level: LogLevel = Logging.DebugLevel): (HttpRequest) => HttpRequest
- Definition Classes
- RequestBuilding
- def logValue[T](logFun: (T) => Unit): (T) => T
- Definition Classes
- TransformerPipelineSupport
- def logValue[T](log: LoggingAdapter, level: LogLevel = Logging.DebugLevel): (T) => T
- Definition Classes
- TransformerPipelineSupport
- def mapHeaders(f: (Seq[HttpHeader]) => Seq[HttpHeader]): (ScalatestRouteTest.this)#RequestTransformer
- Definition Classes
- RequestBuilding
- def marshal[T](value: T)(implicit arg0: ToEntityMarshaller[T], ec: ExecutionContext, mat: Materializer): Strict
- Definition Classes
- MarshallingTestUtils
- def marshalToResponse[T](value: T, request: HttpRequest = HttpRequest())(implicit arg0: ToResponseMarshaller[T], ec: ExecutionContext): HttpResponse
- Definition Classes
- MarshallingTestUtils
- def marshalToResponseForRequestAccepting[T](value: T, mediaRanges: MediaRange*)(implicit arg0: ToResponseMarshaller[T], ec: ExecutionContext): HttpResponse
- Definition Classes
- MarshallingTestUtils
- def marshallingTimeout: FiniteDuration
- Definition Classes
- MarshallingTestUtils
- implicit val materializer: Materializer
- Definition Classes
- RouteTest
- def mediaType: MediaType
- Definition Classes
- RouteTest
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def rejection: Rejection
- Definition Classes
- RouteTest
- def rejections: Seq[Rejection]
- Definition Classes
- RouteTest
- def removeHeader(clazz: Class[_]): (ScalatestRouteTest.this)#RequestTransformer
- Definition Classes
- RequestBuilding
- def removeHeader[T <: HttpHeader](implicit arg0: ClassTag[T]): (ScalatestRouteTest.this)#RequestTransformer
- Definition Classes
- RequestBuilding
- def removeHeader(headerName: String): (ScalatestRouteTest.this)#RequestTransformer
- Definition Classes
- RequestBuilding
- def removeHeaders(names: String*): (ScalatestRouteTest.this)#RequestTransformer
- Definition Classes
- RequestBuilding
- def response: HttpResponse
- Definition Classes
- RouteTest
- def responseAs[T](implicit arg0: FromResponseUnmarshaller[T], arg1: ClassTag[T], timeout: Duration = 1.second): T
- Definition Classes
- RouteTest
- def responseEntity: HttpEntity
- Definition Classes
- RouteTest
- def run(testName: Option[String], args: Args): Status
- Definition Classes
- BeforeAndAfterAll → SuiteMixin
- 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 withcheck
. See the "separate running route from checking" example from ScalatestRouteTestSpec.scala.- Definition Classes
- RouteTest
- def status: StatusCode
- Definition Classes
- RouteTest
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- implicit val system: ActorSystem
- Definition Classes
- RouteTest
- def testConfig: Config
- Definition Classes
- RouteTest → MarshallingTestUtils
- def testConfigSource: String
- Definition Classes
- RouteTest
- val testExceptionHandler: ExceptionHandler
- Definition Classes
- Scalatest → TestFrameworkInterface
- def toString(): String
- Definition Classes
- AnyRef → Any
- def trailer: Seq[HttpHeader]
- Definition Classes
- RouteTest
- def unmarshal[T](entity: HttpEntity)(implicit arg0: FromEntityUnmarshaller[T], ec: ExecutionContext, mat: Materializer): Try[T]
- Definition Classes
- MarshallingTestUtils
- def unmarshalTo[T](value: Try[T])(implicit arg0: FromEntityUnmarshaller[T], ec: ExecutionContext, mat: Materializer): Matcher[HttpEntity]
- Definition Classes
- ScalatestUtils
- def unmarshalToValue[T](value: T)(implicit arg0: FromEntityUnmarshaller[T], ec: ExecutionContext, mat: Materializer): Matcher[HttpEntity]
- Definition Classes
- ScalatestUtils
- def unmarshalValue[T](entity: HttpEntity)(implicit arg0: FromEntityUnmarshaller[T], ec: ExecutionContext, mat: Materializer): T
- Definition Classes
- MarshallingTestUtils
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Shadowed Implicit Value Members
- def ~>[B](f: (ScalatestRouteTest) => B): B
- Implicit
- This member is added by an implicit conversion from ScalatestRouteTest toclient.RequestBuilding.WithTransformation[ScalatestRouteTest] 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:(scalatestRouteTest: client.RequestBuilding.WithTransformation[ScalatestRouteTest]).~>(f)
- Definition Classes
- WithTransformation
- def ~>[B](f: (ScalatestRouteTest) => B): B
- Implicit
- This member is added by an implicit conversion from ScalatestRouteTest toclient.TransformerPipelineSupport.WithTransformation[ScalatestRouteTest] 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:(scalatestRouteTest: client.TransformerPipelineSupport.WithTransformation[ScalatestRouteTest]).~>(f)
- Definition Classes
- WithTransformation
Deprecated Value Members
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from ScalatestRouteTest toStringFormat[ScalatestRouteTest] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- def →[B](y: B): (ScalatestRouteTest, B)
- Implicit
- This member is added by an implicit conversion from ScalatestRouteTest toArrowAssoc[ScalatestRouteTest] 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.