[ 
https://issues.apache.org/jira/browse/CAMEL-7479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14018471#comment-14018471
 ] 

ASF GitHub Bot commented on CAMEL-7479:
---------------------------------------

GitHub user gzurowski opened a pull request:

    https://github.com/apache/camel/pull/170

    CAMEL-7479: Make unit tests run with any JVM system locale

    Use SAX validation error code instead of the localized error message in
    assert statements, so that the tests run with any JVM system locale.
    
    Signed-off-by: Gregor Zurowski <[email protected]>

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/gzurowski/camel CAMEL-7479

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/170.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #170
    
----
commit a16c105141bbd434c248f55f37ed3143c6bd127c
Author: Gregor Zurowski <[email protected]>
Date:   2014-06-05T04:20:45Z

    CAMEL-7479: Make unit tests run with any JVM system locale
    
    Use SAX validation error code instead of the localized error message in
    assert statements, so that the tests run with any JVM system locale.
    
    Signed-off-by: Gregor Zurowski <[email protected]>

----


> Test fails in non-English environments
> --------------------------------------
>
>                 Key: CAMEL-7479
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7479
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jaxb, camel-test
>         Environment: MacOS, Java 1.7.0_40, German language
>            Reporter: Peter Keller
>            Assignee: Gregor Zurowski
>
> Some Java exception messages are language specific and JUnit tests evaluating 
> theses messages fail in a non-English environment.
> Such assertions are done in {{JaxbDataFormatSchemaValidationSpringTest}} and 
> {{JaxbDataFormatSchemaValidationTest}}:
> * The assertion "Invalid content was found" fails for the German message 
> "Ungültiger Content wurde beginnend mit Element "age" gefunden" 
> ({{#testMarshallWithValidationException()}})
> * The assertion "The content of element 'person' is not complete" fails for 
> the German message "Content des Elements "person" ist nicht vollständig" 
> ({{#testUnmarshallWithValidationException()}}).



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to