use of com.nexblocks.authguard.service.AccountLocksService in project AuthGuard by AuthGuard.
the class AuthenticationServiceImplTest method setup.
@BeforeAll
void setup() {
exchangeService = Mockito.mock(ExchangeService.class);
accountLocksService = Mockito.mock(AccountLocksService.class);
final ConfigContext configContext = Mockito.mock(ConfigContext.class);
final AuthenticationConfig config = AuthenticationConfig.builder().generateToken("accessToken").build();
Mockito.when(exchangeService.supportsExchange("basic", "accessToken")).thenReturn(true);
Mockito.when(configContext.asConfigBean(AuthenticationConfig.class)).thenReturn(config);
authenticationService = new AuthenticationServiceImpl(exchangeService, accountLocksService, configContext);
}
Aggregations