mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-28 23:02:15 +00:00
Remove unnecessary mocking
Fixes gh-8012
This commit is contained in:
parent
204a612be1
commit
82cd203791
@ -69,7 +69,6 @@ public class OAuth2AuthorizationCodeGrantWebFilterTests {
|
||||
this.filter = new OAuth2AuthorizationCodeGrantWebFilter(
|
||||
this.authenticationManager, this.clientRegistrationRepository,
|
||||
this.authorizedClientRepository);
|
||||
when(this.authorizationRequestRepository.loadAuthorizationRequest(any())).thenReturn(Mono.empty());
|
||||
this.filter.setAuthorizationRequestRepository(this.authorizationRequestRepository);
|
||||
}
|
||||
|
||||
|
@ -66,9 +66,6 @@ public class MvcRequestMatcherTests {
|
||||
|
||||
@Test
|
||||
public void extractUriTemplateVariablesSuccess() throws Exception {
|
||||
when(this.introspector.getMatchableHandlerMapping(this.request))
|
||||
.thenReturn(this.mapping);
|
||||
|
||||
this.matcher = new MvcRequestMatcher(this.introspector, "/{p}");
|
||||
when(this.introspector.getMatchableHandlerMapping(this.request)).thenReturn(null);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user