From 046f88037c48f4b8686c0d51f4a17b47fa2a1f77 Mon Sep 17 00:00:00 2001 From: Muhammad Raihan Akbar <ianakbar711@gmail.com> Date: Thu, 6 Mar 2025 21:34:12 +0700 Subject: [PATCH] [REFACTOR] Removed unnecessary Exepction throw --- .../com/safetypin/authentication/service/JwtServiceTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/test/java/com/safetypin/authentication/service/JwtServiceTest.java b/src/test/java/com/safetypin/authentication/service/JwtServiceTest.java index eba6db5..e758e23 100644 --- a/src/test/java/com/safetypin/authentication/service/JwtServiceTest.java +++ b/src/test/java/com/safetypin/authentication/service/JwtServiceTest.java @@ -10,7 +10,6 @@ import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; -import org.springframework.test.util.ReflectionTestUtils; import java.util.Date; import java.util.Optional; @@ -102,7 +101,7 @@ public class JwtServiceTest { } @Test - void getUserFromJwtToken_shouldThrowExceptionForExpiredToken() throws Exception { + void getUserFromJwtToken_shouldThrowExceptionForExpiredToken() { // Create a JwtService with a custom expiration time JwtService shortExpirationJwtService = new JwtService(secretKey, userService); -- GitLab