Skip to Main Content
APACHE KARAF COOKBOOK
book

APACHE KARAF COOKBOOK

by Achim Nierbeck, Jamie Goodyear
August 2014
Beginner to intermediate content levelBeginner to intermediate
260 pages
5h 31m
English
Packt Publishing
Content preview from APACHE KARAF COOKBOOK

Setting up a Pax Exam test environment

This recipe will guide you through the basic setup of a Pax Exam test environment using the Felix framework as the core OSGi container. The next recipe will cover how to combine Pax Exam and Apache Karaf.

How to do it…

To perform integration tests with Pax Exam, the POM configuration is essential, since it is already part of the build environment. For example, use the pax-exam-container-native artifact and of course it is mandatory to connect JUnit with Pax Exam. This can be done as follows:

… <properties> <version.pax-exam>3.4.0</version.pax-exam> <junit.version>4.11</junit.version> ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Instant OSGi Starter

Instant OSGi Starter

Jamie Goodyear, Johan Edstrom
Learning Docker - Second Edition

Learning Docker - Second Edition

Pethuru Raj, Vinod Singh, Jeeva S. Chelladhurai

Publisher Resources

ISBN: 9781783985081Supplemental Content