camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-4334) ResourceHelperTest.testLoadFileNotFound fails in Windows/non english OS.
Date Tue, 16 Aug 2011 07:38:27 GMT

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

Claus Ibsen updated CAMEL-4334:
-------------------------------

              Patch Info: [Patch Available]
    Estimated Complexity: Novice  (was: Unknown)
           Fix Version/s:     (was: 2.8.1)

> 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.9.0
>         Environment: Windows 7, Chinese edition
>            Reporter: edge wang
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 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

        

Mime
View raw message