diff --git a/generators/server/templates/src/test/java/_package_/security/jwt/JwtAuthenticationTestUtils.java.ejs b/generators/server/templates/src/test/java/_package_/security/jwt/JwtAuthenticationTestUtils.java.ejs index 045619d5ceb9..c146720ff81d 100644 --- a/generators/server/templates/src/test/java/_package_/security/jwt/JwtAuthenticationTestUtils.java.ejs +++ b/generators/server/templates/src/test/java/_package_/security/jwt/JwtAuthenticationTestUtils.java.ejs @@ -77,7 +77,7 @@ public class JwtAuthenticationTestUtils { .issuedAt(now) .expiresAt(now.plusSeconds(60)) .subject(user) - .claims(customClain -> customClain.put(AUTHORITIES_KEY, Collections.singletonList("ROLE_ADMIN"))) + .claims(customClaim -> customClaim.put(AUTHORITIES_KEY, Collections.singletonList("ROLE_ADMIN"))) .build(); JwsHeader jwsHeader = JwsHeader.with(JWT_ALGORITHM).build();