Testing Apache Karaf features

After going through the Setting up a Pax Exam test environment recipe, you should be ready to test OSGi applications in general. Now, let's take a closer look at what is needed to run a test with Apache Karaf as the container.

Getting ready

As in the previous chapters, the sources are available at https://github.com/jgoodyear/ApacheKarafCookbook/tree/master/chapter10/chapter10-recipe2. To fully understand this recipe, it is best to have gone through the previous recipe.

How to do it…

In the Setting up a Pax Exam test environment recipe, we defined the Felix framework as the runtime container. Now, we need to change this to Apache Karaf, so the first changes need to be done to the POM configuration. Pax Exam needs to know ...

Get Apache Karaf Cookbook now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.