Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-11467

Camel-bindy tests fail depending on the locale

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.20.0
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      I end up with the following:

      [ERROR] Failures: 
      [ERROR] org.apache.camel.dataformat.bindy.fixed.BindyMarshallUnmarshallWithDefaultValueTest.testMarshallMessage(org.apache.camel.dataformat.bindy.fixed.BindyMarshallUnmarshallWithDefaultValueTest)
      [ERROR]   Run 1: BindyMarshallUnmarshallWithDefaultValueTest.testMarshallMessage:56 mock://resultMarshal Body of message: 0. Expected: <10A9     JohnDoe  ISINXD12345678BUYShare000002500.45USD01-08-2009          
      > but was: <10A9     JohnDoe  ISINXD12345678BUYShare000002500,45USD01-08-2009          
      >
      [ERROR]   Run 2: BindyMarshallUnmarshallWithDefaultValueTest.testMarshallMessage:56 mock://resultMarshal Body of message: 0. Expected: <10A9     JohnDoe  ISINXD12345678BUYShare000002500.45USD01-08-2009          
      > but was: <10A9     JohnDoe  ISINXD12345678BUYShare000002500,45USD01-08-2009          
      >
      [ERROR]   Run 3: BindyMarshallUnmarshallWithDefaultValueTest.testMarshallMessage:56 mock://resultMarshal Body of message: 0. Expected: <10A9     JohnDoe  ISINXD12345678BUYShare000002500.45USD01-08-2009          
      > but was: <10A9     JohnDoe  ISINXD12345678BUYShare000002500,45USD01-08-2009          
      >
      

      My system decimal separator is set to ',' instead of '.' which causes the failures.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gnt Guillaume Nodet
                Reporter:
                gnt Guillaume Nodet
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: