use of com.synopsys.integration.alert.common.persistence.accessor.SystemMessageAccessor in project hub-alert by blackducksoftware.
the class SystemValidatorTest method testValidateProviders.
@Test
public void testValidateProviders() throws IOException {
BlackDuckProperties blackDuckProperties = Mockito.mock(BlackDuckProperties.class);
Mockito.when(blackDuckProperties.getBlackDuckUrl()).thenReturn(Optional.of("Black Duck URL"));
Mockito.when(blackDuckProperties.getApiToken()).thenReturn("Black Duck API Token");
Mockito.when(blackDuckProperties.getBlackDuckTimeout()).thenReturn(BlackDuckProperties.DEFAULT_TIMEOUT);
SettingsSystemValidator settingsSystemValidator = Mockito.mock(SettingsSystemValidator.class);
ConfigurationModelConfigurationAccessor configurationModelConfigurationAccessor = Mockito.mock(ConfigurationModelConfigurationAccessor.class);
UserSystemValidator userSystemValidator = Mockito.mock(UserSystemValidator.class);
SystemMessageAccessor systemMessageAccessor = Mockito.mock(SystemMessageAccessor.class);
SystemMessageInitializer systemValidator = new SystemMessageInitializer(List.of(), settingsSystemValidator, configurationModelConfigurationAccessor, userSystemValidator, systemMessageAccessor);
systemValidator.validateProviders();
assertTrue(outputLogger.isLineContainingText("Validating configured providers: "));
}
Aggregations