@Test public void testFormatter() { Assert.assertEquals(StringFunctions.formatter("hello %s").apply("world"), "hello world"); Assert.assertEquals(StringFunctions.formatterForArray("%s %s").apply(new String[] { "hello", "world" }), "hello world"); }
@Test public static void testFormatter() { Assert.assertEquals(StringFunctions.formatter("Hello %s").apply("World"), "Hello World"); }
.appendAll(Iterables.transform(pgctlLocations, StringFunctions.formatter("test -x %s/pg_ctl"))) .append(installPackage(ImmutableMap.of( "yum", "postgresql"+shortVersion+" postgresql"+shortVersion+"-server",