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

camel-bindy: Bunch of the tests fail if the language of the JRE default Locale is something other than english, e.g. "de"

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.11.0
    • camel-bindy
    • None
    • Unknown

    Description

      As an example running this test with a JDK default Locale "de" will end up with:

      java.lang.AssertionError: mock://marshall-result Body of message: 0. Expected: <101-08-2009
      10A9  PaulineM    ISINXD12345678BUYShare000002500.45USD01-08-2009
      9000000001
      > but was: <101-08-2009
      10A9  PaulineM    ISINXD12345678BUYShare000002500,45USD01-08-2009
      9000000001
      >
      	at org.apache.camel.component.mock.MockEndpoint.fail(MockEndpoint.java:1318)
      	at org.apache.camel.component.mock.MockEndpoint.assertEquals(MockEndpoint.java:1300)
      	at org.apache.camel.component.mock.MockEndpoint$5.run(MockEndpoint.java:613)
      	at org.apache.camel.component.mock.MockEndpoint.doAssertIsSatisfied(MockEndpoint.java:383)
      	at org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:351)
      	at org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:339)
      	at org.apache.camel.dataformat.bindy.fixed.headerfooter.BindySimpleFixedLengthHeaderFooterTest.testMarshallMessageWithDirectHeaderAndFooterInput(BindySimpleFixedLengthHeaderFooterTest.java:141)
      ...
      ...
      

      As the decimal seperator in german is , in contrast to english which is .
      And the JDK API for this char is java.text.DecimalFormatSymbols#getDecimalSeparator()

      Attachments

        Issue Links

          Activity

            People

              bvahdat Babak Vahdat
              bvahdat Babak Vahdat
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: