Skip to content

Support default character encoding for response in MockMvc #27230

@sbrannen

Description

@sbrannen

Overview

#27214 introduced support for setting the default character encoding in MockHttpServletResponse, and the focus of this issue is to make that configurable when building an instance of MockMvc.

Deliverables

  • Introduce defaultResponseCharacterEncoding(Charset) in ConfigurableMockMvcBuilder and use it to configure the default character encoding in the underlying MockHttpServletResponse.

Metadata

Metadata

Assignees

Labels

in: testIssues in the test modulein: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions