Re: [akka-user] Re: Testing routes and marshalling

2016-09-12 Thread Richard Rodseth
Thank you. I got it working with a custom test actor. If you get a chance to look at the follow-up topic "Debugging marshalling implicits", it would be much appreciated A shorter question would be: Is this the right way to debug when a type cannot be marshalled? val prm =

Re: [akka-user] Re: Testing routes and marshalling

2016-09-09 Thread Akka Team
Hi Richard, The HTTP Testkit expects to have gotten the reply already when check executes, so that is why it does not work. You can use the autopilot feature of the TestProbe or a custom test actor responding the way you want in the test, it could also keep incoming requests for later

[akka-user] Re: Testing routes and marshalling

2016-09-06 Thread Richard Rodseth
Oy. I'm getting tied up in knots. I guess the requestHandlerProbe.reply won't work without a proper sender. I usually put my route definition in an actor, but moved it to a trait so that it could be used by the test kit. But I did it like this def route(requestHandler: ActorRef) = ... Can anyone