@Test void recoverActorNotEquals() { final var testMsg = "test"; final var testProbe = new TestKit(system); final var repositoryActor = new TestKit(system); var repoActorPath = ActorPath.fromString("akka: var repoActorNew = new TestKit(system); final var recoveryActor = system.actorOf(RecoveryActor.props()); recoveryActor.tell(new RecoveryActor.RecoverActor(repoActorPath, () -> repoActorNew.getRef()), testProbe.getRef()); ActorRef result = testProbe.expectMsgClass(ActorRef.class); result.tell(testMsg, testProbe.getRef()); repoActorNew.expectMsg(testMsg); }
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();  }