Java Reference
In-Depth Information
Testing OSGi components
Theory is when you know something, but it doesn't
work. Practice is when something works, but you
don't know why. Programmers combine theory and
practice: Nothing works and they don't know why.
—Anonymous
This chapter covers
The OSGi dynamic module system
Mock testing of your modules
In-container testing of your modules
So far, we've been testing everything from the Java EE spec. All the Java EE compo-
nents that we've dealt with ( JSP s, tag libraries, servlets, filters, EJB s, and so on) have
been available for a long time. In this chapter we discuss a technology that became
popular relatively recently and is getting more popular every day: OSG i.
We start the chapter by introducing OSG i 1 We then walk through the basic OSG i
concepts and provide easy-to-grasp examples by means of the calculator application
1
OSGi is a registered trademark of the OSGi Alliance.
310
 
Search WWH ::




Custom Search