StringUtil { public static List<String> split(String s) { return split(s, CharPool.COMMA); }  static String merge(boolean[] array, String delimiter); static String merge(byte[] array, String delimiter); static String merge(char[] array, String delimiter); static String merge(
		Collection<T> col, Function<T, String> toStringFunction,
		String delimiter); static String merge(Collection<T> col, String delimiter); static String merge(double[] array, String delimiter); static String merge(float[] array, String delimiter); static String merge(int[] array, String delimiter); static String merge(
		L list, Function<T, String> toStringFunction, String delimiter); static String merge(
		L list, String delimiter); static String merge(long[] array, String delimiter); static String merge(short[] array, String delimiter); static String merge(String[] array, String delimiter); static String merge(
		T[] array, Function<T, String> toStringFunction, String delimiter); static String merge(T[] array, String delimiter); static List<String> split(String s); static List<String> split(String s, char delimiter);  }
@Test public void testSplit() { Assert.assertSame(Collections.emptyList(), StringUtil.split(null)); Assert.assertSame( Collections.emptyList(), StringUtil.split(StringPool.BLANK)); Assert.assertSame( Collections.emptyList(), StringUtil.split(StringPool.SPACE)); Assert.assertEquals( Collections.<String>emptyList(), StringUtil.split(StringPool.COMMA)); Assert.assertEquals( Collections.<String>emptyList(), StringUtil.split(",,,")); Assert.assertEquals( Collections.singletonList("test"), StringUtil.split("test")); Assert.assertEquals( Collections.singletonList("test"), StringUtil.split("test,")); Assert.assertEquals( Collections.singletonList("test"), StringUtil.split(",test")); Assert.assertEquals( Arrays.asList("test1", "test2"), StringUtil.split("test1-test2", CharPool.DASH)); }