SelectNextCellOnRow extends BaseKeyboardOperation { @Override public boolean perform(final GridWidget gridWidget, final boolean isShiftKeyDown, final boolean isControlKeyDown) { final boolean redraw = gridWidget.adjustSelection(SelectionExtension.RIGHT, false); scrollSelectedCellIntoView(gridWidget); return redraw; } SelectNextCellOnRow(final GridLayer gridLayer); @Override int getKeyCode(); @Override TriStateBoolean isShiftKeyDown(); @Override TriStateBoolean isControlKeyDown(); @Override boolean perform(final GridWidget gridWidget,
                           final boolean isShiftKeyDown,
                           final boolean isControlKeyDown);  }
@Test public void checkPerformance() { handler.perform(gridWidget, true, true); verify(gridWidget, times(1)).adjustSelection(eq(SelectionExtension.RIGHT), eq(false)); }