GotoEndOfRow extends BaseKeyboardOperation { @Override public boolean perform(final GridWidget gridWidget, final boolean isShiftKeyDown, final boolean isControlKeyDown) { final boolean redraw = selectRightMostCell(gridWidget); scrollSelectedCellIntoView(gridWidget); return redraw; } GotoEndOfRow(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(0, 1); handler.perform(gridWidget, true, true); verify(gridWidget, times(1)).selectCell(eq(0), eq(2), eq(false), eq(false)); }