-
Book Overview & Buying
-
Table Of Contents
APACHE KARAF COOKBOOK
By :
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.
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.
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 that it needs to run with Apache Karaf as the container; this is configured using the following:
The pax-exam-container-karaf dependency as a replacement dependency for the Felix framework.
The apache-karaf ZIP artifact to be used as the runtime container...
Change the font size
Change margin width
Change background colour