Search in sources :

Example 1 with ApplicationsRepository

use of com.nexblocks.authguard.dal.persistence.ApplicationsRepository in project AuthGuard by AuthGuard.

the class ApplicationsServiceImplTest method setup.

@BeforeEach
void setup() {
    applicationsRepository = Mockito.mock(ApplicationsRepository.class);
    accountsService = Mockito.mock(AccountsService.class);
    idempotencyService = Mockito.mock(IdempotencyService.class);
    messageBus = Mockito.mock(MessageBus.class);
    serviceMapper = new ServiceMapperImpl();
    applicationsService = new ApplicationsServiceImpl(applicationsRepository, accountsService, idempotencyService, serviceMapper, messageBus);
}
Also used : MessageBus(com.nexblocks.authguard.emb.MessageBus) ApplicationsRepository(com.nexblocks.authguard.dal.persistence.ApplicationsRepository) ServiceMapperImpl(com.nexblocks.authguard.service.mappers.ServiceMapperImpl) AccountsService(com.nexblocks.authguard.service.AccountsService) IdempotencyService(com.nexblocks.authguard.service.IdempotencyService) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

ApplicationsRepository (com.nexblocks.authguard.dal.persistence.ApplicationsRepository)1 MessageBus (com.nexblocks.authguard.emb.MessageBus)1 AccountsService (com.nexblocks.authguard.service.AccountsService)1 IdempotencyService (com.nexblocks.authguard.service.IdempotencyService)1 ServiceMapperImpl (com.nexblocks.authguard.service.mappers.ServiceMapperImpl)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1