@Test public void shouldReturnAlwaysNullsForEmptyPropertyChain() { final PropertyChain unit = new PropertyChain(Collections.<Properties>emptyList()); assertThat(unit.getProperty("ANY KEY"), nullValue()); }
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);  }