commit | 78d0e64618b98d12786f23cdb3c048376efb8ac4 | [log] [tgz] |
---|---|---|
author | margaretha <margaretha@ids-mannheim.de> | Mon Mar 06 13:15:51 2023 +0100 |
committer | margaretha <margaretha@ids-mannheim.de> | Mon Mar 06 16:26:08 2023 +0100 |
tree | 21b5b95217cdc1a74ebb729062fbe2623759bca2 | |
parent | e4f3a7087887de8d4d9a8cfdab92f9a6338cd97b [diff] |
Fixed testing refresh token expiry. Change-Id: Iee60f18acdf494b3e008c2363c21012456fd1e65
diff --git a/full/src/test/java/de/ids_mannheim/korap/web/controller/OAuth2ControllerTest.java b/full/src/test/java/de/ids_mannheim/korap/web/controller/OAuth2ControllerTest.java index cf42f7e..0717d8e 100644 --- a/full/src/test/java/de/ids_mannheim/korap/web/controller/OAuth2ControllerTest.java +++ b/full/src/test/java/de/ids_mannheim/korap/web/controller/OAuth2ControllerTest.java
@@ -973,7 +973,7 @@ private void testRefreshTokenExpiry (String refreshToken) throws KustvaktException { RefreshToken token = refreshTokenDao.retrieveRefreshToken(refreshToken); - ZonedDateTime expiry = token.getCreatedDate().plusYears(1); + ZonedDateTime expiry = token.getCreatedDate().plusDays(365); assertTrue(expiry.equals(token.getExpiryDate())); } }