-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Closed
Labels
in: testIssues in the test moduleIssues in the test modulein: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement
Milestone
Description
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 moduleIssues in the test modulein: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement