[ 
https://issues.apache.org/jira/browse/CAMEL-6241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Babak Vahdat resolved CAMEL-6241.
---------------------------------

    Resolution: Fixed
    
> 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

Reply via email to