use of com.thoughtworks.go.config.ConfigReposMaterialParseResultManager.ConfigRepoReparseListener in project gocd by gocd.
the class ConfigReposMaterialParseResultManagerTest method shouldAddEntityConfigChangedListeners.
@Test
void shouldAddEntityConfigChangedListeners() {
final GoConfigService goConfigService = mock(GoConfigService.class);
manager.attachConfigUpdateListeners(goConfigService);
final ArgumentCaptor<ConfigChangedListener> listenerArgumentCaptor = ArgumentCaptor.forClass(ConfigChangedListener.class);
verify(goConfigService).register(listenerArgumentCaptor.capture());
assertTrue(listenerArgumentCaptor.getValue() instanceof ConfigRepoReparseListener);
}
Aggregations