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/15 07:42:27 UTC
[jira] [Updated] (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 updated CAMEL-4334:
-------------------------------
Regression: [Unit Test Broken]
Issue Type: Test (was: Bug)
> 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
> Priority: Minor
> Fix For: 2.8.1, 2.9.0
>
>
> 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