mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
94e2f49e9f
Prior to this commit, the `RestTestClient` MockMvc integration would support transforming client requests into MockMvc requests. `RestTestClient` can serialize `MultiValueMap` request bodies as multipart requests. In this case, the `MockMvcClientHttpRequestFactory` would only read the body as byte stream and would not turn this into a proper `MockMultipartHttpServletRequestBuilder`. This commit uses the new `MultipartHttpMessageConverter` to parse the request payload as `MockPart` instances to be added to the MockMvc requests. Closes gh-35569