From c05b059ab57ecf1d225cdf7f2fee80200a78a868 Mon Sep 17 00:00:00 2001 From: Muhammad Raihan Akbar <ianakbar711@gmail.com> Date: Thu, 6 Mar 2025 21:33:26 +0700 Subject: [PATCH] [REFACTOR] Removed unused lines --- .../com/safetypin/authentication/service/JwtServiceTest.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/test/java/com/safetypin/authentication/service/JwtServiceTest.java b/src/test/java/com/safetypin/authentication/service/JwtServiceTest.java index 565497d..eba6db5 100644 --- a/src/test/java/com/safetypin/authentication/service/JwtServiceTest.java +++ b/src/test/java/com/safetypin/authentication/service/JwtServiceTest.java @@ -106,10 +106,6 @@ public class JwtServiceTest { // Create a JwtService with a custom expiration time JwtService shortExpirationJwtService = new JwtService(secretKey, userService); - // Use reflection to create and set an expired token - String token = shortExpirationJwtService.generateToken(userId); - Claims claims = shortExpirationJwtService.parseToken(token); - // Create a new token with an expiration date in the past Date pastDate = new Date(System.currentTimeMillis() - 1000); // 1 second in the past -- GitLab