assertEquals("Unexpected selection start for caret " + (i + 1), new VisualPosition(coordinates[i * 4], coordinates[i * 4 + 2]), caret.getSelectionStartPosition());
assertEquals("Unexpected selection end for caret " + (i + 1), new VisualPosition(coordinates[i * 4], coordinates[i * 4 + 3]), caret.getSelectionEndPosition());
}
}
public static void verifySoftWrapPositions(Integer... positions) {
<BUG>List<Integer> softWrapPositions = new ArrayList<Integer>();
for (SoftWrap softWrap : myEditor.getSoftWrapModel().getSoftWrapsForRange(0, myEditor.getDocument().getTextLength())) {</BUG>
softWrapPositions.add(softWrap.getStart());
}
assertArrayEquals(positions, softWrapPositions.toArray());

assertEquals("Unexpected selection start for caret " + (i + 1), new VisualPosition(coordinates[i * 4], coordinates[i * 4 + 2]), caret.getSelectionStartPosition());
assertEquals("Unexpected selection end for caret " + (i + 1), new VisualPosition(coordinates[i * 4], coordinates[i * 4 + 3]), caret.getSelectionEndPosition());
}
}
public static void verifySoftWrapPositions(Integer... positions) {
List<Integer> softWrapPositions = new ArrayList<>();
for (SoftWrap softWrap : myEditor.getSoftWrapModel().getSoftWrapsForRange(0, myEditor.getDocument().getTextLength())) {
softWrapPositions.add(softWrap.getStart());
}
assertArrayEquals(positions, softWrapPositions.toArray());
