@Test public void testShouldWrapSingleProperties() throws Exception { final PropertyChain unit = new PropertyChain(singletonList(p1)); assertThat(unit.getProperty("ONLY_IN_P1"), equalTo("FROM_P1")); }
public String getProperty(String key) { for (Properties properties : propertiesChain) { final String p = properties.getProperty(key); if (p != null) return p; } return null; }
PropertyChain { public String getProperty(String key) { for (Properties properties : propertiesChain) { final String p = properties.getProperty(key); if (p != null) return p; } return null; } }
PropertyChain { public String getProperty(String key) { for (Properties properties : propertiesChain) { final String p = properties.getProperty(key); if (p != null) return p; } return null; } PropertyChain(Iterable<Properties> propertiesChain); }
PropertyChain { public String getProperty(String key) { for (Properties properties : propertiesChain) { final String p = properties.getProperty(key); if (p != null) return p; } return null; } PropertyChain(Iterable<Properties> propertiesChain); static PropertyChain build(Properties... properties); String getProperty(String key); }
PropertyChain { public String getProperty(String key) { for (Properties properties : propertiesChain) { final String p = properties.getProperty(key); if (p != null) return p; } return null; } PropertyChain(Iterable<Properties> propertiesChain); static PropertyChain build(Properties... properties); String getProperty(String key);  }