Polish and fix test
This commit is contained in:
parent
0386fbeb16
commit
62c8d6bcb2
|
@ -61,7 +61,8 @@ public final class ReactorHttpClientBuilder {
|
|||
*/
|
||||
public ReactorHttpClientBuilder withHttpClientCustomizer(UnaryOperator<HttpClient> customizer) {
|
||||
Assert.notNull(customizer, "'customizer' must not be null");
|
||||
return new ReactorHttpClientBuilder((t) -> customizer.apply(this.customizer.apply(t)));
|
||||
return new ReactorHttpClientBuilder(this.factory,
|
||||
(httpClient) -> customizer.apply(this.customizer.apply(httpClient)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -55,7 +55,7 @@ class ReactorClientHttpConnectorBuilderTests
|
|||
httpClients.add(httpClient);
|
||||
return httpClient;
|
||||
};
|
||||
ClientHttpRequestFactoryBuilder.reactor()
|
||||
ClientHttpConnectorBuilder.reactor()
|
||||
.withHttpClientCustomizer(httpClientCustomizer1)
|
||||
.withHttpClientCustomizer(httpClientCustomizer2)
|
||||
.build();
|
||||
|
|
Loading…
Reference in New Issue