@ParameterizedTest @ArgumentsSource(TestCaseArgumentsProvider.class) @TestCase({"", "null", ""}) @TestCase({"", "", ""}) @TestCase({"null", "", ""}) @TestCase({"null", "null", ""}) @TestCase({"null", "A", "A"}) @TestCase({"", "A", "A"}) @TestCase({"A", "", "A"}) @TestCase({"A", "null", "A"}) @TestCase({"null", "xyz", "xyz"}) @TestCase({"", "xyz", "xyz"}) @TestCase({"x", "yz", "xyz"}) @TestCase({"xy", "z", "xyz"}) @TestCase({"xyz", "", "xyz"}) @TestCase({"xyz", "null", "xyz"}) void append(String input, String suffix, String expectedOutput) { String result = StringUtil.append(suffix).apply(input); assertThat(result, is(expectedOutput)); }
public static <T> Function<T,String> append(String arg) { return s -> coalesce(s, "") + coalesce(arg, ""); }
StringUtil extends UtilityClass { public static <T> Function<T,String> append(String arg) { return s -> coalesce(s, "") + coalesce(arg, ""); } }
StringUtil extends UtilityClass { public static <T> Function<T,String> append(String arg) { return s -> coalesce(s, "") + coalesce(arg, ""); }  }
StringUtil extends UtilityClass { public static <T> Function<T,String> append(String arg) { return s -> coalesce(s, "") + coalesce(arg, ""); }  static String lowercaseFirst(String s); static String uppercaseFirst(String s); static String camelToUpper(String camelName); static String hex(byte... bytes); static String octal(byte... bytes); static Function<T,String> prepend(String arg); static Function<T,String> append(String arg); }
StringUtil extends UtilityClass { public static <T> Function<T,String> append(String arg) { return s -> coalesce(s, "") + coalesce(arg, ""); }  static String lowercaseFirst(String s); static String uppercaseFirst(String s); static String camelToUpper(String camelName); static String hex(byte... bytes); static String octal(byte... bytes); static Function<T,String> prepend(String arg); static Function<T,String> append(String arg);  }