Typed Actor TestKit

Hello,

I am trying to used the new Typed ActorTestKit with a custom ActorSystemSetup. In the untyped TestKit, it was easy because you could provide the actor system in the constructor:

But with the typed ActorTestKit you can only specify custom config settings:

For reference, I am trying to use Typed actors along side Lagom Persistent Entites, and it requires you to provide a serializer for each class on actor system setup (See here: https://www.lagomframework.com/documentation/1.5.x/scala/PersistentEntity.html#Unit-Testing).

How would I go about testing typed actor and persistent entity interactions?

Regards,

  • Robert
2 Likes

Looks like that would require some changes and an additional factory method, please create an issue about it!

1 Like

Thank you Mr. Andren. I have created an issue over in the Akka/Akka Github page.

Please see reference at: https://github.com/akka/akka/issues/27338

Regards,
Robert