@Test(dataProvider = "flatten") public void testFlatten(String expected, String[] data, String separator) { assert expected.equals(StringUtils.flatten(data, separator)); if(separator.equals(" ")) assert expected.equals(StringUtils.flatten(data)); }
public static String flatten(String s[]) { return flatten(s, " "); }
StringUtils { public static String flatten(String s[]) { return flatten(s, " "); } }
StringUtils { public static String flatten(String s[]) { return flatten(s, " "); } private  StringUtils(); }
StringUtils { public static String flatten(String s[]) { return flatten(s, " "); } private  StringUtils(); static boolean endsWithIgnoreCase(String a, String b); static boolean matchesIgnoreCase(String a, String b, int posA); static boolean endsWithIgnoreCase(String a, char[] b); static boolean matchesIgnoreCase(String a, char[] b, int posA); static boolean endsWith(String a, char[] b); static boolean matches(String a, char[] b, int posA); static boolean startsWithIgnoreCase(String a, String b); static boolean equals(String s1, String s2, Locale locale); static boolean equals(String s1, String s2, boolean caseSensitive); static int parseIntDef(String s, int def); static String capitalize(String s); static String flatten(String s[]); static String flatten(String s[], String separator); static boolean isNullOrEmpty(String string); }
StringUtils { public static String flatten(String s[]) { return flatten(s, " "); } private  StringUtils(); static boolean endsWithIgnoreCase(String a, String b); static boolean matchesIgnoreCase(String a, String b, int posA); static boolean endsWithIgnoreCase(String a, char[] b); static boolean matchesIgnoreCase(String a, char[] b, int posA); static boolean endsWith(String a, char[] b); static boolean matches(String a, char[] b, int posA); static boolean startsWithIgnoreCase(String a, String b); static boolean equals(String s1, String s2, Locale locale); static boolean equals(String s1, String s2, boolean caseSensitive); static int parseIntDef(String s, int def); static String capitalize(String s); static String flatten(String s[]); static String flatten(String s[], String separator); static boolean isNullOrEmpty(String string); static final String EMPTY; }