Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2C86A8870 for ; Tue, 16 Aug 2011 07:39:09 +0000 (UTC) Received: (qmail 45936 invoked by uid 500); 16 Aug 2011 07:39:09 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 45562 invoked by uid 500); 16 Aug 2011 07:39:04 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 45178 invoked by uid 99); 16 Aug 2011 07:38:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Aug 2011 07:38:49 +0000 X-ASF-Spam-Status: No, hits=-2001.1 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Aug 2011 07:38:47 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 40821BE9D5 for ; Tue, 16 Aug 2011 07:38:27 +0000 (UTC) Date: Tue, 16 Aug 2011 07:38:27 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: dev@camel.apache.org Message-ID: <714824569.40762.1313480307260.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <441756627.37272.1313336728327.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (CAMEL-4334) ResourceHelperTest.testLoadFileNotFound fails in Windows/non english OS. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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