MockRestServiceServer to prevent override of ClientHttpRequestFactory in RestClient.Builder #34013
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: invalid
An issue that we don't feel is valid
type: enhancement
A general enhancement
One of the cases in #32338 relates to
MockRestServiceServer
setting a mock request factory onRestClient.Builder
. If that same builder is then passed into an application component that wants to customize the request factory (related to production), it ends up replacing the mock request factory.It's reasonable to assume that if a
RestClient.Builder
is passed intoMockRestServiceServer
then the changes to the request factory should stick, and any further changes can be a no-op.The text was updated successfully, but these errors were encountered: