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

OZG-6300 Fix failing CurrentUserServiceTest

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