O'Reilly logo

Pro Spring Dynamic Modules for OSGi™ Service Platforms by Daniel Rubio

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. Testing with Spring and OSGi

The importance of application testing was briefly addressed back in Chapter 2, where you learned to perform both unit and integration testing in the context of the Spring Framework. In doing so, you saw how Spring's POJO-based approach favors unit testing, as well as explored Spring's facilities to perform integration testing against RDBMSs.

Testing OSGi applications presents its own set of challenges. Among these are replicating an OSGi environment to verify that bundles work as expected once installed in an OSGi production environment and creating tests that use OSGi services.

Using Spring-DM simplifies this process. As it's been illustrated numerous times throughout the book, Spring-DM allows OSGi logic ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required