Great stuff James! Just wanted to clarify: the spring-java-config stuff still doesn't eliminate the need to test with an actual Spring XML file right? I think most of the Spring DSL tests are just for trying out the XML config syntax... which we still want to do :)
On Wed, Dec 3, 2008 at 8:14 AM, James Strachan <[EMAIL PROTECTED]>wrote: > We've been through a few iterations of testing during the lifetime of > the Camel project; we started with ContextTestSupport which was quite > handy; Mock endpoints camel along, then the Camel binding and > injection annotations came... > http://activemq.apache.org/camel/bean-integration.html > > together with Spring Test came along along with which made testing > much simpler and more powerful > http://activemq.apache.org/camel/spring-testing.html > > then came Guice support not requiring any XML > http://activemq.apache.org/camel/guice.html > > and finally support for Spring Java Config to allow folks to use > Spring without any XML > http://cwiki.apache.org/CAMEL/spring-java-config.html > > However not everyone uses Spring or Guice for Dependency Injection; > sometimes folks use straight Java code. So then Camel Test has > recently come along as an option... > http://cwiki.apache.org/CAMEL/camel-test.html > > This might now all seem confusing! So I've tried to create a testing > page describing how they are all now pretty similar; whether using > Camel Test, Spring Testing with XML or Java Config or Guice... > http://cwiki.apache.org/CAMEL/testing.html > > Any feedback/thoughts welcome! > > -- > James > ------- > http://macstrac.blogspot.com/ > > Open Source Integration > http://fusesource.com/ > -- Cheers, Jon http://janstey.blogspot.com/
