Cactus
Home PageCategories: Testing
Author: Apache Jakarta
Latest version: 1.7
Added 2005-03-11
Framework for unit testing server-side Java code (Servlets, EJBs, Tag Libs, Filters, ...).
The intent of Cactus is to lower the cost of writing tests for server-side code. It uses JUnit and extends it.
Cactus implements an in-container strategy, meaning that tests are executed inside the container.
The Cactus ecosystem is made of several components:
- The Cactus Framework: This is the heart of Cactus. It is the engine that provides the API to write Cactus tests.
- The Cactus Integration Modules: They are front ends and frameworks that provide ways of using the Cactus Framework (Ant scripts, Eclipse plugin, Maven plugin, Browser integration to run Cactus tests from a browser, ...).
- The Cactus Samples: They are simple projects that demonstrate how to write Cactus tests and how to use some of the Integration Modules.
Features include:
- Integrates with the JUnit testing framework. Any tool that works with JUnit will work with Cactus because a Cactus test is a JUnit test.
- Provides a ServletTestCase class that your test case can extend for unit testing Servlets or any Java classes that make use of Servlet API objects.
- Provides a JspTestCase class that your test case can extend for unit testing Taglibs or any Java classes that make use of JSP API objects. In addition, a TestJspTagLifecycle extension is provided to help test JSP Taglibs.
- Provides a FilterTestCase class that your test case can extend for unit testing Filters or any Java classes that make use of Filter API objects.
- Allows to run existing JUnit Test Case classes on the server side.
- Ability to unit test EJBs (including local interfaces) by calling them from a ServletTestCase, JspTestCase or FilterTestCase class.
- Supports internationalization.
Built for Java |
Plug-in |
Free or free version available |
Source code provided |