Commits

Anonymous committed 7923d62

force to US locale as we also have _de and _da properties

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@2537573baa09-0c28-0410-bef9-dab3c582ae83

Comments (0)

Files changed (2)

src/test/com/opensymphony/webwork/config/ConfigurationTest.java

     }
 
     public void testReplaceDefaultMessages() {
+        Locale.setDefault(Locale.US); // force to US locale as we also have _de and _da properties
+        
         LocalizedTextUtil.clearDefaultResourceBundles();
         LocalizedTextUtil.addDefaultResourceBundle("com/opensymphony/webwork/webwork-messages");
         assertEquals("The form has already been processed or no token was supplied, please try again.", LocalizedTextUtil.findDefaultText("webwork.messages.invalid.token", Locale.getDefault()));

src/test/com/opensymphony/webwork/dispatcher/DispatcherUtilsTest.java

 public class DispatcherUtilsTest extends TestCase {
 
 	public void testDefaultResurceBundlePropertyLoaded() throws Exception {
-		DispatcherUtils.initialize(new MockServletContext());
+        Locale.setDefault(Locale.US); // force to US locale as we also have _de and _da properties
+        DispatcherUtils.initialize(new MockServletContext());
 		
 		// some i18n messages from xwork-messages.properties
 		assertEquals(