@Test public void testAsProperties() throws IOException { setUpConfig(); Properties otherProps = new Properties(); otherProps.put(TEST_PROP, TEST_VAL); settingsFacade.saveConfigProperties(MOCK_FILENAME, otherProps); settingsFacade.afterPropertiesSet(); Properties result = settingsFacade.asProperties(); assertEquals(2, result.size()); assertEquals(TEST_VAL, result.get(TEST_PROP)); assertEquals(LANGUAGE_VALUE, result.get(LANGUAGE_PROP)); }
public Properties asProperties() { Properties result = new Properties(); for (Properties p : config.values()) { result.putAll(p); } return result; }
SettingsFacade { public Properties asProperties() { Properties result = new Properties(); for (Properties p : config.values()) { result.putAll(p); } return result; } }
SettingsFacade { public Properties asProperties() { Properties result = new Properties(); for (Properties p : config.values()) { result.putAll(p); } return result; }  }
SettingsFacade { public Properties asProperties() { Properties result = new Properties(); for (Properties p : config.values()) { result.putAll(p); } return result; }  String getBundleSymbolicName(); String getBundleVersion(); @Autowired void setBundleContext(BundleContext bundleContext); @PostConstruct void afterPropertiesSet(); void setConfigFiles(List<Resource> resources); void setRawConfigFiles(List<Resource> resources); String getProperty(String key); String getProperty(String key, String filename); Properties getProperties(String filename); void setProperty(String key, String value); void saveConfigProperties(String filename, Properties properties); void saveRawConfig(String filename, Resource resource); void saveRawConfig(String filename, String jsonText); InputStream getRawConfig(String filename); Properties asProperties(); void unregisterProperties(String symbolicName); MotechSettings getPlatformSettings(); void savePlatformSettings(MotechSettings settings); boolean areConfigurationSettingsRegistered(); }
SettingsFacade { public Properties asProperties() { Properties result = new Properties(); for (Properties p : config.values()) { result.putAll(p); } return result; }  String getBundleSymbolicName(); String getBundleVersion(); @Autowired void setBundleContext(BundleContext bundleContext); @PostConstruct void afterPropertiesSet(); void setConfigFiles(List<Resource> resources); void setRawConfigFiles(List<Resource> resources); String getProperty(String key); String getProperty(String key, String filename); Properties getProperties(String filename); void setProperty(String key, String value); void saveConfigProperties(String filename, Properties properties); void saveRawConfig(String filename, Resource resource); void saveRawConfig(String filename, String jsonText); InputStream getRawConfig(String filename); Properties asProperties(); void unregisterProperties(String symbolicName); MotechSettings getPlatformSettings(); void savePlatformSettings(MotechSettings settings); boolean areConfigurationSettingsRegistered();  }