By interacting with them – same as normal Actors.
I would not encourage the use of TestActorRef actually - it is very
limiting (threading wise).
Simply ask the actor for what you want to know from it.

Also, there will be an specific Akka Persistence TestKit "soon"!
Here's the issue about it: https://github.com/akka/akka/issues/15571

-- Konrad `ktoso` Malawski

On Wed, Sep 10, 2014 at 3:53 PM, Shajahan Palayil <[email protected]>
wrote:

> How does one unit test persistent actors. I understand that there's
> akka-testkit which one can use to get the underlying actor object of a test
> actor reference like below.
>
> final TestActorRef<MyActor> ref = TestActorRef.create(system, props, 
> "testA");final MyActor actor = ref.underlyingActor();
> assertTrue(actor.testMe());
>
> But this doesn't work for persistent actors as mentioned here
> <https://github.com/akka/akka/issues/15569>.
>
> Question: how does one unit test a persistent actor methods ?
>
>
> Thanks,
>
> Shajahan.
>
> --
> >>>>>>>>>> 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.
>



-- 
Akka Team
Typesafe - The software stack for applications that scale
Blog: letitcrash.com
Twitter: @akkateam

-- 
>>>>>>>>>>      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