@Test public void testParametersCarNull() { 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 CarParametersSubmission msg = new CarParametersSubmission(team, null, new CarParameters(1, 1, 1, new Tire(UUID.randomUUID(), "", TireType.HARD, 1, 1))); subject.tell(msg, getRef()); expectNoMsg(duration("1 second")); } }; }
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);  }