mirror of
https://github.com/apache/struts.git
synced 2026-08-07 15:46:57 +00:00
WW-4406 Fixes problem with failing test under different Locale
This commit is contained in:
@@ -115,7 +115,9 @@ public class TextTagTest extends AbstractTagTest {
|
||||
params.add(param2);
|
||||
params.add(param3);
|
||||
|
||||
String expected = MessageFormat.format(pattern, params.toArray());
|
||||
MessageFormat format = new MessageFormat(pattern, ActionContext.getContext().getLocale());
|
||||
String expected = format.format(params.toArray());
|
||||
|
||||
tag.setName(key);
|
||||
tag.doStartTag();
|
||||
((Text) tag.component).addParameter(param1);
|
||||
|
||||
Reference in New Issue
Block a user