Changes

Last update : September 25 2001

About
  • What is Cactus ?
  • Features/Status
  • Goals
  • News/Changes
  • Roadmap/Todo
  • Contributors
  • Contributing
  • License
  • Feedback


  • Downloads
  • Downloads


  • Documentation
  • How it works ?
  • Getting Started
  • Mock vs Container
  • API Reference


  • Howto Guides
  • Config Howto
  • TestCase Howto
  • Ant Howto
  • HttpUnit Howto
  • Sample Howto
  • EJB Howto
  • IDE Howto


  • Support
  • Bug database
  • Mailing list
  • FAQ


  • Misc.
  • Why the name ?
  • Resources


  • Developers
  • CVS
  • Coding Conventions



  • Major news and announcements

    25/09/2001   Cactus 1.2 is now available for download ! Check the Release Notes.  
    22/09/2001   The EJB testing tutorial is now available ! Thanks Hudson !  
    18/09/2001   The Taglib testing tutorial is now available ! Thanks Nicholas !  
    15/09/2001   A cactus-dev mailing list has been created (in addition to the existing cactus-user one). See the Mailing-list page.  
    15/09/2001   Cactus is now a top level Jakarta project ! All documentations have been updated to reflect this and package names have changed from org.apache.commons.cactus.* to org.apache.cactus.*.  
    10/09/2001   The Filter testing tutorial is now available !  

    Last 15 days web site changes

    These are the changes that happened to the Cactus web site for the past 15 days since the last site update (excluding the todo and changes pages which are modified too often) :

    2001-09-25  howto_testcase_jsp  updated to include mandatory call to popBody 
    2001-09-22  contributors, howto_ejb, howto_ejb_j2eeri  new EJB tutorial + changed email address of author 
    2001-09-22  cactusname, coding_conventions, contributing, downloads, features, getting_started, goals, howto_ant, howto_ant_cactus, howto_ant_install, howto_ant_primer, howto_config, howto_httpunit, howto_ide, howto_ide_jbuilder, howto_ide_vajava, howto_sample, howto_testcase, howto_testcase_filter, howto_testcase_servlet, how_it_works, index, javadoc, license, logos, mailinglist, mockobjects, resources  changed email address of author 
    2001-09-18  howto_ide_jbuilder, howto_ide_vajava  removed names of contributors from page as all contributors are now listed on the contributors page 
    2001-09-18  contributors  new contributor : Nicholas Lesiecki 
    2001-09-18  howto_testcase_jsp  taglib tutorial provided by Nicholas Lesiecki 
    2001-09-16  howto_config, howto_ide_vajava  * renamed redirector.jsp in jspRedirector.jsp * corrected mapping for FilterRedirector (some servlet engine - ex: Orion 1.5.2) will not accept a mapping to itself and need a mapping to a jsp for example - although the jsp do not need to be supplied). * some Servlet 2.3 API servlet engine are still using getFilterConfig() and setFilterConfig() for filters (ex: Orion 1.5.2). Added these methods for backward compatibility. * This leads to fully supporting Orion 1.5.2 now ! 
    2001-09-15  contributing, contributors, downloads, getting_started, howto_ant_cactus, howto_ant_install, howto_ant_primer, howto_config, howto_httpunit, howto_ide_jbuilder, howto_ide_vajava, howto_testcase, howto_testcase_filter, howto_testcase_servlet, mailinglist  update documentations and scripts to reflect the change of location from Commons to a top level project 
    2001-09-12  cactusname, contributors  reorganized the contributor page and added information on the history of Cactus 
    2001-09-11  features, howto_ant_primer  more documentation update 
    2001-09-11  features, getting_started, howto_ant_primer, howto_config, howto_httpunit, howto_ide, howto_ide_jbuilder, howto_ide_vajava, howto_sample, howto_testcase, howto_testcase_filter, howto_testcase_jsp, howto_testcase_servlet, mockobjects  documentation update 
    2001-09-11  cactusname  typo 

    Release changes

    Cactus 1.2 (released on September 25 2001)

  • add Added code sample for unit testing tag libs. (NDL)
  • add Tutorial for unit testing EJBs. Thanks to Hudson Wong. (VMA)
  • add Tutorial for unit testing Taglibs. (NDL)
  • add Tutorial for unit testing Servlet Filters. (VMA)
  • add HttpServletRequestWrapper.getPathTranslated() now takes into account any path info set up in WebRequest.setURL(). (VMA)
  • fix Transform the WebResponse.getText() and WebResponse.getTestAsArray() so that they can be called repeatably and produce the same results. Previously the data were read from the server output stream and thus the second read was not returning anything (as it has already been read). (VMA)
  • update Cactus is now a top level Jakarta project. The package names have been changed from org.apache.commons.cactus to org.apache.cactus. (VMA)
  • fix Bug fix: getRequest(), getServletContext() and getServletConfig() methods on the pageContext implicit object (available in JspTestCase) now returns the Cactus wrapped versions of these objects, thus taking into account the simulated URL. (VMA) Thanks to Nicholas Lesiecki.
  • add Added support for unit testing Servlet Filters (Servlet API 2.3 only) by providing a new FilterTestCase test case class. Also added some filter unit testing samples in the distribution. (VMA)
  • fix ( Bug #3427). The Cactus HTTP client was following redirects. This is wrong for unit tests as we should be able to assert returned headers, cookies, ... even for a redirect response. (VMA) Thanks to Tony Payne.
  • add New WebRequest.addCookie(String theDomain, String theName, String theValue) and WebRequest.addCookie(Cookie theCookie) methods for adding cookies to the request. (VMA)
  • add New org.apache.cactus.Cookie class that replaces the old org.apache.cactus.util.ClientCookie one which has been deprecated. The new Cookie class can be used in beginXXX() and endXXX() methods to manipulate cookies. (VMA)
  • update Improved cookie handling and support for domains and paths. It means that the domain need to match either the redirector host name or the host specified in the call to setURL(), otherwise the cookie won't get sent. If no domain is used when adding a cookie to WebRequest then "locahost" domain is used. The cookie path is optional and can be null. If not null, the cookie is only sent for requests starting with the path URL. (VMA)
  • add New dependency on the Jakarta Commons HttpClient component. It is used to manage client cookies, i.e. all Cactus code for managing cookies has been removed in favor of HttpClient. The consequence is that cookie handling now complies much better to the specifciation. (VMA)
  • fix Modified cactus.properties and web.xml mappings (by adding a trailing forward slash to redirector URL and mappings) to support test cases that returns an HTTP status code greater than 400. Otherwise HttpURLConnection returns a FileNotFoundException. (VMA) Thanks to Ron Smith.
  • add Added a Vector getLogs() method to ServletContextWrapper that returns a vector of the log messages generated by calls to ServletContext.log(). This is to easily assert the content of these calls when writing test cases. (VMA)
  • update Some major refactorings and clean up of code ... (VMA)
  • add Added automatic Ant script support for Orion 1.5.x (VMA)
  • fix The test result object that was placed in the ServletContext scope was not serializable, causing errors on IPlanet 6.x (VMA) Thanks to Navjeet Chabbewal.
  • add Added new end method signature that integrates with HttpUnit. You now have the possibility to use the full assertion power of HttpUnit in your end method. You simply need to define your end methods with the following signature : endXXX(com.meterware.httpunit.WebResponse). If you don't need that power and only want to do simple asserts you can use the endXXX(org.apache.cactus.WebResponse) signature which will let you do simple assertions (cookies, headers, content as a String, ...). (VMA)
  • update Deprecated the way to write end methods. The new correct way is endXXX(org.apache.cactus.WebResponse theResponse) (it was endXXX(HttpURLConnection theConnection) previously). All helper methods of AssertUtils have been included in WebResponse and AssertUtils is now deprecated. (VMA)
  • update Deprecated ServletTestRequest. New correct way of writing a begin method is beginXXX(WebRequest theRequest). The class methods are the same. (VMA)
  • update The Cactus runservertests custom Ant task will now not stop the server if it was running before the task was executed. This is to allow to run and rerun Cactus tests without starting/stopping the server every time you run the tests. (VMA) Thanks to Paul Dillon.
  • update Updated all Cactus documentation and reorganised it to better understand what Cactus is, how it works and how to use it. (VMA)
  • add The port used to start the servlet engines when running the sample tests (using the provided Ant scripts) is now configurable. This allows for not interfering with other servers running on the same port. (VMA)
  • add New tutorial for integration within JBuilder. Thanks to Cedric Chabanois and Kunal Vaishnav for providing this tutorial. (VMA)
  • fix Log4j was not initialized on the server side when using JSP Redirector (it was initialized only when using the Servlet Redirector) (VMA) Thanks to Jari Worsley.
  • fix HttpServletRequestWrapper.getRequestDispatcher() was not returning a wrapped request dispatcher, thus causing error when forward() or include() was used afterwards. (VMA) Thanks to Jari Worsley.
  • add New tutorial for integration within VisualAge for Java. Thanks to Todd Idler and Andrew B Forman for providing the information for this tutorial. (VMA)
  • add Added automatic Ant script support for Tomcat 3.3. (VMA)
  • add Now all HTTP parameters specified in the URL when using the ServletTestRequest.setURL() method are automatically passed as real HTTP parameters to the server side, meaning you don't have to manually call addParameters(). (VMA) Thanks to Jari Worsley.
  • fix Fixed bug : URL encoding was applied to cookies so that when passing a special in a cookie it would get encoded when trying to retrieve it. Thanks to Jari Worsley for fixing it. (VMA) Thanks to Kunal Vaishnav.

  • Cactus 1.1 (released on June 18 2001)

  • add Added automatic script support for Enhydra 3.1 (VMA) Thanks to Robert Leftwich.
  • update Tested with JUnit 3.7. (VMA)
  • add Added automatic script support for Resin 2.0 (VMA)
  • add Added logging facility to Cactus, using the Log4j logging framework. In order to make it easy on end users, Log4j is only required when building Cactus from the sources. It is however optional when running Cactus tests. If the log4j jar is present logs will be generated and if not, then no log will be generated. (VMA)
  • fix ( Bug #1612). With some servlet engines (like Tomcat) there is a risk that the test result will not be committed to the servlet application scope *before* the client requests the test result, thus getting a no result exception or, worse, getting the result from the previous test. Also, if the returned result is bigger than the default buffer the server would block until the client side reads the data, thus resulting in a deadlock with the above-mentionned bug. (VMA) Thanks to Bob Davison.
  • add Added a new mehod AssertUtils.getResponseAsStringArray() that returns the servlet output stream as an array of string (each line terminated by a end of line is a string) in the same spirit as the AssertUtils.getResponseAsString() method which returnes the result as a single string. (VMA)
  • fix ( Bug #1610). Corrected handling of multi-line text in AssertUtils.getResponseAsString() which was not handling correctly line terminators (they were skipped). (VMA) Thanks to Bob Davison.

  • Cactus 1.0 (released on May 2 2001)

  • fix ( Bug #1582). Applied patch from Arun Katkere in order to prevent the "connexion reset by peer" error message that may appear in Tomcat when the connection is broken without reading the requested URL by the custom Ant tasks to start and stop a server. (VMA) Thanks to Arun Katkere.
  • add Added a contributing section that explains how to contribute to Cactus. (VMA)
  • add Added a license page on the Cactus web site that explains that Cactus is under the APL license. (VMA)
  • add Added a new target called deploy-site that automatically deploy the generated web site to it's home page on the Jakarta server. This will be very useful when integrated with GUMP nightly builds so that the web site is always up to date. (VMA)
  • update Added a "assigned to" description for items assigned to someone on the todo page + lists all the developers already assigned to tasks. (VMA)
  • update Make the ChangeLogTask work even when not connected to the Internet (i.e. use previous cvslog.xml file or generate an empty one if non already exists). (VMA)
  • add Modified the Changes page so that users can see at a glance the list of pages that have been modified recently on the Cactus web site. (VMA)
  • add Display the last updated date on the Cactus web site, in the left menu (VMA)

  • Cactus 1.0b2 (released on April 20 2001)

  • update Some minor refactoring of code (added AbstractTestCase, modified AbstractHttpClient, JspHttpClient, ServletHttpClient). (VMA)
  • add Add handling of multivalued HTTP headers (same header name with different values) in ServletTestRequest. (VMA) Thanks to Hoani Cross.
  • update Made the methods setUp() and tearDown() protected on the server side so that it is consistent with JUnit. (VMA)
  • update Modified the Ant runservertest task so that it also works when a servlet engine is already up and running and when a server is already stopped prior. This is to support intensive debugging mode when we don't want to start/stop the server all the time. (VMA) Thanks to Philip Aston.
  • add Added a "Cactus scope and status" page on the web site that explains the current scope and status of Cactus. (VMA)
  • add Added a "Cactus goals" page on the web site that gives rough goals and guidelines for the future of Cactus. (VMA)
  • update Improved build process so that it nows works even if junit, stylebook, .. jars are not in the CLASSPATH prior to running the build. (VMA) Thanks to Jeff Turner.

  • Cactus 1.0b1 (released on April 9 2001)

  • update Updated the Cactus distribution so that everything is contained into one single file (doc + jars + sample). The sources are available separately in a second file. (VMA)
  • add Added a section on the main web site page to explain the reason for the Cactus name. (VMA)
  • update Tested with JUnit 3.6. (VMA)
  • update Changed the web site skin to be the Jakarta skin and not the Apache XML skin. This is because Cactus is now part of the Jakarta Commons project. (VMA)
  • update Updated the web site installation section to better explain the required steps to install Cactus. Namely, it covers installing Ant and installing the Cactus Sample application. (VMA)
  • remove Removed the deliverable dependencies jar. Instead, provides a zipped installation of Ant containing the needed jars for tasks used by Cactus and Cactus Sample build files. (VMA)
  • update Removed the misc/ directory and JBuilder files from CVS and source distribution. (VMA)
  • update Renamed the project from J2EEUnit to Cactus. Although it was a difficult decision to make, it had to be done as J2EE is a Sun trademark. Renamed all occurrences of J2EEUnit to Cactus and changed package names (from j2eeunit.* to org.apache.commons.cactus.*. (VMA)
  • fix The sample application sources now contains all needed configuration files (the manifest and web.xml files were missing in the previous release). (VMA)
  • update Donated the project to the Apache Software Foundation. Changed license from GPL to APL. Moved packages from j2eeunit.* to org.apache.commons.j2eeunit.* and changed copyrights (VMA)




  • Copyright © 2000-2001 The Apache Software Foundation. All Rights Reserved.