@Test public void testJoinSuccessDifferentHandler() { new JavaTestKit(system) { { final Props props = LobbyActor.props(configuration); final ActorRef subject = system.actorOf(props); final JavaTestKit probe = new JavaTestKit(system); final Join req = new Join(team, probe.getRef()); subject.tell(req, getRef()); probe.expectNoMsg(); expectMsgClass(duration("1 second"), JoinSuccess.class); } }; }
public static Props props(LobbyConfiguration configuration) { return Props.create(LobbyActor.class, () -> new LobbyActor(configuration)); }
LobbyActor extends AbstractActor { public static Props props(LobbyConfiguration configuration) { return Props.create(LobbyActor.class, () -> new LobbyActor(configuration)); } }
LobbyActor extends AbstractActor { public static Props props(LobbyConfiguration configuration) { return Props.create(LobbyActor.class, () -> new LobbyActor(configuration)); } private  LobbyActor(LobbyConfiguration configuration); }
LobbyActor extends AbstractActor { public static Props props(LobbyConfiguration configuration) { return Props.create(LobbyActor.class, () -> new LobbyActor(configuration)); } private  LobbyActor(LobbyConfiguration configuration); @Override PartialFunction<Object, BoxedUnit> receive(); static Props props(LobbyConfiguration configuration); }
LobbyActor extends AbstractActor { public static Props props(LobbyConfiguration configuration) { return Props.create(LobbyActor.class, () -> new LobbyActor(configuration)); } private  LobbyActor(LobbyConfiguration configuration); @Override PartialFunction<Object, BoxedUnit> receive(); static Props props(LobbyConfiguration configuration);  }