DeleteAndEditCell extends KeyboardOperationEditCell { @Override public boolean perform(final GridWidget gridWidget, final boolean isShiftKeyDown, final boolean isControlKeyDown) { final GuidedDecisionTableView view = (GuidedDecisionTableView) gridWidget; final GuidedDecisionTableView.Presenter dtPresenter = view.getPresenter(); dtPresenter.onDeleteSelectedCells(); return super.perform(gridWidget, isShiftKeyDown, isControlKeyDown); } DeleteAndEditCell(final GridLayer gridLayer); @Override int getKeyCode(); @Override TriStateBoolean isShiftKeyDown(); @Override TriStateBoolean isControlKeyDown(); @Override boolean isExecutable(GridWidget gridWidget); @Override boolean perform(final GridWidget gridWidget,
                           final boolean isShiftKeyDown,
                           final boolean isControlKeyDown);  }
@Test public void checkPerformanceWithSelectedCell() { uiModel.selectCell(1, 2); handler.perform(gridWidget, true, true); verify(dtPresenter, times(1)).onDeleteSelectedCells(); verify(gridWidget, times(1)).startEditingCell(eq(1), eq(2)); }