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 =
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
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