Package akka.http.scaladsl.testkit
Class RouteTest$
- java.lang.Object
-
- akka.http.scaladsl.testkit.RouteTest$
-
public class RouteTest$ extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static RouteTest$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description RouteTest$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description scala.concurrent.Future<HttpResponse>
runRouteClientServer(HttpRequest request, scala.Function1<RequestContext,scala.concurrent.Future<RouteResult>> route, ServerSettings serverSettings, akka.actor.ActorSystem system)
scala.Function1<HttpRequest,scala.concurrent.Future<HttpResponse>>
toFunctionPassThroughExceptions(scala.Function1<RequestContext,scala.concurrent.Future<RouteResult>> route, akka.actor.ClassicActorSystemProvider system)
Turn the route into a function for testing, but do not handle exceptions in any way, instead, they are bubbled out as is to the caller.
-
-
-
Field Detail
-
MODULE$
public static final RouteTest$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
toFunctionPassThroughExceptions
public scala.Function1<HttpRequest,scala.concurrent.Future<HttpResponse>> toFunctionPassThroughExceptions(scala.Function1<RequestContext,scala.concurrent.Future<RouteResult>> route, akka.actor.ClassicActorSystemProvider system)
Turn the route into a function for testing, but do not handle exceptions in any way, instead, they are bubbled out as is to the caller.- Parameters:
route
- (undocumented)system
- (undocumented)- Returns:
- (undocumented)
-
runRouteClientServer
public scala.concurrent.Future<HttpResponse> runRouteClientServer(HttpRequest request, scala.Function1<RequestContext,scala.concurrent.Future<RouteResult>> route, ServerSettings serverSettings, akka.actor.ActorSystem system)
-
-