fix tests and adjust cookie duration

This commit is contained in:
Konstantin Schaper
2020-08-21 11:38:59 +02:00
parent 34dc7fdac0
commit 3d0c55fd18
3 changed files with 2 additions and 5 deletions

View File

@@ -121,8 +121,6 @@ public class DefaultAccessTokenCookieIssuerTest {
}
private Cookie authenticate() {
when(accessToken.getExpiration()).thenReturn(new Date());
issuer.authenticate(request, response, accessToken);
verify(response).addCookie(cookieArgumentCaptor.capture());