void () { initText("Some long line of text"); configureSoftWraps(15); // emulate adding editor to a wide component SoftWrapApplianceManager.VisibleAreaWidthProvider widthProvider = ((SoftWrapModelImpl)getEditor().getSoftWrapModel()).getApplianceManager().getWidthProvider(); ((EditorTestUtil.TestWidthProvider)widthProvider).setVisibleAreaWidth(1_000_000); new JPanel().add(getEditor().getComponent()); runWriteCommand(() -> getEditor().getDocument().insertString(0, " ")); verifySoftWrapPositions(); }