@Test public void testManageGridLeftClickReadOnlyTrue() { when(informationHeaderMetaDataMock.isReadOnly()).thenReturn(true); scenarioSimulationMainGridPanelClickHandler.setEventBus(eventBusMock); when(scenarioGridCellMock.isEditingMode()).thenReturn(false); doReturn(null).when(scenarioSimulationMainGridPanelClickHandler).getUiHeaderRowIndexLocal(isA(Point2D.class)); doReturn(UI_ROW_INDEX).when(scenarioSimulationMainGridPanelClickHandler).getUiRowIndexLocal(anyDouble()); doReturn(UI_COLUMN_INDEX).when(scenarioSimulationMainGridPanelClickHandler).getUiColumnIndexLocal(anyDouble()); assertTrue(scenarioSimulationMainGridPanelClickHandler.manageCoordinates((int) CLICK_POINT_X, (int) CLICK_POINT_Y)); verify(scenarioGridModelMock, times(1)).selectCell(eq(1), eq(0)); }
@Override public void setEventBus(EventBus eventBus) { this.eventBus = eventBus; }
ScenarioSimulationMainGridPanelClickHandler extends AbstractScenarioSimulationGridPanelHandler implements ScenarioSimulationGridPanelClickHandler { @Override public void setEventBus(EventBus eventBus) { this.eventBus = eventBus; } }
ScenarioSimulationMainGridPanelClickHandler extends AbstractScenarioSimulationGridPanelHandler implements ScenarioSimulationGridPanelClickHandler { @Override public void setEventBus(EventBus eventBus) { this.eventBus = eventBus; }  }
ScenarioSimulationMainGridPanelClickHandler extends AbstractScenarioSimulationGridPanelHandler implements ScenarioSimulationGridPanelClickHandler { @Override public void setEventBus(EventBus eventBus) { this.eventBus = eventBus; }  void setScenarioContextMenuRegistry(ScenarioContextMenuRegistry scenarioContextMenuRegistry); @Override void setEventBus(EventBus eventBus); @Override void onClick(ClickEvent event); @Override @SuppressWarnings("unchecked") void onContextMenu(final ContextMenuEvent event); @Override void hideMenus(); }
ScenarioSimulationMainGridPanelClickHandler extends AbstractScenarioSimulationGridPanelHandler implements ScenarioSimulationGridPanelClickHandler { @Override public void setEventBus(EventBus eventBus) { this.eventBus = eventBus; }  void setScenarioContextMenuRegistry(ScenarioContextMenuRegistry scenarioContextMenuRegistry); @Override void setEventBus(EventBus eventBus); @Override void onClick(ClickEvent event); @Override @SuppressWarnings("unchecked") void onContextMenu(final ContextMenuEvent event); @Override void hideMenus();  }