Remove unnecessary mocking

Fixes gh-8012
This commit is contained in:
Joe Grandja 2020-02-23 19:26:18 -05:00
parent 204a612be1
commit 82cd203791
2 changed files with 0 additions and 4 deletions

View File

@ -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);
}

View File

@ -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);