@Test public void testConfigurationCarNull() { new JavaTestKit(system) { { final Props props = LobbyRaceSimulationActor.props(getRef(), grandprix); final ActorRef subject = system.actorOf(props); final RequestInformation req = RequestInformation.INSTANCE; subject.tell(req, getRef()); final TeamConfigurationSubmission msg = new TeamConfigurationSubmission(team, new HashSet<CarConfiguration>() {{ add(new CarConfiguration(null, null, null, null, null, null)); }}); subject.tell(msg, getRef()); expectMsgClass(duration("1 second"), TeamConfigurationSubmitted.class); } }; }
public static Props props(ActorRef bus, GrandPrix grandPrix) { return Props.create(LobbyRaceSimulationActor.class, () -> new LobbyRaceSimulationActor(bus, grandPrix)); }
LobbyRaceSimulationActor extends AbstractActor { public static Props props(ActorRef bus, GrandPrix grandPrix) { return Props.create(LobbyRaceSimulationActor.class, () -> new LobbyRaceSimulationActor(bus, grandPrix)); } }
LobbyRaceSimulationActor extends AbstractActor { public static Props props(ActorRef bus, GrandPrix grandPrix) { return Props.create(LobbyRaceSimulationActor.class, () -> new LobbyRaceSimulationActor(bus, grandPrix)); } private  LobbyRaceSimulationActor(ActorRef bus, GrandPrix grandPrix); }
LobbyRaceSimulationActor extends AbstractActor { public static Props props(ActorRef bus, GrandPrix grandPrix) { return Props.create(LobbyRaceSimulationActor.class, () -> new LobbyRaceSimulationActor(bus, grandPrix)); } private  LobbyRaceSimulationActor(ActorRef bus, GrandPrix grandPrix); @Override PartialFunction<Object, BoxedUnit> receive(); static Props props(ActorRef bus, GrandPrix grandPrix); }
LobbyRaceSimulationActor extends AbstractActor { public static Props props(ActorRef bus, GrandPrix grandPrix) { return Props.create(LobbyRaceSimulationActor.class, () -> new LobbyRaceSimulationActor(bus, grandPrix)); } private  LobbyRaceSimulationActor(ActorRef bus, GrandPrix grandPrix); @Override PartialFunction<Object, BoxedUnit> receive(); static Props props(ActorRef bus, GrandPrix grandPrix);  }