void () { init(""" line1 li<caret>ne2 line3"""); executeAction(IdeActions.ACTION_EDITOR_MOVE_CARET_DOWN_WITH_SELECTION); checkResultByText(""" line1 li<caret>ne2 li<caret>ne3"""); executeAction(IdeActions.ACTION_EDITOR_MOVE_CARET_DOWN_WITH_SELECTION); // hitting document bottom checkResultByText(""" line1 li<caret>ne2 li<caret>ne3"""); executeAction(IdeActions.ACTION_EDITOR_MOVE_CARET_UP_WITH_SELECTION); checkResultByText(""" line1 li<caret>ne2 line3"""); executeAction(IdeActions.ACTION_EDITOR_MOVE_CARET_UP_WITH_SELECTION); // hitting document top checkResultByText(""" li<caret>ne1 li<caret>ne2 line3"""); executeAction(IdeActions.ACTION_EDITOR_MOVE_CARET_UP_WITH_SELECTION); checkResultByText(""" li<caret>ne1 li<caret>ne2 line3"""); executeAction(IdeActions.ACTION_EDITOR_MOVE_CARET_DOWN_WITH_SELECTION); checkResultByText(""" line1 li<caret>ne2 line3"""); }