I am trying to test following scenario which has a bug in the code but I am
not able to write automated test for this!!
1. Actor-1 sends a 'Restart' message to Actor-2 (Note that the restart is
business specific message and not actor restart)
2. Actor-2 does three things => 2.1: Sends 'Initialize' message to self
2.2: Sends 'Initialized' message to Actor-1
2.3: Sends 'Run' message to self
3. Actor-1 receives 'Initialized' message from Actor-2 and sends 'Run'
message to Actor-2
As you can notice the bug here, Actor-2 is sending 'Run' message to self as
well as Actor-1 is sending 'Run' message to Actor-2.
Both *EffectfulActorContex* and *StubbedActorContext* does not support two
way communication between actors.
And there is no way, I can assert on which Message received by Actor
without using testkit.
I can see there is a issue opened 4 months back for asynchronous testing of
actors.* (testkit for asynchronous testing #22764)*
Meanwhile is there any way to test the scenario which i just described
above?
--
>>>>>>>>>> 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.