This chapter shows how to use Cactus for in-container testing, a vital concern of any XP/J2EE developer. To phrase it another way, this chapter attempts to answer "How do I do unit tests on servlets and other J2EE components?" We assume that you are familiar with JUnit and J2EE components ” especially servlets and JSPs.
Originally, Cactus was called J2EEUnit, a name that captured the intent of the framework nicely . However, Sun owns the J2EE trademark, so the Apache Software Foundation changed the framework's name to Cactus. Cactus 1.5 is a top-level project under Jakarta and is distributed under the Apache Software License, Version 2.0. It can be downloaded at
http://jakarta.apache.org/cactus/downloads.html