@Test(expected = IllegalStateException.class) public void testGetConfigWithConfigFileReturnNullProperties() throws Exception { when(configFile.asProperties()).thenReturn(null); PropertiesCompatibleFileConfigRepository configFileRepository = new PropertiesCompatibleFileConfigRepository( configFile); configFileRepository.getConfig(); }
@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);  }