[ https://issues.apache.org/jira/browse/CAMEL-4334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13084969#comment-13084969 ]
Claus Ibsen commented on CAMEL-4334: ------------------------------------ Thanks for reporting. A patch without the assertEquals would be good, as testing the exception is of instance FileNotFoundException should be okay. > ResourceHelperTest.testLoadFileNotFound fails in Windows/non english OS. > ------------------------------------------------------------------------ > > Key: CAMEL-4334 > URL: https://issues.apache.org/jira/browse/CAMEL-4334 > Project: Camel > Issue Type: Bug > 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