Testing using JUnit
The Application Developer test framework is built on the Eclipse Test & Performance Tools Platform (TPTP), which extends the Eclipse Hyades Tool Project. It contains monitoring, tracing, profiling, and testing tools. JUnit is one of the testing tools and can be used for automated component testing. TPTP also includes profiling capabilities for memory, performance, and other execution time code analysis. We explore profiling in
Chapter | 7, Profiling applications.
In this chapter, we introduce application testing concepts, and provide an overview on TPTP and JUnit, as well as the features of Application Developer for testing. In addition, we include working examples to demonstrate how to create and run component tests using JUnit, as well as demonstrating how to test Web applications.
The chapter is organized into the following sections:
The sample code is available in c:\7672code\junit.