From df25c9c13c4a72f09005743dfed83780220bd00a Mon Sep 17 00:00:00 2001 From: heshunme Date: Mon, 1 Jul 2024 16:46:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AF=B9JwtUtil=E7=9A=84?= =?UTF-8?q?=E5=8D=95=E5=85=83=E6=B5=8B=E8=AF=95=EF=BC=8C=E7=A1=AE=E4=BF=9D?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=8F=AF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/test/java/org/cmh/backend/Utils/JwtUtilTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/cmh/backend/Utils/JwtUtilTest.java b/src/test/java/org/cmh/backend/Utils/JwtUtilTest.java index 78dcdb8..6722473 100644 --- a/src/test/java/org/cmh/backend/Utils/JwtUtilTest.java +++ b/src/test/java/org/cmh/backend/Utils/JwtUtilTest.java @@ -24,7 +24,7 @@ public class JwtUtilTest { // Validate claims - Assert.assertTrue("Token shoud be valid", JwtUtil.isTokenValid(token, username)); + Assert.assertTrue("Token should be valid", JwtUtil.isTokenValid(token, username)); Assert.assertEquals("Username in claims should match", username, claims.getSubject()); Assert.assertTrue("Token should be issued in the past", new Date().after(claims.getIssuedAt())); Assert.assertTrue("Token expiration should be in the future", new Date().before(claims.getExpiration()));