Skip to content

MockHttpServletRequestBuilder should support multiple locales [SPR-15116] #19683

@spring-projects-issues

Description

@spring-projects-issues

Louis-Rémi opened SPR-15116 and commented

It's possible to set multiple locales to MockHttpServletRequest with setPreferredLocales or addPreferredLocale.

However, MockHttpServletRequestBuilder lacks the method(s) to set it.

I thought of extending MockHttpServletRequestBuilder to work around this but MockMvc is final, so it's not possible to return anything else than a MockHttpServletRequestBuilder

I suggest that the MockHttpServletRequestBuilder should allow to set locales like it's possible in the underlying MockHttpServletRequest.


Affects: 4.3.1

Referenced from: commits spring-projects/spring-integration@c886b3b

0 votes, 5 watchers

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