void () { initText("abc def"); getEditor().getSettings().setAdditionalColumnsCount(0); getEditor().getSettings().setAdditionalLinesCount(0); configureSoftWraps(4); getEditor().getSettings().setUseSoftWraps(false); assertEquals(new Dimension(70, (int)(10 * FontPreferences.DEFAULT_LINE_SPACING)), getEditor().getContentComponent().getPreferredSize()); }