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 actor construction can do things normally - and then I override it.
Cheers, Edward On Thursday, May 22, 2014 3:30:10 AM UTC-7, Filippo De Luca wrote: > > Hi Guys, > I am wondering if is it possible to use a probe to test an actor that > reference the other actor by actor path. > > For example it can use actorFor("/user/foo/bar") or > actorFor("../my-sibling-actor") is there a way to inject a probe inside the > actor-system. > > This bring to my mind another question, is it a good practice to reference > an actor by the path, or is better to pass the actorRef as parameter when > possible? > > Thanks for your help. > -- > *Filippo De Luca* > --------------------- > WWW: http://filippodeluca.com > IM: filosg...@gmail.com <javascript:> > -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.