@ -740,6 +740,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
@@ -740,6 +740,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
publicvoidaddPreferredLocale(Localelocale){
Assert.notNull(locale,"Locale must not be null");
this.locales.add(0,locale);
updateAcceptLanguageHeader();
}
/**
@ -752,6 +753,13 @@ public class MockHttpServletRequest implements HttpServletRequest {
@@ -752,6 +753,13 @@ public class MockHttpServletRequest implements HttpServletRequest {
Assert.notEmpty(locales,"Locale list must not be empty");
@ -951,9 +959,18 @@ public class MockHttpServletRequest implements HttpServletRequest {
@@ -951,9 +959,18 @@ public class MockHttpServletRequest implements HttpServletRequest {
@ -304,6 +304,9 @@ public class MockHttpServletResponse implements HttpServletResponse {
@@ -304,6 +304,9 @@ public class MockHttpServletResponse implements HttpServletResponse {
@ -577,6 +580,13 @@ public class MockHttpServletResponse implements HttpServletResponse {
@@ -577,6 +580,13 @@ public class MockHttpServletResponse implements HttpServletResponse {
@ -740,6 +740,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
@@ -740,6 +740,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
publicvoidaddPreferredLocale(Localelocale){
Assert.notNull(locale,"Locale must not be null");
this.locales.add(0,locale);
updateAcceptLanguageHeader();
}
/**
@ -752,6 +753,13 @@ public class MockHttpServletRequest implements HttpServletRequest {
@@ -752,6 +753,13 @@ public class MockHttpServletRequest implements HttpServletRequest {
Assert.notEmpty(locales,"Locale list must not be empty");
@ -951,9 +959,18 @@ public class MockHttpServletRequest implements HttpServletRequest {
@@ -951,9 +959,18 @@ public class MockHttpServletRequest implements HttpServletRequest {
@ -304,6 +304,9 @@ public class MockHttpServletResponse implements HttpServletResponse {
@@ -304,6 +304,9 @@ public class MockHttpServletResponse implements HttpServletResponse {
@ -577,6 +580,13 @@ public class MockHttpServletResponse implements HttpServletResponse {
@@ -577,6 +580,13 @@ public class MockHttpServletResponse implements HttpServletResponse {