Jakarta Cactus
Encyclopedia
Cactus is a simple test framework for unit testing server-side Java
Java (programming language)
Java is a programming language originally developed by James Gosling at Sun Microsystems and released in 1995 as a core component of Sun Microsystems' Java platform. The language derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities...

 code (Servlets, EJB
Enterprise JavaBean
Enterprise JavaBeans is a managed, server-side component architecture for modular construction of enterprise applications.The EJB specification is one of several Java APIs in the Java EE specification. EJB is a server-side model that encapsulates the business logic of an application...

s, Tag libs, ...) from the Jakarta Project
Jakarta Project
The Jakarta Project creates and maintains open source software for the Java platform. It operates as an umbrella project under the auspices of the Apache Software Foundation, and all of Jakarta products are released under the Apache License.-Subprojects:...

. The intent of Cactus is to lower the cost of writing tests for server-side code. It uses JUnit
JUnit
JUnit is a unit testing framework for the Java programming language. JUnit has been important in the development of test-driven development, and is one of a family of unit testing frameworks collectively known as xUnit that originated with SUnit....

 and extends it. Cactus implements an in-container strategy, meaning that tests are executed inside the container.

Project Status

The Jakarta Cactus project announced the new 1.8.1 version http://jakarta.apache.org/cactus/changes-report.html on January 18, 2009. Version 1.8.1 still does not support JUnit
JUnit
JUnit is a unit testing framework for the Java programming language. JUnit has been important in the development of test-driven development, and is one of a family of unit testing frameworks collectively known as xUnit that originated with SUnit....

4.x, although a workaround of sorts is documented https://issues.apache.org/jira/browse/CACTUS-252. As of 1.8, Cactus uses Cargo for all server-related manipulation.
As of 08/05/2011, cactus has been retired. http://jakarta.apache.org/cactus/mock_vs_cactus.html

External links

The source of this article is wikipedia, the free encyclopedia.  The text of this article is licensed under the GFDL.
 
x
OK