You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Babak Vahdat (JIRA)" <ji...@apache.org> on 2013/04/05 10:08:16 UTC

[jira] [Created] (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"

Babak Vahdat created CAMEL-6241:
-----------------------------------

             Summary: camel-bindy: Bunch of the tests fail if the language of the JRE default Locale is something other than english, e.g. "de"
                 Key: CAMEL-6241
                 URL: https://issues.apache.org/jira/browse/CAMEL-6241
             Project: Camel
          Issue Type: Task
          Components: camel-bindy
            Reporter: Babak Vahdat
            Assignee: Babak Vahdat
            Priority: Minor
             Fix For: 2.11.0


As an example running [this test|https://svn.apache.org/repos/asf/camel/trunk/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/fixed/headerfooter/BindySimpleFixedLengthHeaderFooterTest.java] with a JDK default Locale "de" will end up with:

{code}
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)
...
...
{code}

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()}}



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira