fixed issue 39276: ProcessSchedulingTest fails depending on system locale
authorAsier Lostalé <asier.lostale@openbravo.com>
Wed, 12 Sep 2018 15:02:46 +0200
changeset 34769 bfd9f58405fa
parent 34768 0cf455f5e717
child 34770 6bac4a0d2846
fixed issue 39276: ProcessSchedulingTest fails depending on system locale

In case VariablesSecureApp is initialized without setting a language, default
it to en_US rather than relying on system settings.
src/org/openbravo/base/secureApp/VariablesSecureApp.java
--- a/src/org/openbravo/base/secureApp/VariablesSecureApp.java	Wed Sep 12 13:58:11 2018 +0200
+++ b/src/org/openbravo/base/secureApp/VariablesSecureApp.java	Wed Sep 12 15:02:46 2018 +0200
@@ -1,6 +1,6 @@
 /*
  ************************************************************************************
- * Copyright (C) 2001-2017 Openbravo S.L.U.
+ * Copyright (C) 2001-2018 Openbravo S.L.U.
  * Licensed under the Apache Software License version 2.0
  * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
  * Unless required by applicable law or agreed to  in writing,  software  distributed
@@ -121,8 +121,7 @@
     this.user = strUser;
     this.role = strRole;
     if (StringUtils.isEmpty(strLanguage)) {
-      this.language = System.getProperty("user.language") + "_"
-          + System.getProperty("user.country");
+      this.language = "en_US";
     } else {
       this.language = strLanguage;
     }