/** * Joins the given {@code String}s using a given delimiter. The following example illustrates proper usage of this * method: * * <pre> * Strings.join("a", "b", "c").with("|") * </pre> * * which will result in the {@code String} <code>"a|b|c"</code>. * * @param strings the {@code String}s to join. * @return an intermediate object that takes a given delimiter and knows how to join the given {@code String}s. * @see StringsToJoin#with(String) */ public static StringsToJoin join(String... strings) { return new StringsToJoin(strings); }
static String screenshotFileNameFrom(ITestResult result) { String[] parts = namePartsFrom(result); return join(parts).with("."); }