There has been discussion about this a while
agohttps://groups.google.com/forum/#!searchin/akka-user/viktor$20testactor/akka-user/ETL4XQr1Sj4/N9lo_6gc8voJ
.
Basically you need to have a way to inject either ActorRef or path for
actor selection. Then you can change these in tests accordingly.
On
I'd love to hear the answer to this too!
I've solved the problem by injecting actorRefs but it does seem to lose the
point of actor supervision.
The other technique I've tried in one spot is to use the TestActorRef to
get the underlyingActor and then set the actorRef on that. This means that
Well, in my case, I'm creating TestProbes and passing them into the actor
under test so that I can verify what it does with them.
For example, I have one class which communicates with 3 other actors and I
mock out all of them with TestProbes.
However, it does feel like a lot of work which is a