You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@olingo.apache.org by mi...@apache.org on 2014/07/17 21:24:14 UTC

git commit: [OLINGO-348] Fixed test for none english environments

Repository: olingo-odata4
Updated Branches:
  refs/heads/master 23789e100 -> 3e81f054c


[OLINGO-348] Fixed test for none english environments


Project: http://git-wip-us.apache.org/repos/asf/olingo-odata4/repo
Commit: http://git-wip-us.apache.org/repos/asf/olingo-odata4/commit/3e81f054
Tree: http://git-wip-us.apache.org/repos/asf/olingo-odata4/tree/3e81f054
Diff: http://git-wip-us.apache.org/repos/asf/olingo-odata4/diff/3e81f054

Branch: refs/heads/master
Commit: 3e81f054c021ae3009d54140b498f92ebfaae654
Parents: 23789e1
Author: mibo <mi...@mirb.de>
Authored: Thu Jul 17 21:10:12 2014 +0200
Committer: mibo <mi...@mirb.de>
Committed: Thu Jul 17 21:10:12 2014 +0200

----------------------------------------------------------------------
 .../org/apache/olingo/server/api/TranslatedExceptionsTest.java  | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/3e81f054/lib/server-api/src/test/java/org/apache/olingo/server/api/TranslatedExceptionsTest.java
----------------------------------------------------------------------
diff --git a/lib/server-api/src/test/java/org/apache/olingo/server/api/TranslatedExceptionsTest.java b/lib/server-api/src/test/java/org/apache/olingo/server/api/TranslatedExceptionsTest.java
index 7aac2d1..066dc80 100644
--- a/lib/server-api/src/test/java/org/apache/olingo/server/api/TranslatedExceptionsTest.java
+++ b/lib/server-api/src/test/java/org/apache/olingo/server/api/TranslatedExceptionsTest.java
@@ -33,6 +33,11 @@ public class TranslatedExceptionsTest {
   private static final String ONEPARAM = "ONEPARAM";
   private static final String TWOPARAM = "TWOPARAM";
 
+  public TranslatedExceptionsTest() {
+    // for test reason we assume a system with a default Locale.ENGLISH
+    Locale.setDefault(Locale.ENGLISH);
+  }
+
   @Test
   public void basic() {
     ODataTranslatedException exp = new ODataTranslatedException(DEV, BASIC);