Skip to content

Commit 9bf73f3

Browse files
committed
Document default locale in MockHttpServletRequest
This commit updates the class-level Javadoc for MockHttpServletRequest with information regarding the default locale for the mocked server. Issue: SPR-11701
1 parent f862a00 commit 9bf73f3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

spring-test/src/main/java/org/springframework/mock/web/MockHttpServletRequest.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,12 @@
5858
/**
5959
* Mock implementation of the {@link javax.servlet.http.HttpServletRequest} interface.
6060
*
61-
* <p>As of Spring 4.0, this set of mocks is designed on a Servlet 3.0 baseline.
61+
* <p>The default, preferred {@link Locale} for the <em>server</em> mocked
62+
* by this request is {@link Locale#ENGLISH}. This value can be changed
63+
* via {@link #addPreferredLocale} or {@link #setPreferredLocales}.
64+
*
65+
* <p>As of Spring Framework 4.0, this set of mocks is designed on a Servlet
66+
* 3.0 baseline.
6267
*
6368
* @author Juergen Hoeller
6469
* @author Rod Johnson

0 commit comments

Comments
 (0)