@Test void recoverActorEquals() { final var testProbe = new TestKit(system); final var repositoryActor = system.actorOf(RepositoryActor.props()); var repoActorPath = ActorPath.fromString("akka: final var recoveryActor = system.actorOf(RecoveryActor.props()); recoveryActor.tell(new RecoveryActor.RecoverActor(repoActorPath, () -> repositoryActor), testProbe.getRef()); var repoActorNew = testProbe.expectMsgClass(ActorRef.class); assertEquals(repoActorNew, repositoryActor); }
public static Props props() { return Props.create(RecoveryActor.class); }
RecoveryActor extends AbstractActor { public static Props props() { return Props.create(RecoveryActor.class); } }
RecoveryActor extends AbstractActor { public static Props props() { return Props.create(RecoveryActor.class); }  }
RecoveryActor extends AbstractActor { public static Props props() { return Props.create(RecoveryActor.class); }  static Props props(); @Override Receive createReceive(); }
RecoveryActor extends AbstractActor { public static Props props() { return Props.create(RecoveryActor.class); }  static Props props(); @Override Receive createReceive();  }