Chapter 9. Testing

In this chapter, we will cover:

  • Testing routes defined in Java
  • Using mock endpoints to verify routing logic
  • Replying from mock endpoints
  • Testing routes defined in Spring
  • Testing routes defined in OSGi Blueprint
  • Auto-mocking of endpoints
  • Validating route behavior under heavy load
  • Unit testing processors and Bean Bindings
  • Testing routes with fixed endpoints using AOP
  • Testing routes with fixed endpoints using conditional events

Introduction

System integrations are traditionally a very difficult thing to test. Most commercial products, as well as home-cooked integrations, have no built-in support for automated testing. This usually results in verifying integration behavior through a manual approach involving triggering events/messages/requests ...

Get Apache Camel Developer's Cookbook 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.