KeyboardOperationMove extends BaseKeyboardOperation { @Override public boolean perform(final GridWidget gridWidget, final boolean isShiftKeyDown, final boolean isControlKeyDown) { final boolean redraw = gridWidget.adjustSelection(getSelectionExtension(), isShiftKeyDown); baseScrollSelectedCellIntoView(gridWidget); panel.ifPresent(GridLienzoScrollable::refreshScrollPosition); return redraw; } KeyboardOperationMove(final GridLayer gridLayer,
                          final GridLienzoScrollable panel); @Override boolean perform(final GridWidget gridWidget,
                           final boolean isShiftKeyDown,
                           final boolean isControlKeyDown);  }
@Test public void testPerform() { final GridWidget gridWidget = mock(GridWidget.class); doNothing().when(keyboardOperationMove).baseScrollSelectedCellIntoView(gridWidget); keyboardOperationMove.perform(gridWidget, true, true); verify(gridWidget).adjustSelection(extension, true); verify(keyboardOperationMove).baseScrollSelectedCellIntoView(gridWidget); verify(gridLienzoPanel).refreshScrollPosition(); }