camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gregor Zurowski (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-7479) Test fails in non-English environments
Date Thu, 05 Jun 2014 04:54:02 GMT

    [ 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)

Mime
View raw message