@Test public void testGetConfig() throws Exception { PropertiesCompatibleFileConfigRepository configFileRepository = new PropertiesCompatibleFileConfigRepository( configFile); assertSame(someProperties, configFileRepository.getConfig()); verify(configFile, times(1)).addChangeListener(configFileRepository); }
@Override public Properties getConfig() { if (cachedProperties == null) { sync(); } return cachedProperties; }
PropertiesCompatibleFileConfigRepository extends AbstractConfigRepository implements
    ConfigFileChangeListener { @Override public Properties getConfig() { if (cachedProperties == null) { sync(); } return cachedProperties; } }
PropertiesCompatibleFileConfigRepository extends AbstractConfigRepository implements
    ConfigFileChangeListener { @Override public Properties getConfig() { if (cachedProperties == null) { sync(); } return cachedProperties; } PropertiesCompatibleFileConfigRepository(PropertiesCompatibleConfigFile configFile); }
PropertiesCompatibleFileConfigRepository extends AbstractConfigRepository implements
    ConfigFileChangeListener { @Override public Properties getConfig() { if (cachedProperties == null) { sync(); } return cachedProperties; } PropertiesCompatibleFileConfigRepository(PropertiesCompatibleConfigFile configFile); @Override Properties getConfig(); @Override void setUpstreamRepository(ConfigRepository upstreamConfigRepository); @Override ConfigSourceType getSourceType(); @Override void onChange(ConfigFileChangeEvent changeEvent); }
PropertiesCompatibleFileConfigRepository extends AbstractConfigRepository implements
    ConfigFileChangeListener { @Override public Properties getConfig() { if (cachedProperties == null) { sync(); } return cachedProperties; } PropertiesCompatibleFileConfigRepository(PropertiesCompatibleConfigFile configFile); @Override Properties getConfig(); @Override void setUpstreamRepository(ConfigRepository upstreamConfigRepository); @Override ConfigSourceType getSourceType(); @Override void onChange(ConfigFileChangeEvent changeEvent);  }