Added the ability to specify a custom WebClient in
WebClientReactiveClientCredentialsTokenResponseClient.
Also added testing to ensure the custom WebClient is not null and is
used.
Fixes: gh-6051
@ -112,4 +113,9 @@ public class WebClientReactiveClientCredentialsTokenResponseClient implements Re
@@ -112,4 +113,9 @@ public class WebClientReactiveClientCredentialsTokenResponseClient implements Re
}
returnbody;
}
publicvoidsetWebClient(WebClientwebClient){
Assert.notNull(webClient,"webClient cannot be null");
@ -55,6 +57,7 @@ public class WebClientReactiveClientCredentialsTokenResponseClientTests {
@@ -55,6 +57,7 @@ public class WebClientReactiveClientCredentialsTokenResponseClientTests {
@After
publicvoidcleanup()throwsException{
validateMockitoUsage();
this.server.shutdown();
}
@ -117,6 +120,31 @@ public class WebClientReactiveClientCredentialsTokenResponseClientTests {
@@ -117,6 +120,31 @@ public class WebClientReactiveClientCredentialsTokenResponseClientTests {