You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2011/08/16 09:34:27 UTC

[jira] [Resolved] (CAMEL-4334) ResourceHelperTest.testLoadFileNotFound fails in Windows/non english OS.

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

Claus Ibsen resolved CAMEL-4334.
--------------------------------

    Resolution: Fixed
      Assignee: Claus Ibsen

Thanks for the patch

> ResourceHelperTest.testLoadFileNotFound fails in Windows/non english OS.
> ------------------------------------------------------------------------
>
>                 Key: CAMEL-4334
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4334
>             Project: Camel
>          Issue Type: Test
>          Components: camel-core
>    Affects Versions: 2.8.0
>         Environment: Windows 7, Chinese edition
>            Reporter: edge wang
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.8.1, 2.9.0
>
>         Attachments: ResourceHelperTest.java.patch
>
>
> the hard coded assertion:
> assertEquals("src/test/resources/notfound.txt (No such file or directory)", e.getMessage());
> fails in Windows OS (since the seperator is "\") as well as in Non-english language OS (since the OS message does not match).
> Solution:
> 1.Simply comment out the assertion since the correctness is assured by catching the FileNotFoundException.
> 2.Polish the assertion by use OS file seperator to make the string and use pos() the test whether the string is in the message.
> Either way you like, I can make the patch.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira