Chapter 10. Testing Apache Karaf with Pax Exam

In this chapter, we will cover the following recipes:

  • Setting up a Pax Exam test environment
  • Testing Apache Karaf features
  • Testing commands with Apache Karaf
  • Coverage with Apache Karaf Pax exam tests
  • Testing Apache Camel with Blueprint and Apache Karaf

Introduction

This chapter explains how to set up a test environment for Apache Karaf. As developing OSGi applications for Apache Karaf also needs thorough testing, an environment for integration testing is needed. Pax Exam is a powerful tool for developing integration tests and can be combined with Apache Karaf.

Tip

More details about Pax Exam can be found at the OPS4j community website at https://ops4j1.jira.com/wiki/display/PAXEXAM3/Pax+Exam. If help is needed, ...

Get Apache Karaf 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.