use of com.nexblocks.authguard.dal.persistence.ApiKeysRepository in project AuthGuard by AuthGuard.
the class ApiKeysServiceImplTest method setup.
@BeforeEach
void setup() {
applicationsService = Mockito.mock(ApplicationsService.class);
apiKeysRepository = Mockito.mock(ApiKeysRepository.class);
apiKeyExchange = Mockito.mock(ApiKeyExchange.class);
messageBus = Mockito.mock(MessageBus.class);
apiKeyHashProvider = new ApiKeyHashProvider(ApiKeysConfig.builder().hash(ApiKeyHashingConfig.builder().algorithm("blake2b").digestSize(32).key("test-key").build()).build());
apiKeyHash = apiKeyHashProvider.getHash();
serviceMapper = new ServiceMapperImpl();
apiKeysService = new ApiKeysServiceImpl(applicationsService, apiKeyExchange, apiKeysRepository, apiKeyHashProvider, messageBus, serviceMapper);
}
Aggregations