You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by zigo <al...@gmail.com> on 2009/04/28 10:10:00 UTC

Camel 2.0-M1 JUnit tests fail

I have just downloaded Camel 2.0-M1 sources on my Mac (OS X 10.5.6) and
issued 'mvn install'.

The test org.apache.camel.converter.IOConverterTest fails because of a
trailing line feed character in test file
apache-camel-2.0-M1/src/camel-core/src/test/resources/org/apache/camel/converter/dummy.txt

Removing that character (or modifying the test case) solves the problem.

Alberto
-- 
View this message in context: http://www.nabble.com/Camel-2.0-M1-JUnit-tests-fail-tp23272290p23272290.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Camel 2.0-M1 JUnit tests fail

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

I have committed a fix in the trunk: rev 769305.

-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus
Apache Camel Reference Card:
http://refcardz.dzone.com/refcardz/enterprise-integration

Re: Camel 2.0-M1 JUnit tests fail

Posted by Claus Ibsen <cl...@gmail.com>.
On Tue, Apr 28, 2009 at 10:32 AM, zigo <al...@gmail.com> wrote:
>
>
>
> Claus Ibsen-2 wrote:
>>
>> Hi
>>
>> Strange. The source from SVN does not have a new line at the end of
>> the dummy.txt file.
>> Maybe the maven release goals tamper with the files :)
>>
>>
>
> I guess it is a tar problem: I have read somewhere that unix-like systems
> silently add a newline character at the end of text files, in case it is
> missing.
Ah

Thanks for the info. I guess we just add a newline in the source file
and alter the unit test to take care of this.


>
> Alberto
> --
> View this message in context: http://www.nabble.com/Camel-2.0-M1-JUnit-tests-fail-tp23272290p23272626.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus
Apache Camel Reference Card:
http://refcardz.dzone.com/refcardz/enterprise-integration

Re: Camel 2.0-M1 JUnit tests fail

Posted by zigo <al...@gmail.com>.


Claus Ibsen-2 wrote:
> 
> Hi
> 
> Strange. The source from SVN does not have a new line at the end of
> the dummy.txt file.
> Maybe the maven release goals tamper with the files :)
> 
> 

I guess it is a tar problem: I have read somewhere that unix-like systems
silently add a newline character at the end of text files, in case it is
missing.

Alberto
-- 
View this message in context: http://www.nabble.com/Camel-2.0-M1-JUnit-tests-fail-tp23272290p23272626.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Camel 2.0-M1 JUnit tests fail

Posted by Claus Ibsen <cl...@gmail.com>.
On Tue, Apr 28, 2009 at 10:10 AM, zigo <al...@gmail.com> wrote:
>
> I have just downloaded Camel 2.0-M1 sources on my Mac (OS X 10.5.6) and
> issued 'mvn install'.
>
> The test org.apache.camel.converter.IOConverterTest fails because of a
> trailing line feed character in test file
> apache-camel-2.0-M1/src/camel-core/src/test/resources/org/apache/camel/converter/dummy.txt
>
> Removing that character (or modifying the test case) solves the problem.
Hi

Strange. The source from SVN does not have a new line at the end of
the dummy.txt file.
Maybe the maven release goals tamper with the files :)



>
> Alberto
> --
> View this message in context: http://www.nabble.com/Camel-2.0-M1-JUnit-tests-fail-tp23272290p23272290.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus
Apache Camel Reference Card:
http://refcardz.dzone.com/refcardz/enterprise-integration