Remove unnecessary mocking
Fixes gh-8012
This commit is contained in:
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
-3
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user