Interface RouteTest

All Superinterfaces:
MarshallingTestUtils, RequestBuilding, RouteTestResultComponent, TransformerPipelineSupport, WSTestRequestBuilding
All Known Subinterfaces:
ScalatestRouteTest, Specs2RouteTest

  • Method Details

    • DefaultHostInfo

      RouteTest.DefaultHostInfo$ DefaultHostInfo()
      Accessor for nested Scala object
      Returns:
      (undocumented)
    • TildeArrow

      RouteTest.TildeArrow$ TildeArrow()
      Accessor for nested Scala object
      Returns:
      (undocumented)
    • TildeBangArrow

      RouteTest.TildeBangArrow$ TildeBangArrow()
      Accessor for nested Scala object
      Returns:
      (undocumented)
    • createActorSystem

      akka.actor.ActorSystem createActorSystem()
      Override to supply a custom ActorSystem
    • actorSystemNameFrom

      String actorSystemNameFrom(Class<?> clazz)
    • testConfigSource

      String testConfigSource()
    • testConfig

      com.typesafe.config.Config testConfig()
      Specified by:
      testConfig in interface MarshallingTestUtils
    • system

      akka.actor.ActorSystem system()
    • executor

      scala.concurrent.ExecutionContextExecutor executor()
    • materializer

      akka.stream.Materializer materializer()
    • cleanUp

      void cleanUp()
    • result

    • check

      <T> scala.Function1<RouteTestResultComponent.RouteTestResult,T> check(scala.Function0<T> body)
    • responseSafe

      Object responseSafe()
    • handled

      boolean handled()
    • response

      HttpResponse response()
    • responseEntity

      HttpEntity responseEntity()
    • rawResponse

      HttpResponse rawResponse()
    • chunks

      scala.collection.immutable.Seq<HttpEntity.ChunkStreamPart> chunks()
    • chunksStream

      akka.stream.scaladsl.Source<HttpEntity.ChunkStreamPart,Object> chunksStream()
    • entityAs

      <T> T entityAs(Unmarshaller<HttpEntity,T> evidence$1, scala.reflect.ClassTag<T> evidence$2, scala.concurrent.duration.Duration timeout)
    • responseAs

      <T> T responseAs(Unmarshaller<HttpResponse,T> evidence$3, scala.reflect.ClassTag<T> evidence$4, scala.concurrent.duration.Duration timeout)
    • contentType

      ContentType contentType()
    • mediaType

      MediaType mediaType()
    • charsetOption

      scala.Option<HttpCharset> charsetOption()
    • charset

      HttpCharset charset()
    • headers

      scala.collection.immutable.Seq<HttpHeader> headers()
    • header

      <T extends HttpHeader> scala.Option<T> header(scala.reflect.ClassTag<T> evidence$5)
    • header

      scala.Option<HttpHeader> header(String name)
    • status

      StatusCode status()
    • closingExtension

      String closingExtension()
    • trailer

      scala.collection.immutable.Seq<HttpHeader> trailer()
    • rejections

      scala.collection.immutable.Seq<Rejection> rejections()
    • rejection

      Rejection rejection()
    • isWebSocketUpgrade

      boolean isWebSocketUpgrade()
    • expectWebSocketUpgradeWithProtocol

      void expectWebSocketUpgradeWithProtocol(scala.Function1<String,scala.runtime.BoxedUnit> body)
      Asserts that the received response is a WebSocket upgrade response and the extracts the chosen subprotocol and passes it to the handler.
      Parameters:
      body - (undocumented)
    • runRoute

      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.
      Returns:
      (undocumented)