@Test public void testHandle() { handler.handle(mock(MouseEvent.class)); Assert.assertTrue(publisher.isMessageReceived(MessageTopic.ARCHITECTURE, new RequestArchitectureStateChangeMessage(SimulationAction.INIT))); }
@Override public void handle(MouseEvent event) { RequestArchitectureStateChangeMessage msg = new RequestArchitectureStateChangeMessage(action); publisher.send(msg); }
ArchitectureButtonEventHandler implements EventHandler<MouseEvent> { @Override public void handle(MouseEvent event) { RequestArchitectureStateChangeMessage msg = new RequestArchitectureStateChangeMessage(action); publisher.send(msg); } }
ArchitectureButtonEventHandler implements EventHandler<MouseEvent> { @Override public void handle(MouseEvent event) { RequestArchitectureStateChangeMessage msg = new RequestArchitectureStateChangeMessage(action); publisher.send(msg); } ArchitectureButtonEventHandler(SimulationAction action, Publisher publisher); }
ArchitectureButtonEventHandler implements EventHandler<MouseEvent> { @Override public void handle(MouseEvent event) { RequestArchitectureStateChangeMessage msg = new RequestArchitectureStateChangeMessage(action); publisher.send(msg); } ArchitectureButtonEventHandler(SimulationAction action, Publisher publisher); @Override void handle(MouseEvent event); }
ArchitectureButtonEventHandler implements EventHandler<MouseEvent> { @Override public void handle(MouseEvent event) { RequestArchitectureStateChangeMessage msg = new RequestArchitectureStateChangeMessage(action); publisher.send(msg); } ArchitectureButtonEventHandler(SimulationAction action, Publisher publisher); @Override void handle(MouseEvent event);  }