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

Gregor Zurowski commented on CAMEL-7479:
----------------------------------------

Fix successfully tested by running unit tests with languages en, de, sv, zh and 
using the following Maven configuration:

{code:title=pom.xml}
<plugin>
  <artifactId>maven-surefire-plugin</artifactId>
    <configuration>
      <forkMode>pertest</forkMode>
      <argLine>-Duser.language=de</argLine> <!-- replace language code here -->
    </configuration>
</plugin>
{code}

> 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