Hi Kostas,

I think that tools provided by ScalaTest for code reuse could help you. For
example by overriding withFixture you can have a new instance of TestKit
for every test.

I want to also mention that in carefully crafted tests cases sharing the
same testActor can be helpful as well. In such case a not-expected message
received by testActor would indicate a bug somewhere in the program.

Hope this helps.

On Tue, May 12, 2015 at 6:22 PM, Kostas kougios <
[email protected]> wrote:

> Hi,
>
> I am having this issue where I sometimes "tell" different actors multiple
> messages and I want to test a single message, so I might have 1 expectMsg.
> But then, this affects the rest of the tests ,i.e. if the receiver is the
> testActor.
>
> is there a way to "reset" TestKit for each test?
>
> Thanks
>
> (Note: i've asked a more detailed question similar to this but it is
> probably too complex and didn't get any answers yet)
>
> --
> >>>>>>>>>> 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 http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Martynas Mickevičius
Typesafe <http://typesafe.com/> – Reactive
<http://www.reactivemanifesto.org/> Apps on the JVM

-- 
>>>>>>>>>>      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 http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to