This commit is contained in:
Athou
2024-01-10 11:19:47 +01:00
parent e3e50f8456
commit d49297216c
2 changed files with 0 additions and 6 deletions

View File

@@ -6,8 +6,6 @@ import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.mockito.Mockito;
import com.commafeed.backend.model.User;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpSession;
@@ -50,8 +48,6 @@ class SessionHelperTest {
@Test
void gettingUserShouldReturnUserIfUserPresentInHttpSession() {
User userInSession = new User();
HttpSession session = Mockito.mock(HttpSession.class);
Mockito.when(session.getAttribute(SessionHelper.SESSION_KEY_USER_ID)).thenReturn(1L);