On Tue, Oct 20, 2009 at 9:23 PM, Carlos Cook <carlos.coo...@gmail.com> wrote:
>
> Thanks. I know there are a number of tricks that I can add to my production
> route to help with testing. When is this book due to release. I'm
> interesting in reading this chapter 5. :)
>

Its going MEAP in short time. Keep an eye on the manning website. Or
this forum, my blog etc. When its live I am sure we are going to write
a bit about it.

And the good news is that chapter 5 will be part of the MEAP launch so
its already written.

In terms of testing. You can also use endpoint reference and have IoC
different endpoints depending on production, pre-prod, test, developer
environments. You know having .properties files for different
environments. Just as you would for having jdbc properties etc.

If using spring XML then there is a faq here
http://camel.apache.org/how-do-i-use-spring-property-placeholder-with-camel-xml.html




>
>
> Claus Ibsen-2 wrote:
>>
>> On Tue, Oct 20, 2009 at 7:42 PM, Claus Ibsen <claus.ib...@gmail.com>
>> wrote:
>>> On Tue, Oct 20, 2009 at 5:52 PM, Carlos Cook <carlos.coo...@gmail.com>
>>> wrote:
>>>>
>>>> We have a complicated system setup to plan our routes. I want to write
>>>> unit
>>>> tests to test these routes. Is there a way to test the routes without
>>>> having
>>>> to re-write a bunch of code to tell my routes to go to mock endpoints?
>>>> The
>>>> only examples that I have seen have been of routes that have been
>>>> re-written
>>>> to go to mock endpoints. I want to test the routing system that's in
>>>> place
>>>> not re-write it. Is that possible?
>>>> --
>>>
>>> Yeah it is. See chapter 4 in the upcoming book Camel in action which
>>> has a whole chapter devoted to testing. Its approx 35+ pages.
>>>
>>
>> Ah sorry got the chapters mixed up. Its chapter 5 which is about testing.
>>
>> You can also find inspiration on this blog entry
>> http://davsclaus.blogspot.com/2009/04/on-road-to-camel-20-interceptors.html
>>
>> where you can leverage the interceptors with testing.
>>
>>>
>>>
>>>> View this message in context:
>>>> http://www.nabble.com/Testing-Routes-tp25977697p25977697.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
>>>
>>
>>
>>
>> --
>> Claus Ibsen
>> Apache Camel Committer
>>
>> Open Source Integration: http://fusesource.com
>> Blog: http://davsclaus.blogspot.com/
>> Twitter: http://twitter.com/davsclaus
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/Testing-Routes-tp25977697p25980960.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

Reply via email to