@Test public void testAdvancedResolved() { Properties properties = new Properties(); properties.setProperty("key1", "value1"); properties.setProperty("key2", "${key1}"); properties.setProperty("key3", "value3"); properties.setProperty("key4", "${key2} ${key3}"); properties = PropertiesResolver.resolveProperties(properties); Assert.assertEquals("value1 value3", properties.get("key4")); }
public static Properties resolveProperties(Properties properties, Properties resolvedProperties) { if (properties == null) { return null; } return resolveProperties(copyProperties(properties), copyProperties(resolvedProperties), new HashSet<String>(5)); }
PropertiesResolver { public static Properties resolveProperties(Properties properties, Properties resolvedProperties) { if (properties == null) { return null; } return resolveProperties(copyProperties(properties), copyProperties(resolvedProperties), new HashSet<String>(5)); } }
PropertiesResolver { public static Properties resolveProperties(Properties properties, Properties resolvedProperties) { if (properties == null) { return null; } return resolveProperties(copyProperties(properties), copyProperties(resolvedProperties), new HashSet<String>(5)); } private  PropertiesResolver(); }
PropertiesResolver { public static Properties resolveProperties(Properties properties, Properties resolvedProperties) { if (properties == null) { return null; } return resolveProperties(copyProperties(properties), copyProperties(resolvedProperties), new HashSet<String>(5)); } private  PropertiesResolver(); static Properties resolveProperties(Properties properties, Properties resolvedProperties); static Properties resolveProperties(Properties properties); }
PropertiesResolver { public static Properties resolveProperties(Properties properties, Properties resolvedProperties) { if (properties == null) { return null; } return resolveProperties(copyProperties(properties), copyProperties(resolvedProperties), new HashSet<String>(5)); } private  PropertiesResolver(); static Properties resolveProperties(Properties properties, Properties resolvedProperties); static Properties resolveProperties(Properties properties);  }