OpenEngSB
  1. OpenEngSB
  2. OPENENGSB-2936

ConsoleIT fail when executed on a non english environment machine

    Details

      Description

      The tests fail because there are checks if language specific strings are the result of an operation. This fails on every machine which hasn't english as its default language.

      Failing tests:
      testToExecuteOpenEngSBDomainInfoCommand
      testToExecuteOpenEngSBServiceCreateCommand

        Gliffy Diagrams

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

          Hide
          Andreas Pieber added a comment -

          OK, I think the easiest workaround is to set the local of the system [1] (overwriting the default) as explained here. I'll give it a shot today.

          [1] http://www.roseindia.net/java/javadate/setting-default-locale.shtml

          Show
          Andreas Pieber added a comment - OK, I think the easiest workaround is to set the local of the system [1] (overwriting the default) as explained here. I'll give it a shot today. [1] http://www.roseindia.net/java/javadate/setting-default-locale.shtml
          Hide
          Philipp Hoenisch added a comment -

          yea, I think adding

              @BeforeClass
              public static void initialize() {
                  Locale.setDefault(Locale.ENGLISH);
              }

          should fix it. Just tried it the other way around: setting it to GERMAN and the tests fail.

          Show
          Philipp Hoenisch added a comment - yea, I think adding @BeforeClass public static void initialize() { Locale.setDefault(Locale.ENGLISH); } should fix it. Just tried it the other way around: setting it to GERMAN and the tests fail.
          Hide
          Andreas Pieber added a comment -

          great! if you like feel free to assign the issue back to you and commit the fix

          Show
          Andreas Pieber added a comment - great! if you like feel free to assign the issue back to you and commit the fix
          Hide
          Philipp Hoenisch added a comment -

          fixed for v2.4.x, v2.x.y and master

          Show
          Philipp Hoenisch added a comment - fixed for v2.4.x, v2.x.y and master

            People

            • Assignee:
              Philipp Hoenisch
              Reporter:
              Felix Mayerhuber
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: