StringUtils { public static String[] split(String s, char delim) { return split(s, s.length(), delim, Trim.NONE); }  static String trim(String s, Trim trim); static String requireNonEmpty(String s); static String requireNonBlank(String s); static Optional<String> optionalOf(String s); static String cut(String s, int length, char delim, int index); static String cut(String s, int length, char delim, int index, Trim trim); static String[] split(String s, char delim); static String[] split(String s, int length, char delim); static String[] split(String s, int length, char delim, Trim trim); static String join(String[] ss, int off, int len, char delim); static String trimDS(String s); static String trimAndNullifyEmpty(String s); static final String[] EMPTY_STRINGS; }
@Test void split() { assertArrayEquals(StringUtils.EMPTY_STRINGS, StringUtils.split(JOINED, 0, DELIM)); assertArrayEquals(ONE, StringUtils.split(JOINED, 1, DELIM)); assertArrayEquals(ARRAY, StringUtils.split(JOINED, JOINED.length(), DELIM)); }