test_class.declarator: initializer = new StagemonitorCoreConfigurationSourceInitializer()
test_class.modifier: private
test_class.original_string: private StagemonitorCoreConfigurationSourceInitializer initializer = new StagemonitorCoreConfigurationSourceInitializer();
test_class.type: StagemonitorCoreConfigurationSourceInitializer
test_class.var_name: initializer
test_class.declarator: configuration = Mockito.mock(ConfigurationRegistry.class)
test_class.modifier: private final
test_class.original_string: private final ConfigurationRegistry configuration = Mockito.mock(ConfigurationRegistry.class);
test_class.type: ConfigurationRegistry
test_class.var_name: configuration
test_class.declarator: corePlugin = Mockito.mock(CorePlugin.class)
test_class.modifier: private final
test_class.original_string: private final CorePlugin corePlugin = Mockito.mock(CorePlugin.class);
test_class.type: CorePlugin
test_class.var_name: corePlugin
test_class.file: stagemonitor-core/src/test/java/org/stagemonitor/core/StagemonitorCoreConfigurationSourceInitializerTest.java
test_class.identifier: StagemonitorCoreConfigurationSourceInitializerTest
test_case.body: @Test
  	public void testCorrectProperties() throws IOException {
  		when(corePlugin.getRemotePropertiesConfigUrls()).thenReturn(Collections.singletonList(new URL("http://localhost/config.json")));
  
  		initializer.onConfigurationInitialized(new StagemonitorConfigurationSourceInitializer.ConfigInitializedArguments(configuration));
  
  		ArgumentCaptor<RemotePropertiesConfigurationSource> configSourceCaptor = ArgumentCaptor.forClass(RemotePropertiesConfigurationSource.class);
  		verify(configuration).addConfigurationSourceAfter(configSourceCaptor.capture(), eq(SimpleSource.class));
  
  		Assert.assertEquals("http://localhost/config.json", configSourceCaptor.getValue().getName());
  	}
test_case.class_method_signature: StagemonitorCoreConfigurationSourceInitializerTest.testCorrectProperties()
test_case.full_signature: @Test public void testCorrectProperties()
test_case.identifier: testCorrectProperties
test_case.invocations: thenReturn when getRemotePropertiesConfigUrls singletonList onConfigurationInitialized forClass addConfigurationSourceAfter verify capture eq assertEquals getName getValue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCorrectProperties()
focal_class.declarator: logger = LoggerFactory.getLogger(getClass())
focal_class.modifier: private final
focal_class.original_string: private final Logger logger = LoggerFactory.getLogger(getClass());
focal_class.type: Logger
focal_class.var_name: logger
focal_class.file: stagemonitor-core/src/main/java/org/stagemonitor/core/StagemonitorCoreConfigurationSourceInitializer.java
focal_class.identifier: StagemonitorCoreConfigurationSourceInitializer
focal_class.class_method_signature: StagemonitorCoreConfigurationSourceInitializer.modifyConfigurationSources(ModifyArguments modifyArguments)
focal_class.full_signature: @Override public void modifyConfigurationSources(ModifyArguments modifyArguments)
focal_class.identifier: modifyConfigurationSources
focal_class.modifiers: @Override public
focal_class.parameters: (ModifyArguments modifyArguments)
focal_class.return: void
focal_class.signature: void modifyConfigurationSources(ModifyArguments modifyArguments)
focal_class.class_method_signature: StagemonitorCoreConfigurationSourceInitializer.onConfigurationInitialized(ConfigInitializedArguments configInitializedArguments)
focal_class.full_signature: @Override public void onConfigurationInitialized(ConfigInitializedArguments configInitializedArguments)
focal_class.identifier: onConfigurationInitialized
focal_class.modifiers: @Override public
focal_class.parameters: (ConfigInitializedArguments configInitializedArguments)
focal_class.return: void
focal_class.signature: void onConfigurationInitialized(ConfigInitializedArguments configInitializedArguments)
focal_class.class_method_signature: StagemonitorCoreConfigurationSourceInitializer.addElasticsearchConfigurationSources(ConfigurationRegistry configuration, CorePlugin corePlugin, Collection<String> elasticsearchConfigurationSourceIds)
focal_class.full_signature: private void addElasticsearchConfigurationSources(ConfigurationRegistry configuration, CorePlugin corePlugin, Collection<String> elasticsearchConfigurationSourceIds)
focal_class.identifier: addElasticsearchConfigurationSources
focal_class.modifiers: private
focal_class.parameters: (ConfigurationRegistry configuration, CorePlugin corePlugin, Collection<String> elasticsearchConfigurationSourceIds)
focal_class.return: void
focal_class.signature: void addElasticsearchConfigurationSources(ConfigurationRegistry configuration, CorePlugin corePlugin, Collection<String> elasticsearchConfigurationSourceIds)
focal_class.class_method_signature: StagemonitorCoreConfigurationSourceInitializer.assertElasticsearchIsAvailable(ElasticsearchClient elasticsearchClient, CorePlugin corePlugin)
focal_class.full_signature: private void assertElasticsearchIsAvailable(ElasticsearchClient elasticsearchClient, CorePlugin corePlugin)
focal_class.identifier: assertElasticsearchIsAvailable
focal_class.modifiers: private
focal_class.parameters: (ElasticsearchClient elasticsearchClient, CorePlugin corePlugin)
focal_class.return: void
focal_class.signature: void assertElasticsearchIsAvailable(ElasticsearchClient elasticsearchClient, CorePlugin corePlugin)
focal_class.class_method_signature: StagemonitorCoreConfigurationSourceInitializer.addRemotePropertiesConfigurationSources(ConfigurationRegistry configuration, CorePlugin corePlugin)
focal_class.full_signature: private void addRemotePropertiesConfigurationSources(ConfigurationRegistry configuration, CorePlugin corePlugin)
focal_class.identifier: addRemotePropertiesConfigurationSources
focal_class.modifiers: private
focal_class.parameters: (ConfigurationRegistry configuration, CorePlugin corePlugin)
focal_class.return: void
focal_class.signature: void addRemotePropertiesConfigurationSources(ConfigurationRegistry configuration, CorePlugin corePlugin)
focal_class.class_method_signature: StagemonitorCoreConfigurationSourceInitializer.assertRemotePropertiesServerIsAvailable(final URL configUrl)
focal_class.full_signature: private void assertRemotePropertiesServerIsAvailable(final URL configUrl)
focal_class.identifier: assertRemotePropertiesServerIsAvailable
focal_class.modifiers: private
focal_class.parameters: (final URL configUrl)
focal_class.return: void
focal_class.signature: void assertRemotePropertiesServerIsAvailable(final URL configUrl)
focal_class.superclass: extends StagemonitorConfigurationSourceInitializer
focal_method.body: @Override
  	public void onConfigurationInitialized(ConfigInitializedArguments configInitializedArguments) throws IOException {
  		final CorePlugin corePlugin = configInitializedArguments.getConfiguration().getConfig(CorePlugin.class);
  		final Collection<String> elasticsearchConfigurationSourceIds = corePlugin.getElasticsearchConfigurationSourceProfiles();
  		if (!elasticsearchConfigurationSourceIds.isEmpty()) {
  			addElasticsearchConfigurationSources(configInitializedArguments.getConfiguration(), corePlugin, elasticsearchConfigurationSourceIds);
  		}
  
  		if (!corePlugin.getRemotePropertiesConfigUrls().isEmpty()) {
  			logger.debug("RemotePropertiesConfigurationSource is enabled");
  			addRemotePropertiesConfigurationSources(configInitializedArguments.getConfiguration(), corePlugin);
  		}
  	}
focal_method.class_method_signature: StagemonitorCoreConfigurationSourceInitializer.onConfigurationInitialized(ConfigInitializedArguments configInitializedArguments)
focal_method.full_signature: @Override public void onConfigurationInitialized(ConfigInitializedArguments configInitializedArguments)
focal_method.identifier: onConfigurationInitialized
focal_method.invocations: getConfig getConfiguration getElasticsearchConfigurationSourceProfiles isEmpty addElasticsearchConfigurationSources getConfiguration isEmpty getRemotePropertiesConfigUrls debug addRemotePropertiesConfigurationSources getConfiguration
focal_method.modifiers: @Override public
focal_method.parameters: (ConfigInitializedArguments configInitializedArguments)
focal_method.return: void
focal_method.signature: void onConfigurationInitialized(ConfigInitializedArguments configInitializedArguments)