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.filter = new OAuth2AuthorizationCodeGrantWebFilter(
|
||||||
this.authenticationManager, this.clientRegistrationRepository,
|
this.authenticationManager, this.clientRegistrationRepository,
|
||||||
this.authorizedClientRepository);
|
this.authorizedClientRepository);
|
||||||
when(this.authorizationRequestRepository.loadAuthorizationRequest(any())).thenReturn(Mono.empty());
|
|
||||||
this.filter.setAuthorizationRequestRepository(this.authorizationRequestRepository);
|
this.filter.setAuthorizationRequestRepository(this.authorizationRequestRepository);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,9 +66,6 @@ public class MvcRequestMatcherTests {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void extractUriTemplateVariablesSuccess() throws Exception {
|
public void extractUriTemplateVariablesSuccess() throws Exception {
|
||||||
when(this.introspector.getMatchableHandlerMapping(this.request))
|
|
||||||
.thenReturn(this.mapping);
|
|
||||||
|
|
||||||
this.matcher = new MvcRequestMatcher(this.introspector, "/{p}");
|
this.matcher = new MvcRequestMatcher(this.introspector, "/{p}");
|
||||||
when(this.introspector.getMatchableHandlerMapping(this.request)).thenReturn(null);
|
when(this.introspector.getMatchableHandlerMapping(this.request)).thenReturn(null);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user