O'Reilly logo

JBoss ESB by Tom Cunningham, Magesh Kumar B, Kevin Conner, Len DiMaggio

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to test your ESB services

Now that you have created ESB services, how do you test them? Actions themselves are generally easily testable—create a message with some test data, and you can simulate the effect of executing a single action. What is more complex is integration testing—testing your complete action chain and testing your service through the listeners and providers that you set up within your configuration file. In the following section, we'll discuss how to perform this sort of integration test so that you can add it into your build process.

Testing a single action

Actions alone are generally easily testable. You can create a message with some test data, invoke the action's process method upon the message, and then make comparisons ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required