@Test public void onImportEvent() { ImportEvent event = new ImportEvent(GridWidget.SIMULATION); scenarioSimulationEventHandler.onEvent(event); verify(fileUploadPopupPresenterMock, times(1)) .show(anyListOf(String.class), eq(ScenarioSimulationEditorConstants.INSTANCE.selectImportFile()), eq(ScenarioSimulationEditorConstants.INSTANCE.uploadWarning()), eq(ScenarioSimulationEditorConstants.INSTANCE.importLabel()), isA(org.uberfire.mvp.Command.class)); }
@Override public void onEvent(AppendColumnEvent event) { context.getStatus().setColumnId(String.valueOf(new Date().getTime())); context.getStatus().setColumnGroup(event.getColumnGroup()); commonExecution(new AppendColumnCommand(event.getGridWidget()), true); }
ScenarioSimulationEventHandler implements AppendColumnEventHandler,
                                                       AppendRowEventHandler,
                                                       DeleteColumnEventHandler,
                                                       DeleteRowEventHandler,
                                                       DisableTestToolsEventHandler,
                                                       DuplicateInstanceEventHandler,
                                                       DuplicateRowEventHandler,
                                                       EnableTestToolsEventHandler,
                                                       ImportEventHandler,
                                                       InsertColumnEventHandler,
                                                       InsertRowEventHandler,
                                                       PrependColumnEventHandler,
                                                       PrependRowEventHandler,
                                                       RedoEventHandler,
                                                       ReloadTestToolsEventHandler,
                                                       RunSingleScenarioEventHandler,
                                                       ScenarioGridReloadEventHandler,
                                                       ScenarioNotificationEventHandler,
                                                       SetGridCellValueEventHandler,
                                                       SetHeaderCellValueEventHandler,
                                                       SetInstanceHeaderEventHandler,
                                                       SetPropertyHeaderEventHandler,
                                                       UndoEventHandler,
                                                       UnsupportedDMNEventHandler,
                                                       ValidateSimulationEventHandler { @Override public void onEvent(AppendColumnEvent event) { context.getStatus().setColumnId(String.valueOf(new Date().getTime())); context.getStatus().setColumnGroup(event.getColumnGroup()); commonExecution(new AppendColumnCommand(event.getGridWidget()), true); } }
ScenarioSimulationEventHandler implements AppendColumnEventHandler,
                                                       AppendRowEventHandler,
                                                       DeleteColumnEventHandler,
                                                       DeleteRowEventHandler,
                                                       DisableTestToolsEventHandler,
                                                       DuplicateInstanceEventHandler,
                                                       DuplicateRowEventHandler,
                                                       EnableTestToolsEventHandler,
                                                       ImportEventHandler,
                                                       InsertColumnEventHandler,
                                                       InsertRowEventHandler,
                                                       PrependColumnEventHandler,
                                                       PrependRowEventHandler,
                                                       RedoEventHandler,
                                                       ReloadTestToolsEventHandler,
                                                       RunSingleScenarioEventHandler,
                                                       ScenarioGridReloadEventHandler,
                                                       ScenarioNotificationEventHandler,
                                                       SetGridCellValueEventHandler,
                                                       SetHeaderCellValueEventHandler,
                                                       SetInstanceHeaderEventHandler,
                                                       SetPropertyHeaderEventHandler,
                                                       UndoEventHandler,
                                                       UnsupportedDMNEventHandler,
                                                       ValidateSimulationEventHandler { @Override public void onEvent(AppendColumnEvent event) { context.getStatus().setColumnId(String.valueOf(new Date().getTime())); context.getStatus().setColumnGroup(event.getColumnGroup()); commonExecution(new AppendColumnCommand(event.getGridWidget()), true); }  }
ScenarioSimulationEventHandler implements AppendColumnEventHandler,
                                                       AppendRowEventHandler,
                                                       DeleteColumnEventHandler,
                                                       DeleteRowEventHandler,
                                                       DisableTestToolsEventHandler,
                                                       DuplicateInstanceEventHandler,
                                                       DuplicateRowEventHandler,
                                                       EnableTestToolsEventHandler,
                                                       ImportEventHandler,
                                                       InsertColumnEventHandler,
                                                       InsertRowEventHandler,
                                                       PrependColumnEventHandler,
                                                       PrependRowEventHandler,
                                                       RedoEventHandler,
                                                       ReloadTestToolsEventHandler,
                                                       RunSingleScenarioEventHandler,
                                                       ScenarioGridReloadEventHandler,
                                                       ScenarioNotificationEventHandler,
                                                       SetGridCellValueEventHandler,
                                                       SetHeaderCellValueEventHandler,
                                                       SetInstanceHeaderEventHandler,
                                                       SetPropertyHeaderEventHandler,
                                                       UndoEventHandler,
                                                       UnsupportedDMNEventHandler,
                                                       ValidateSimulationEventHandler { @Override public void onEvent(AppendColumnEvent event) { context.getStatus().setColumnId(String.valueOf(new Date().getTime())); context.getStatus().setColumnGroup(event.getColumnGroup()); commonExecution(new AppendColumnCommand(event.getGridWidget()), true); }  void setEventBus(EventBus eventBus); void setDeletePopupPresenter(DeletePopupPresenter deletePopupPresenter); void setPreserveDeletePopupPresenter(PreserveDeletePopupPresenter preserveDeletePopupPresenter); void setConfirmPopupPresenter(ConfirmPopupPresenter confirmPopupPresenter); void setFileUploadPopupPresenter(FileUploadPopupPresenter fileUploadPopupPresenter); void setNotificationEvent(Event<NotificationEvent> notificationEvent); void setScenarioSimulationPresenter(ScenarioSimulationEditorPresenter scenarioSimulationEditorPresenter); void setScenarioCommandRegistryManager(ScenarioCommandRegistryManager scenarioCommandRegistryManager); void setScenarioCommandManager(ScenarioCommandManager scenarioCommandManager); void setContext(ScenarioSimulationContext context); @PreDestroy void unregisterHandlers(); @Override void onEvent(AppendColumnEvent event); @Override void onEvent(AppendRowEvent event); @Override void onEvent(DeleteColumnEvent event); @Override void onEvent(DeleteRowEvent event); @Override void onEvent(DisableTestToolsEvent event); @Override void onEvent(DuplicateInstanceEvent event); @Override void onEvent(DuplicateRowEvent event); @Override void onEvent(EnableTestToolsEvent event); @Override void onEvent(ImportEvent event); @Override void onEvent(InsertColumnEvent event); @Override void onEvent(InsertRowEvent event); @Override void onEvent(PrependColumnEvent event); @Override void onEvent(PrependRowEvent event); @Override void onEvent(RedoEvent event); @Override void onEvent(ReloadTestToolsEvent event); @Override void onEvent(RunSingleScenarioEvent event); @Override void onEvent(ScenarioGridReloadEvent event); @Override void onEvent(ScenarioNotificationEvent event); @Override void onEvent(SetGridCellValueEvent event); @Override void onEvent(SetHeaderCellValueEvent event); @Override void onEvent(SetInstanceHeaderEvent event); @Override void onEvent(SetPropertyHeaderEvent event); @Override void onEvent(UndoEvent event); @Override void onEvent(UnsupportedDMNEvent event); @Override void onEvent(ValidateSimulationEvent event); }
ScenarioSimulationEventHandler implements AppendColumnEventHandler,
                                                       AppendRowEventHandler,
                                                       DeleteColumnEventHandler,
                                                       DeleteRowEventHandler,
                                                       DisableTestToolsEventHandler,
                                                       DuplicateInstanceEventHandler,
                                                       DuplicateRowEventHandler,
                                                       EnableTestToolsEventHandler,
                                                       ImportEventHandler,
                                                       InsertColumnEventHandler,
                                                       InsertRowEventHandler,
                                                       PrependColumnEventHandler,
                                                       PrependRowEventHandler,
                                                       RedoEventHandler,
                                                       ReloadTestToolsEventHandler,
                                                       RunSingleScenarioEventHandler,
                                                       ScenarioGridReloadEventHandler,
                                                       ScenarioNotificationEventHandler,
                                                       SetGridCellValueEventHandler,
                                                       SetHeaderCellValueEventHandler,
                                                       SetInstanceHeaderEventHandler,
                                                       SetPropertyHeaderEventHandler,
                                                       UndoEventHandler,
                                                       UnsupportedDMNEventHandler,
                                                       ValidateSimulationEventHandler { @Override public void onEvent(AppendColumnEvent event) { context.getStatus().setColumnId(String.valueOf(new Date().getTime())); context.getStatus().setColumnGroup(event.getColumnGroup()); commonExecution(new AppendColumnCommand(event.getGridWidget()), true); }  void setEventBus(EventBus eventBus); void setDeletePopupPresenter(DeletePopupPresenter deletePopupPresenter); void setPreserveDeletePopupPresenter(PreserveDeletePopupPresenter preserveDeletePopupPresenter); void setConfirmPopupPresenter(ConfirmPopupPresenter confirmPopupPresenter); void setFileUploadPopupPresenter(FileUploadPopupPresenter fileUploadPopupPresenter); void setNotificationEvent(Event<NotificationEvent> notificationEvent); void setScenarioSimulationPresenter(ScenarioSimulationEditorPresenter scenarioSimulationEditorPresenter); void setScenarioCommandRegistryManager(ScenarioCommandRegistryManager scenarioCommandRegistryManager); void setScenarioCommandManager(ScenarioCommandManager scenarioCommandManager); void setContext(ScenarioSimulationContext context); @PreDestroy void unregisterHandlers(); @Override void onEvent(AppendColumnEvent event); @Override void onEvent(AppendRowEvent event); @Override void onEvent(DeleteColumnEvent event); @Override void onEvent(DeleteRowEvent event); @Override void onEvent(DisableTestToolsEvent event); @Override void onEvent(DuplicateInstanceEvent event); @Override void onEvent(DuplicateRowEvent event); @Override void onEvent(EnableTestToolsEvent event); @Override void onEvent(ImportEvent event); @Override void onEvent(InsertColumnEvent event); @Override void onEvent(InsertRowEvent event); @Override void onEvent(PrependColumnEvent event); @Override void onEvent(PrependRowEvent event); @Override void onEvent(RedoEvent event); @Override void onEvent(ReloadTestToolsEvent event); @Override void onEvent(RunSingleScenarioEvent event); @Override void onEvent(ScenarioGridReloadEvent event); @Override void onEvent(ScenarioNotificationEvent event); @Override void onEvent(SetGridCellValueEvent event); @Override void onEvent(SetHeaderCellValueEvent event); @Override void onEvent(SetInstanceHeaderEvent event); @Override void onEvent(SetPropertyHeaderEvent event); @Override void onEvent(UndoEvent event); @Override void onEvent(UnsupportedDMNEvent event); @Override void onEvent(ValidateSimulationEvent event);  }