6. Testing GreenPages
Prev |  | Next

## 6. Testing GreenPages

## 6.1 Introduction

Testing is one of the most important aspects of software development. Without testing it would be difficult to determine if a piece of code worked properly, changes would have undetected consequences, and the quality of products would generally be lower.

There are two major categories of testing generally recognised today: unit testing and integration testing. In the context of the GreenPages application, unit testing means testing a single class in isolation from other application code. This type of testing does not change at all when developing for Web Server.

In our application integration testing means testing an application or portion of an application with other code. This kind of testing does look a bit different when developing for Web Server. In most cases Web Server applications are made up of small bundles that consume services through the OSGi registry. In the following steps a single bundle and the entire GreenPages application will be integration tested outside the container.

Prev |  | Next
5.5 Applying best practices to the middle tier | Home | 6.2 Single bundle integration testing