Support Charset for character encoding in MockMvc #27231
Labels
in: test
Issues in the test module
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
#27230 introduced support for configuring the default character encoding in the underlying
MockHttpServletResponse
used inMockMvc
, using aCharset
.However, methods for supplying character encoding in
MockHttpServletRequestBuilder
andContentResultMatchers
currently accept aString
.To improve the developer experience and avoid the use of String literals, we should provide overloaded support via
Charset
for character encoding inMockHttpServletRequestBuilder
andContentResultMatchers
.The text was updated successfully, but these errors were encountered: