Interface RouteTest

    • Method Detail

      • TildeArrow

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

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

        java.lang.String actorSystemNameFrom​(java.lang.Class<?> clazz)
      • testConfigSource

        java.lang.String testConfigSource()
      • system

        akka.actor.ActorSystem system()
      • executor

        scala.concurrent.ExecutionContextExecutor executor()
      • materializer

        akka.stream.Materializer materializer()
      • cleanUp

        void cleanUp()
      • responseSafe

        java.lang.Object responseSafe()
      • handled

        boolean handled()
      • 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)
      • charsetOption

        scala.Option<HttpCharset> charsetOption()
      • 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​(java.lang.String name)
      • closingExtension

        java.lang.String closingExtension()
      • trailer

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

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

        boolean isWebSocketUpgrade()
      • expectWebSocketUpgradeWithProtocol

        void expectWebSocketUpgradeWithProtocol​(scala.Function1<java.lang.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

        scala.Function1<RouteTestResultComponent.RouteTestResult,​RouteTestResultComponent.RouteTestResult> 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)