use of org.eclipse.vorto.repository.services.UserNamespaceRoleService in project vorto by eclipse.
the class HydraTokenVerifierTest method getVerifier.
private BoschIoTSuiteOAuthProviderAuthCode getVerifier() throws InvalidUserException {
User user = new UserBuilder().withName("d758a35e-94ef-443f-9625-7f03092e2005").withAuthenticationProviderID("GITHUB").build();
DefaultUserAccountService userAccountService = Mockito.mock(DefaultUserAccountService.class);
when(userAccountService.getUser("d758a35e-94ef-443f-9625-7f03092e2005")).thenReturn(user);
UserNamespaceRoleService userNamespaceRoleService = Mockito.mock(UserNamespaceRoleService.class);
return new BoschIoTSuiteOAuthProviderAuthCode("", publicKey(), configuration, userAccountService, userNamespaceRoleService);
}
Aggregations