@Test public void testExpirationDateCanBeExtractedFromTokenClaims() { when(claims.getExpiration()).thenReturn(EXPIRATION_DATE); assertThat(jwtUtils.getExpirationDateFromTokenClaims(claims)) .isCloseTo(EXPIRATION_DATE, GRADLE_FRIENDLY_TIME_TOLERANCE_IN_MILLIS); verify(claims, times(1)).getExpiration(); }
Date getExpirationDateFromTokenClaims(Claims claims) { return claims.getExpiration(); }
JwtUtils { Date getExpirationDateFromTokenClaims(Claims claims) { return claims.getExpiration(); } }
JwtUtils { Date getExpirationDateFromTokenClaims(Claims claims) { return claims.getExpiration(); }  }
JwtUtils { Date getExpirationDateFromTokenClaims(Claims claims) { return claims.getExpiration(); }  Claims validateTokenAndGetClaims(String token); String createToken(JwtUser userDetails); boolean canTokenBeRefreshed(Claims claims, Date lastPasswordReset); String refreshToken(String token); String getUsernameFromTokenClaims(Claims claims); List<GrantedAuthority> getRolesFromTokenClaims(Claims claims); }
JwtUtils { Date getExpirationDateFromTokenClaims(Claims claims) { return claims.getExpiration(); }  Claims validateTokenAndGetClaims(String token); String createToken(JwtUser userDetails); boolean canTokenBeRefreshed(Claims claims, Date lastPasswordReset); String refreshToken(String token); String getUsernameFromTokenClaims(Claims claims); List<GrantedAuthority> getRolesFromTokenClaims(Claims claims);  }