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 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
- 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
- Annotations
- @nowarn()
- 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 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 closingExtension: String
- Definition Classes
- RouteTest
- def contentType: ContentType
- Definition Classes
- RouteTest
- def entityAs[T](implicit arg0: FromEntityUnmarshaller[T], arg1: ClassTag[T], timeout: Duration = 1.second): T
- Definition Classes
- RouteTest
- 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 handled: Boolean
- Definition Classes
- RouteTest
- 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
- 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
- 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
- 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 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
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 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
- 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 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