1. opensymphony
  2. webwork

Commits

davsclaus  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

  • Participants
  • Parent commits e461bb4
  • Branches master

Comments (0)

Files changed (2)

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

View file
     }
 
     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()));

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

View file
 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(