@Test public void testSetPropertiesShouldPutPropertiesToPropertyHolder() { properties.put("switch", "stub"); properties.put("proxy.port", "1234"); underTest.setProperties(properties); PropertyHolder actual = (PropertyHolder) Whitebox.getInternalState(underTest, "propertyHolder"); assertEquals(actual.get("switch"), "stub"); assertEquals(actual.getInt("proxy.port"), Integer.valueOf(1234)); }
public void setProperties(final Properties properties) { Set<Object> keySet = properties.keySet(); for (Object key : keySet) { String value = properties.getProperty(key.toString()); propertyHolder.addProperty(key.toString(), value); } }
PropertyReader { public void setProperties(final Properties properties) { Set<Object> keySet = properties.keySet(); for (Object key : keySet) { String value = properties.getProperty(key.toString()); propertyHolder.addProperty(key.toString(), value); } } }
PropertyReader { public void setProperties(final Properties properties) { Set<Object> keySet = properties.keySet(); for (Object key : keySet) { String value = properties.getProperty(key.toString()); propertyHolder.addProperty(key.toString(), value); } }  }
PropertyReader { public void setProperties(final Properties properties) { Set<Object> keySet = properties.keySet(); for (Object key : keySet) { String value = properties.getProperty(key.toString()); propertyHolder.addProperty(key.toString(), value); } }  void setProperties(final Properties properties); }
PropertyReader { public void setProperties(final Properties properties) { Set<Object> keySet = properties.keySet(); for (Object key : keySet) { String value = properties.getProperty(key.toString()); propertyHolder.addProperty(key.toString(), value); } }  void setProperties(final Properties properties);  }