@Test public void init() { abstractScenarioSimulationProducer.init(); scenarioContextMenuRegistryMock.setEventBus(eq(eventBusMock)); verify(scenarioSimulationEventHandlerMock, times(1)).setEventBus(eq(eventBusMock)); verify(scenarioSimulationEventHandlerMock, times(1)).setDeletePopupPresenter(eq(deletePopupPresenterMock)); verify(scenarioSimulationEventHandlerMock, times(1)).setPreserveDeletePopupPresenter(eq(preserveDeletePopupPresenterMock)); verify(scenarioSimulationEventHandlerMock, times(1)).setConfirmPopupPresenter(eq(confirmPopupPresenterMock)); verify(scenarioSimulationEventHandlerMock, times(1)).setFileUploadPopupPresenter(eq(fileUploadPopupPresenterMock)); verify(scenarioSimulationEventHandlerMock, times(1)).setNotificationEvent(eq(notificationEventNew)); verify(scenarioSimulationEventHandlerMock, times(1)).setScenarioCommandManager(eq(scenarioCommandManagerMock)); verify(scenarioSimulationEventHandlerMock, times(1)).setScenarioCommandRegistryManager(eq(scenarioCommandRegistryManagerMock)); }
@PostConstruct public void init() { final ScenarioContextMenuRegistry scenarioContextMenuRegistry = scenarioGridPanelProducer.getScenarioContextMenuRegistry(); scenarioContextMenuRegistry.setEventBus(getEventBus()); scenarioSimulationEventHandler.setEventBus(getEventBus()); scenarioSimulationEventHandler.setDeletePopupPresenter(deletePopupPresenter); scenarioSimulationEventHandler.setPreserveDeletePopupPresenter(preserveDeletePopupPresenter); scenarioSimulationEventHandler.setConfirmPopupPresenter(confirmPopupPresenter); scenarioSimulationEventHandler.setFileUploadPopupPresenter(fileUploadPopupPresenter); scenarioSimulationEventHandler.setNotificationEvent(notificationEvent); scenarioSimulationEventHandler.setScenarioCommandManager(scenarioCommandManager); scenarioSimulationEventHandler.setScenarioCommandRegistryManager(scenarioCommandRegistryManager); scenarioSimulationEventHandler.setContext(scenarioGridPanelProducer.getScenarioSimulationContext()); }
AbstractScenarioSimulationProducer { @PostConstruct public void init() { final ScenarioContextMenuRegistry scenarioContextMenuRegistry = scenarioGridPanelProducer.getScenarioContextMenuRegistry(); scenarioContextMenuRegistry.setEventBus(getEventBus()); scenarioSimulationEventHandler.setEventBus(getEventBus()); scenarioSimulationEventHandler.setDeletePopupPresenter(deletePopupPresenter); scenarioSimulationEventHandler.setPreserveDeletePopupPresenter(preserveDeletePopupPresenter); scenarioSimulationEventHandler.setConfirmPopupPresenter(confirmPopupPresenter); scenarioSimulationEventHandler.setFileUploadPopupPresenter(fileUploadPopupPresenter); scenarioSimulationEventHandler.setNotificationEvent(notificationEvent); scenarioSimulationEventHandler.setScenarioCommandManager(scenarioCommandManager); scenarioSimulationEventHandler.setScenarioCommandRegistryManager(scenarioCommandRegistryManager); scenarioSimulationEventHandler.setContext(scenarioGridPanelProducer.getScenarioSimulationContext()); } }
AbstractScenarioSimulationProducer { @PostConstruct public void init() { final ScenarioContextMenuRegistry scenarioContextMenuRegistry = scenarioGridPanelProducer.getScenarioContextMenuRegistry(); scenarioContextMenuRegistry.setEventBus(getEventBus()); scenarioSimulationEventHandler.setEventBus(getEventBus()); scenarioSimulationEventHandler.setDeletePopupPresenter(deletePopupPresenter); scenarioSimulationEventHandler.setPreserveDeletePopupPresenter(preserveDeletePopupPresenter); scenarioSimulationEventHandler.setConfirmPopupPresenter(confirmPopupPresenter); scenarioSimulationEventHandler.setFileUploadPopupPresenter(fileUploadPopupPresenter); scenarioSimulationEventHandler.setNotificationEvent(notificationEvent); scenarioSimulationEventHandler.setScenarioCommandManager(scenarioCommandManager); scenarioSimulationEventHandler.setScenarioCommandRegistryManager(scenarioCommandRegistryManager); scenarioSimulationEventHandler.setContext(scenarioGridPanelProducer.getScenarioSimulationContext()); }  }
AbstractScenarioSimulationProducer { @PostConstruct public void init() { final ScenarioContextMenuRegistry scenarioContextMenuRegistry = scenarioGridPanelProducer.getScenarioContextMenuRegistry(); scenarioContextMenuRegistry.setEventBus(getEventBus()); scenarioSimulationEventHandler.setEventBus(getEventBus()); scenarioSimulationEventHandler.setDeletePopupPresenter(deletePopupPresenter); scenarioSimulationEventHandler.setPreserveDeletePopupPresenter(preserveDeletePopupPresenter); scenarioSimulationEventHandler.setConfirmPopupPresenter(confirmPopupPresenter); scenarioSimulationEventHandler.setFileUploadPopupPresenter(fileUploadPopupPresenter); scenarioSimulationEventHandler.setNotificationEvent(notificationEvent); scenarioSimulationEventHandler.setScenarioCommandManager(scenarioCommandManager); scenarioSimulationEventHandler.setScenarioCommandRegistryManager(scenarioCommandRegistryManager); scenarioSimulationEventHandler.setContext(scenarioGridPanelProducer.getScenarioSimulationContext()); }  @PostConstruct void init(); EventBus getEventBus(); ScenarioSimulationView getScenarioSimulationView(); ScenarioGridWidget getScenarioBackgroundGridWidget(); ScenarioSimulationContext getScenarioSimulationContext(); void setScenarioSimulationEditorPresenter(ScenarioSimulationEditorPresenter presenter); }
AbstractScenarioSimulationProducer { @PostConstruct public void init() { final ScenarioContextMenuRegistry scenarioContextMenuRegistry = scenarioGridPanelProducer.getScenarioContextMenuRegistry(); scenarioContextMenuRegistry.setEventBus(getEventBus()); scenarioSimulationEventHandler.setEventBus(getEventBus()); scenarioSimulationEventHandler.setDeletePopupPresenter(deletePopupPresenter); scenarioSimulationEventHandler.setPreserveDeletePopupPresenter(preserveDeletePopupPresenter); scenarioSimulationEventHandler.setConfirmPopupPresenter(confirmPopupPresenter); scenarioSimulationEventHandler.setFileUploadPopupPresenter(fileUploadPopupPresenter); scenarioSimulationEventHandler.setNotificationEvent(notificationEvent); scenarioSimulationEventHandler.setScenarioCommandManager(scenarioCommandManager); scenarioSimulationEventHandler.setScenarioCommandRegistryManager(scenarioCommandRegistryManager); scenarioSimulationEventHandler.setContext(scenarioGridPanelProducer.getScenarioSimulationContext()); }  @PostConstruct void init(); EventBus getEventBus(); ScenarioSimulationView getScenarioSimulationView(); ScenarioGridWidget getScenarioBackgroundGridWidget(); ScenarioSimulationContext getScenarioSimulationContext(); void setScenarioSimulationEditorPresenter(ScenarioSimulationEditorPresenter presenter);  }