Konrad, isn't TestActorRef valuable for unit testing with actors? This 
assumes the proper IT test coverage is there as well as an outer layer of 
the onion.

On Wednesday, September 10, 2014 10:16:48 AM UTC-4, Akka Team wrote:
>
> 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 <shajah...@gmail.com 
> <javascript:>> 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 akka-user+...@googlegroups.com <javascript:>.
>> To post to this group, send email to akka...@googlegroups.com 
>> <javascript:>.
>> 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 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.

Reply via email to