@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); }
@Test public void testExpiryResult() { Claims result = endpoint.checkToken(accessToken.getValue()); assertTrue(expiresIn + System.currentTimeMillis() / 1000 >= result.getExp()); }