void () { // Any attempts to move the caret within an empty editor aren't supposed to cause caret movements => no caret updates are expected. final EditorImpl editor = initEditor("", 0, 0, 0); doTestCaretNotifications( editor.getContentComponent(), new CaretAction(() -> left(), null), new CaretAction(() -> right(), null), new CaretAction(() -> up(), null), new CaretAction(() -> down(), null), new CaretAction(() -> left(), null), new CaretAction(() -> down(), null), new CaretAction(() -> right(), null), new CaretAction(() -> up(), null) ); }