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 examples on this page : http://cwiki.apache.org/CAMEL/spring-testing.html
ReplyDeleteuse the base class AbstractJUnit38SpringContextTests which is part of the spring-test jar.
BTW FUSE ESB 3.3.0.7 is a release of the ESB; for the latest/greatest Camel release from IONA grab the FUSE Mediation Router 1.3.2.0
ReplyDelete