Search in sources :

Example 1 with UserNamespaceRoleService

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);
}
Also used : User(org.eclipse.vorto.repository.domain.User) UserNamespaceRoleService(org.eclipse.vorto.repository.services.UserNamespaceRoleService) DefaultUserAccountService(org.eclipse.vorto.repository.account.impl.DefaultUserAccountService) UserBuilder(org.eclipse.vorto.repository.services.UserBuilder)

Aggregations

DefaultUserAccountService (org.eclipse.vorto.repository.account.impl.DefaultUserAccountService)1 User (org.eclipse.vorto.repository.domain.User)1 UserBuilder (org.eclipse.vorto.repository.services.UserBuilder)1 UserNamespaceRoleService (org.eclipse.vorto.repository.services.UserNamespaceRoleService)1