I'm really liking the testing features in Spring 2.5.x for easier unit testing with JUnit 3.8, 4.x or TestNG using Spring to do all your dependency injection before invoking your test classes.
I've just created a little document to show how to use Spring Testing with Camel, using the Camel Mock and Test endpoints for easier Enterprise Integration Pattern based testing. Incidentally Camel now has a new little Test endpoint which creates a Mock endpoint that automatically pulls its expected message bodies from another endpoint and auto-wires up the expectations for easier testing with minimal coding.
The version of Fuse [188.8.131.52] I'm using doesn't have the class ApplicationContextTestSupport in it.
Do you have an example how to do the same thing in 184.108.40.206 ?
The examples on this page : http://cwiki.apache.org/CAMEL/spring-testing.html
use the base class AbstractJUnit38SpringContextTests which is part of the spring-test jar.
BTW FUSE ESB 220.127.116.11 is a release of the ESB; for the latest/greatest Camel release from IONA grab the FUSE Mediation Router 18.104.22.168
Thanks, I'll take a look.
Post a Comment