Search in sources :

Example 1 with TenantConfigRepository

use of com.icthh.xm.commons.config.client.repository.TenantConfigRepository in project xm-ms-entity by xm-online.

the class WebappTenantOverrideConfiguration method webappTenantConfigRepository.

@Bean
@Qualifier("webappTenantConfigRepository")
public TenantConfigRepository webappTenantConfigRepository() {
    TenantConfigRepository repository = Mockito.mock(TenantConfigRepository.class);
    Mockito.doNothing().when(repository).updateConfig(Mockito.anyString(), Mockito.anyString(), Mockito.anyString());
    return repository;
}
Also used : TenantConfigRepository(com.icthh.xm.commons.config.client.repository.TenantConfigRepository) Qualifier(org.springframework.beans.factory.annotation.Qualifier) Bean(org.springframework.context.annotation.Bean)

Aggregations

TenantConfigRepository (com.icthh.xm.commons.config.client.repository.TenantConfigRepository)1 Qualifier (org.springframework.beans.factory.annotation.Qualifier)1 Bean (org.springframework.context.annotation.Bean)1