void (Integer... positions) { List<Integer> softWrapPositions = new ArrayList<>(); for (SoftWrap softWrap : getEditor().getSoftWrapModel().getSoftWrapsForRange(0, getEditor().getDocument().getTextLength())) { softWrapPositions.add(softWrap.getStart()); } assertArrayEquals(positions, softWrapPositions.toArray()); }