You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Muhammad Ichsan <ic...@gmail.com> on 2010/04/22 15:05:20 UTC

How to test

Dear All

I want to create a component which also use its own uri. How to unit test
the component? I see nothing about testing components (e.g. camel-mina) in
the source apache-camel-2.2.0-src.tar.gz

-- 
~The best men are men who benefit to others
http://michsan.web.id

Re: How to test

Posted by Willem Jiang <wi...@gmail.com>.
I checked the apache-camel-2.3.0-SNAPSHOT-src.tar.gz and the 
apache-camel-2.2.0-src.tar.gz
The camel-mina unit test files are in the director of 
"components/camel-mina/src/test/"

Willem


Claus Ibsen wrote:
> Hi
> 
> I dont tink the tar have the -test source code.
> 
> You can view that online at
> https://svn.apache.org/repos/asf/camel/trunk/components/camel-mina/src/test/
> 
> 
> On Thu, Apr 22, 2010 at 3:05 PM, Muhammad Ichsan <ic...@gmail.com> wrote:
>> Dear All
>>
>> I want to create a component which also use its own uri. How to unit test
>> the component? I see nothing about testing components (e.g. camel-mina) in
>> the source apache-camel-2.2.0-src.tar.gz
>>
>> --
>> ~The best men are men who benefit to others
>> http://michsan.web.id
>>
> 
> 
> 


Re: How to test

Posted by Willem Jiang <wi...@gmail.com>.
Muhammad Ichsan wrote:
> On Thu, Apr 22, 2010 at 8:24 PM, Claus Ibsen <cl...@gmail.com> wrote:
> 
>> Hi
>>
>> I dont tink the tar have the -test source code.
>>
>> You can view that online at
>>
>> https://svn.apache.org/repos/asf/camel/trunk/components/camel-mina/src/test/
>>
> 
> Thanks, this URL is enough for me. But the test class needs some
> modification to suit latest Camel and JUnit 4
> 

Just one more note, if you want to reuse the camel-mina test, you also 
need to include the camel-test module, which provides some unit test 
support classes that you may need.

Willem

Re: How to test

Posted by Muhammad Ichsan <ic...@gmail.com>.
On Thu, Apr 22, 2010 at 8:24 PM, Claus Ibsen <cl...@gmail.com> wrote:

> Hi
>
> I dont tink the tar have the -test source code.
>
> You can view that online at
>
> https://svn.apache.org/repos/asf/camel/trunk/components/camel-mina/src/test/
>

Thanks, this URL is enough for me. But the test class needs some
modification to suit latest Camel and JUnit 4

-- 
~The best men are men who benefit to others
http://michsan.web.id

Re: How to test

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

I dont tink the tar have the -test source code.

You can view that online at
https://svn.apache.org/repos/asf/camel/trunk/components/camel-mina/src/test/


On Thu, Apr 22, 2010 at 3:05 PM, Muhammad Ichsan <ic...@gmail.com> wrote:
> Dear All
>
> I want to create a component which also use its own uri. How to unit test
> the component? I see nothing about testing components (e.g. camel-mina) in
> the source apache-camel-2.2.0-src.tar.gz
>
> --
> ~The best men are men who benefit to others
> http://michsan.web.id
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus