Skip to content

Commit 9b06d12

Browse files
committed
1 parent e3e7955 commit 9b06d12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

oauth2-authorization-server/src/test/java/org/springframework/security/oauth2/server/authorization/web/OAuth2TokenEndpointFilterTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ public void doFilterWhenCustomAuthenticationDetailsSourceThenUsed() throws Excep
463463
AuthenticationDetailsSource<HttpServletRequest, WebAuthenticationDetails> authenticationDetailsSource =
464464
mock(AuthenticationDetailsSource.class);
465465
WebAuthenticationDetails webAuthenticationDetails = new WebAuthenticationDetails(request);
466-
when(authenticationDetailsSource.buildDetails(request)).thenReturn(webAuthenticationDetails);
466+
when(authenticationDetailsSource.buildDetails(any())).thenReturn(webAuthenticationDetails);
467467
this.filter.setAuthenticationDetailsSource(authenticationDetailsSource);
468468

469469
OAuth2AccessToken accessToken = new OAuth2AccessToken(
@@ -484,7 +484,7 @@ public void doFilterWhenCustomAuthenticationDetailsSourceThenUsed() throws Excep
484484

485485
this.filter.doFilter(request, response, filterChain);
486486

487-
verify(authenticationDetailsSource).buildDetails(request);
487+
verify(authenticationDetailsSource).buildDetails(any());
488488
}
489489

490490
@Test

0 commit comments

Comments
 (0)