Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

After developing a component of our OSGI application, we aim to test the new funcionality before integrating it. Unitary tests are a good solution to check the classes of our bundle in an isolated way, but what if we want to test how our bundle fits with the other components of our application? Well, we need a testing toolkit providing us the availibity of emulating our deployes environment, like Pax-Exam.

Pax-Exam

Pax-Exam is an automated testing framework for OSGI applications. Its main particularity is how it works. Pax-Exam starts a OSGI container, install the bundles we configure in it, and run our test classes. This methodology allows us to make assertions over many components, like the services we publish or the result of an operation.