3
單元測試持久角色如何做。我知道有一個akka-testkit可以用來獲取下面的測試actor參考的底層actor對象。單元測試Akka中的持續角色
final TestActorRef<MyActor> ref = TestActorRef.create(system, props, "testA");
final MyActor actor = ref.underlyingActor();
assertTrue(actor.testMe());
但是這對於提到的here的持續演員不起作用。
問題:一個單元怎麼測試一個持久性actor的方法?