Hi,

We have an actor with child actors. Those 3 register themselves in the 
preStart on the eventstream, and deregegister themselves in the postStop.
The 3 child actors are just referenced/instantiated in the prestart of the 
parent by means of context.actorOf( etc.). 

Now we want to test when the parent actor crashed, the children are 
correctly registered so they again pick up messages published on the 
eventstream.

I can subscribe the testActor the the stream but then I'm testing the 
eventstream itself. At least I do not test if the actual children came up 
correctly and are registring themselves correctly.

I played around with subclassing the parent, and having the parent create 
one of the children via a def, and overriding this in this test subclass 
referencing the testActor, but then (I later found out) of course this 
actorRef is nog registered on the evenstream and is not picking up the 
published event. If this would be the case then I would be testing the same 
as directly subscribing the testActor to the eventstream.

So basically my question is: how would one  approach this scenario?

thanks in advance.

Alex

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: http://akka.io/faq/
>>>>>>>>>>      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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to