void (String text, boolean atLineStart, double clipWidth, int... expectedBreaks) { IntList actualBreaks = LineWrapper.calcBreakOffsets(text.toCharArray(), 0, text.length(), atLineStart, 0, clipWidth, myWidthProvider); assertArrayEquals(expectedBreaks, actualBreaks.toIntArray()); }