9 Testing

This chapter covers

  • Introducing and using the Camel Test Kit
  • Unit-testing Camel
  • Testing with mocks
  • Simulating components and errors
  • Amending routes before testing
  • Integration and system testing
  • Using third-party test frameworks with Camel

Integrated systems are notoriously difficult to test. Systems being built and integrated today often involve a myriad of systems ranging from legacy systems, closed source commercial products, homegrown applications, and so on. These systems often have no built-in support for automated testing.

The poor folks who are tasked with testing such integrated systems often have no other choice than to play through manual use cases—triggering events from one window/terminal and then crossing their ...

Get Camel in Action, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.