EditorMouseFixture (int x, int y) { Assert.assertFalse("Cannot test mouse dragging: editor visible size is not set. Use EditorTestUtil.setEditorVisibleSize(width, height)", myEditor.getScrollingModel().getVisibleArea().isEmpty()); JComponent component = myEditor.getContentComponent(); return dragToXY(component, x, y); }