camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Zhang <jmszh...@gmail.com>
Subject Re: Problem with ETL example
Date Wed, 08 Aug 2007 12:39:32 GMT



James.Strachan wrote:
> 
> On 8/8/07, jameszhang <jameszhang.james@gmail.com> wrote:
>> I have run the following testcase,and the result is failed too.
>>
>> //------------------ START SNIPPET
>> package org.apache.camel.component.file;
>>
>> import java.io.File;
>>
>> import org.apache.camel.ContextTestSupport;
>> import org.apache.camel.Exchange;
>>
>> public class FileExchangeTest extends ContextTestSupport {
>>
>>          public void testCopy() {
>>
>>                  File file = new
>> File(FileExchangeTest.class.getResource("FileExchangeTest.class").getFile());
>>                  FileExchange fileExchange = new
>> FileExchange(context,file);
>>                  Exchange exchange = fileExchange.copy();
>>                  assertTrue("the copy of a FileExchange is not a
>> FileExchange instance",
>>
>> exchange instanceof FileExchange);
>>          }
>>
>> }
>> //------------------ END SNIPPET
>>
>> Thanks very much.
> 
> Great catch James!
> 
> I've added this test case to camel-core along with a patch to fix it -
> many thanks.
> -- 
> James
> -------
> http://macstrac.blogspot.com/
> 
> 


OK.
I think I can write the spring example now.

-- 
View this message in context: http://www.nabble.com/Problem-with-ETL-example-tf4235529s22882.html#a12052244
Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message