Search in sources :

Example 1 with TestConfigurationServiceImpl

use of net.nemerosa.ontrack.extension.api.support.TestConfigurationServiceImpl in project ontrack by nemerosa.

the class ConfigurationServiceTest method before.

@Before
public void before() {
    configurationRepository = mock(ConfigurationRepository.class);
    securityService = mock(SecurityService.class);
    encryptionService = mock(EncryptionService.class);
    eventPostService = mock(EventPostService.class);
    eventFactory = mock(EventFactory.class);
    OntrackConfigProperties ontrackConfigProperties = new OntrackConfigProperties();
    configurationService = new TestConfigurationServiceImpl(configurationRepository, securityService, encryptionService, eventPostService, eventFactory, ontrackConfigProperties);
}
Also used : SecurityService(net.nemerosa.ontrack.model.security.SecurityService) EncryptionService(net.nemerosa.ontrack.model.security.EncryptionService) EventPostService(net.nemerosa.ontrack.model.events.EventPostService) EventFactory(net.nemerosa.ontrack.model.events.EventFactory) TestConfigurationServiceImpl(net.nemerosa.ontrack.extension.api.support.TestConfigurationServiceImpl) ConfigurationRepository(net.nemerosa.ontrack.model.support.ConfigurationRepository) OntrackConfigProperties(net.nemerosa.ontrack.model.support.OntrackConfigProperties) Before(org.junit.Before)

Aggregations

TestConfigurationServiceImpl (net.nemerosa.ontrack.extension.api.support.TestConfigurationServiceImpl)1 EventFactory (net.nemerosa.ontrack.model.events.EventFactory)1 EventPostService (net.nemerosa.ontrack.model.events.EventPostService)1 EncryptionService (net.nemerosa.ontrack.model.security.EncryptionService)1 SecurityService (net.nemerosa.ontrack.model.security.SecurityService)1 ConfigurationRepository (net.nemerosa.ontrack.model.support.ConfigurationRepository)1 OntrackConfigProperties (net.nemerosa.ontrack.model.support.OntrackConfigProperties)1 Before (org.junit.Before)1