Skip to content
Snippets Groups Projects
Commit 253be103 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-6300 Fix failing CurrentUserServiceTest

parent e57a18b0
Branches
Tags
No related merge requests found
...@@ -35,8 +35,10 @@ import java.util.Optional; ...@@ -35,8 +35,10 @@ import java.util.Optional;
import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Nested; import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.mockito.InjectMocks;
import org.mockito.Mock; import org.mockito.Mock;
import org.mockito.Spy; import org.mockito.Spy;
import org.springframework.security.access.hierarchicalroles.RoleHierarchy;
import org.springframework.security.oauth2.jwt.Jwt; import org.springframework.security.oauth2.jwt.Jwt;
import de.ozgcloud.alfa.JwtTestFactory; import de.ozgcloud.alfa.JwtTestFactory;
...@@ -44,7 +46,12 @@ import de.ozgcloud.alfa.JwtTestFactory; ...@@ -44,7 +46,12 @@ import de.ozgcloud.alfa.JwtTestFactory;
class CurrentUserServiceTest { class CurrentUserServiceTest {
@Spy @Spy
@InjectMocks
private CurrentUserService service; private CurrentUserService service;
@Mock
private UserService userService;
@Mock
private RoleHierarchy roleHierarchy;
@Nested @Nested
class TestGetOrganisationseinheit { class TestGetOrganisationseinheit {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment