@Test public void testReplaceProperties() throws Exception { Properties properties = new Properties(); String value = StringPropertyReplacer.replaceProperties("${foo:bar}", properties); assertThat(value).isEqualTo("bar"); properties.put("foo", "baz"); value = StringPropertyReplacer.replaceProperties("${foo:bar}", properties); assertThat(value).isEqualTo("baz"); properties.put("foo:bar", "ABC"); value = StringPropertyReplacer.replaceProperties("${foo:bar}", properties); assertThat(value).isEqualTo("ABC"); }
public static String replaceProperties(final String string) { return replaceProperties(string, null); }
StringPropertyReplacer { public static String replaceProperties(final String string) { return replaceProperties(string, null); } }
StringPropertyReplacer { public static String replaceProperties(final String string) { return replaceProperties(string, null); }  }
StringPropertyReplacer { public static String replaceProperties(final String string) { return replaceProperties(string, null); }  static String replaceProperties(final String string); static String replaceProperties(final String string, final Properties props); static String replaceProperties(final String string, final Properties props, Function<String, String> filter); }
StringPropertyReplacer { public static String replaceProperties(final String string) { return replaceProperties(string, null); }  static String replaceProperties(final String string); static String replaceProperties(final String string, final Properties props); static String replaceProperties(final String string, final Properties props, Function<String, String> filter); static final String NEWLINE; }