Friday 15 February 2008

Easier Integration & Pattern testing with Camel and Spring 2.5

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.

2 comments:

  1. 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.

    ReplyDelete
  2. 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