trait Specs2RouteTest extends RouteTest with Specs2 with Specs2Utils
- Alphabetic
- By Inheritance
- Specs2RouteTest
- Specs2Utils
- Specs2
- AfterAll
- FragmentsFactory
- SpecificationStructure
- ContextualSpecificationStructure
- 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 is: SpecStructure
- Definition Classes
- SpecificationStructure
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 Specs2RouteTest toany2stringadd[Specs2RouteTest] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (Specs2RouteTest, B)
- Implicit
- This member is added by an implicit conversion from Specs2RouteTest toArrowAssoc[Specs2RouteTest] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val Delete: RequestBuilder
- Definition Classes
- RequestBuilding
- val Get: RequestBuilder
- Definition Classes
- RequestBuilding
- val Head: RequestBuilder
- Definition Classes
- RequestBuilding
- val Options: RequestBuilder
- Definition Classes
- RequestBuilding
- val Patch: RequestBuilder
- Definition Classes
- RequestBuilding
- val Post: RequestBuilder
- Definition Classes
- RequestBuilding
- val Put: 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): RequestTransformer
- Definition Classes
- RequestBuilding
- def addCredentials(credentials: HttpCredentials): RequestTransformer
- Definition Classes
- RequestBuilding
- def addHeader(headerName: String, headerValue: String): RequestTransformer
- Definition Classes
- RequestBuilding
- def addHeader(header: HttpHeader): RequestTransformer
- Definition Classes
- RequestBuilding
- def addHeaders(first: HttpHeader, more: HttpHeader*): RequestTransformer
- Definition Classes
- RequestBuilding
- def afterAll(): Unit
- Definition Classes
- Specs2 → AfterAll
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def charset: HttpCharset
- Definition Classes
- RouteTest
- def charsetOption: Option[HttpCharset]
- Definition Classes
- RouteTest
- def check[T](body: => T): (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]) @HotSpotIntrinsicCandidate() @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 decorate(is: SpecStructure, env: Env): SpecStructure
- Definition Classes
- SpecificationStructure
- def ensuring(cond: (Specs2RouteTest) => Boolean, msg: => Any): Specs2RouteTest
- Implicit
- This member is added by an implicit conversion from Specs2RouteTest toEnsuring[Specs2RouteTest] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (Specs2RouteTest) => Boolean): Specs2RouteTest
- Implicit
- This member is added by an implicit conversion from Specs2RouteTest toEnsuring[Specs2RouteTest] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): Specs2RouteTest
- Implicit
- This member is added by an implicit conversion from Specs2RouteTest toEnsuring[Specs2RouteTest] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): Specs2RouteTest
- Implicit
- This member is added by an implicit conversion from Specs2RouteTest toEnsuring[Specs2RouteTest] 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)(implicit ee: ExecutionEnv): Matcher[Future[T]]
- Definition Classes
- Specs2Utils
- 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
- Specs2 → TestFrameworkInterface
- def fragmentFactory: FragmentFactory
- Attributes
- protected
- Definition Classes
- FragmentsFactory
- def fragments: (Env) => Fragments
- Definition Classes
- ContextualSpecificationStructure
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def handled: Boolean
- Definition Classes
- RouteTest
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def haveFailedWith(t: Throwable)(implicit ee: ExecutionEnv): Matcher[Future[_]]
- Definition Classes
- Specs2Utils
- 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): RequestTransformer
- Definition Classes
- RequestBuilding
- def headers: Seq[HttpHeader]
- Definition Classes
- RouteTest
- 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 map(fs: => Fragments): Fragments
- Definition Classes
- AfterAll → SpecificationStructure
- def map(fs: => Fragments, env: Env): Fragments
- Definition Classes
- SpecificationStructure
- def map(structure: SpecStructure): SpecStructure
- Definition Classes
- SpecificationStructure
- def mapHeaders(f: (Seq[HttpHeader]) => Seq[HttpHeader]): 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
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def rejection: Rejection
- Definition Classes
- RouteTest
- def rejections: Seq[Rejection]
- Definition Classes
- RouteTest
- def removeHeader(clazz: Class[_]): RequestTransformer
- Definition Classes
- RequestBuilding
- def removeHeader[T <: HttpHeader](implicit arg0: ClassTag[T]): RequestTransformer
- Definition Classes
- RequestBuilding
- def removeHeader(headerName: String): RequestTransformer
- Definition Classes
- RequestBuilding
- def removeHeaders(names: String*): 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 runRoute: (RouteTestResult) => 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
- def structure: (Env) => SpecStructure
- Definition Classes
- SpecificationStructure → ContextualSpecificationStructure
- 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
- Specs2 → 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
- Specs2Utils
- def unmarshalToValue[T](value: T)(implicit arg0: FromEntityUnmarshaller[T], ec: ExecutionContext, mat: Materializer): Matcher[HttpEntity]
- Definition Classes
- Specs2Utils
- def unmarshalValue[T](entity: HttpEntity)(implicit arg0: FromEntityUnmarshaller[T], ec: ExecutionContext, mat: Materializer): T
- Definition Classes
- MarshallingTestUtils
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Shadowed Implicit Value Members
- def ~>[B](f: (Specs2RouteTest) => B): B
- Implicit
- This member is added by an implicit conversion from Specs2RouteTest toclient.RequestBuilding.WithTransformation[Specs2RouteTest] 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:(specs2RouteTest: client.RequestBuilding.WithTransformation[Specs2RouteTest]).~>(f)
- Definition Classes
- WithTransformation
- def ~>[B](f: (Specs2RouteTest) => B): B
- Implicit
- This member is added by an implicit conversion from Specs2RouteTest toclient.TransformerPipelineSupport.WithTransformation[Specs2RouteTest] 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:(specs2RouteTest: client.TransformerPipelineSupport.WithTransformation[Specs2RouteTest]).~>(f)
- Definition Classes
- WithTransformation
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from Specs2RouteTest toStringFormat[Specs2RouteTest] 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): (Specs2RouteTest, B)
- Implicit
- This member is added by an implicit conversion from Specs2RouteTest toArrowAssoc[Specs2RouteTest] 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.