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