예제 #1
0
 @Test
 public void validatateIssuedAtIsSmallerThanExpiredAt() {
   Claims result = endpoint.checkToken(accessToken.getValue());
   Integer iat = result.getIat();
   assertNotNull(iat);
   Integer exp = result.getExp();
   assertNotNull(exp);
   assertTrue(iat < exp);
 }
예제 #2
0
 @Test
 public void testExpiryResult() {
   Claims result = endpoint.checkToken(accessToken.getValue());
   assertTrue(expiresIn + System.currentTimeMillis() / 1000 >= result.getExp());
 }