News
Features
Changes
Todo
Contributors

Downloads

Installation
Configuration
Using
Servlet Sample
FAQ

Architecture

Ant integration
Servlet Engines

API Reference

Support
Statistics


J2EEUnit 0.9 (March 26 2001)
  • update Modified the J2EEUnit sample not to use a helper class anymore to test servlet method that make use of getServletConfig(), getServletContext(), log(), ... methods. This is actually not needed. The workaround is simply to call init(ServletConfig) on the class to test, passing it the config implicit object, prior to calling the method to test. (VMA) Thanks to René Leonhardt.
  • update Removed version numbers in the generated deliverables. However, there is now a version.txt file in all generated zips and as usual a manifest file for the generated jars. Also note that the versions are still specified on the SourceForge download area for J2EEUnit : this is to let user be able to pick previous versions of J2EEUnit if they wish. (VMA)
  • add Continuous builds of J2EEUnit using GUMP, hosted on the Jakarta project servers. Check here. (VMA) Thanks to Sam Ruby.
  • update Complete refactoring of the J2EEUnit Ant build process in order to use Ant as an application, remove all dependent libraries (they are still available for download in a separate zip file) and remove all the batch files. Now J2EEUnit works on all OS and all platforms (that's easy to do with only Java and no batch files ... hehe). (VMA)
  • update Updated to Stylebook version b3 that uses Xalan 2. As Xalan 2 need a JAXP 1.1 compliant XML parver, parser.jar has been replaced by crimson.jar. (VMA)
  • remove Removed the webalizer statistics on the web site as the Sourceforge statistics are working again. For statistics, go here. (VMA)

J2EEUnit 0.8.1 (March 9 2001)
  • add Tests with Orion server now also stops automatically the running Orion engine. (VMA)
  • fix Fixed the HttpClientHelper class which was using a JDK 1.3 API to check if a query string was present in the URL. Changed to support both JDK 1.2 and 1.3. Also fixed other minor issues so that J2EEUnit now works fine with borh JDKs. (VMA) Thanks to Khairy Mahmoud.
  • add Added a ServletConfig.setServletName() method to the config implicit object to set the servlet's name. This is the value that will be returned by ServletConfig.getServletName(). This only concerns Servlet API 2.3 as there is no ServletConfig.getServletName() method for Servlet API 2.2. (VMA)
  • add Added a setInitParameter() method to the config implicit object to add a sevlet config parameter, as if it had been defined in the web.xml file. (VMA)

J2EEUnit 0.8 (March 7 2001)
  • add Explained how to test classes that call getServletContext() and getServletConfig() in the FAQ. (VMA)
  • update Updated web site docs to match version 0.8 (VMA)
  • add Added a helper method that returns the server output stream as a String. This is to help assert the returned servlet output stream in endXXX() methods. (VMA) Thanks to René Leonhardt.
  • update Upgraded to JUnit 3.5. (VMA)
  • fix If an error occurs during the tests, the servlet engine is now stopped. (VMA)
  • update Updated to Ant 1.3. (VMA)
  • add Integrated the sample application as part of the J2EEUnit framework and use it for running the J2EEUnit functional test suite. (VMA)
  • add Added a redirector JSP in order to offer new implicit objects : pageContext (of type PageContext) and out (of type JspWriter). This is needed to unit testing custom JSP tags for example. (VMA)
  • add Implemented wrappers for ServletConfig and ServletContext to override getRequestDispatcher() to return a RequestDispatcherWrapper which in turn overrides forward() and include() to use the original request and not the simulated one. (VMA)
  • remove Dropped support of Servlet API 2.1 as it has been superseeded by Servlet API 2.2 and 2.3. (VMA)
  • add Added API to ease testing of received cookies in the endXXX() method (j2eeunit.util.AssertUtils.getCookies(HttpURLConnection)). (VMA)
  • add Provided a new ServletTestRequest.setMethod(POST|GET) API in order to choose how the connection to the server redirector is made (POST or GET). This is so that you can test classes which use the HttpServletRequest.getMethod() API (requested by cowboyd). (VMA) Thanks to cowboyd.
  • add Ensure that AssertionFailedException exceptions raised on the server side are raised on JUnit side as AssertionFailedException so that the JUnit GUI display them in another color. (VMA)
  • remove Dropped support for Tomcat 3.1 because newer versions of Tomcat exist (3.2 and 3.3). Also Tomcat 3.1 does not support the <jsp-file> tag in web.xml. (VMA)

J2EEUnit 0.7 (February 25 2001)
  • add Added new batch files and a new Ant build-test-all.xml in order to support automatic run of the J2EEUnit tests for all supported Servlet engines and for all Servlet API. (VMA)
  • add Created a j2eeunit.ant.ResinRun class to start/stop Resin from Ant. Starting was already possible using the Ant java task but stopping it was not possible. It now is, which let us add Resin tests to the list of automated tests. (VMA)
  • update Improved (refactored) Ant build scripts as a whole for better Servlet engine support and test automation. (VMA)
  • add Added a "Tomcat How-to" tutorial that explains how to integrate Tomcat with Ant for automatic test runs. (VMA)
  • add Added a tutorial that explains how to integrate J2EEUnit with Ant. It also includes a chapter on continuous integration. (VMA)
  • update Created an Ant task that starts a target in another thread (this target should be a target that starts a servlet engine) and waits for that engine to be started prior to continuing. Updated all test batch files so that starting a test for a given servlet engine only requires starting a single batch file (whereas previously you had to first start the servlet engine with a given batch file and then when it was started you manually had to call the batch file that started the tests). This will enable us to do automatic testing with no human intervention needed. The Ant build.xml file has also been updated to include this new Ant task in the build process. (VMA)
  • update Moved to Ant 1.4alpha, 19th february 2001 (there were problems with version 1.3beta2 regarding JUnit and the Execute task). (VMA)
  • add Added statistics on the J2EEUnit web site (however it seems it is broken as the figures seem to be too high and not evolving !). (VMA)
  • fix Design bug correction : it is now possible for the method under test to write to the Servlet output stream without breaking the test. Moreover it is also now possible for the class under test to use Request Dispatcher. (VMA)
  • add You can now test the output of your classes under test in the endXXX() method (i.e. everything that is written in the servlet output stream). (VMA)
  • fix Corrected the news.xml documentation page. The img tag used to fetch the remote SourceForge image was breaking Stylebook. I have now enriched the Stylebook DTD and stylesheets to accept a img-external tag. (VMA)

J2EEUnit 0.6 (February 11 2001)
  • remove Don't provide a default j2eeunit.properties file any more. Users must provide one for each application tested. This is to prevent problems with having to place the file in the CLASSPATH before the J2EEUnit jar file. Moreover, most of the time, you need to modify this file to match your web application context name. (VMA)
  • update Improved the Ant build scripts and server test configurations so that they package the J2EEUnit tests in a .WAR file. (VMA)
  • update Refactored the Ant build.xml file and changed the generated files. They now are : j2eeunit-<servlet.api>-<version>.jar (the runtime jar), j2eeunit-src-<version>.zip (the J2EEUnit sources), j2eeunit-doc-<servlet.api>-<version>.zip, (the documentation : javadoc + local web site) and, j2eeunit-website-<timestamp>.zip (the generated remote web site). (VMA)
  • add Added a section on the J2EEUnit Architecture web page to explain the reasons behind J2EEUnit and the assumptions that were made to reach it's design. (VMA)
  • update Moved to Ant nightly build of 04/02/2001. (VMA)
  • remove Removed the JUnit 3.2 from the source distribution (only JUnit 3.4 is packaged with the source zip file). (VMA)
  • add Added version information in the J2EEUnit manifest. (VMA)
  • add Added a new config implicit object (of type ServletConfig) in order to be able to test methods that require a ServletConfig or ServletContext object. It is accessible from setUp(), tearDown(), beginXXX(), testXXX() and endXXX() methods. (VMA) Thanks to Yasuhiko Sakakibara.
  • update Complete modification of the J2EEUnit web site to use the Apache Stylebook system (stylebook-1.0-b2.jar). This is to easily publish changes to the web site and be independent of it's presentation. The presentation can now be changed easily by modifying the Stylebook skin used. (VMA)
  • add Added the J2EEUnit web site to the j2eeunit CVS module under the docs/ directory. This is to provide better synchronization between J2EEUnit and it's web site. (VMA)
  • fix Corrected exception stack trace transportation from the server side to the JUnit client. Before the correction, an exception raised on the server side would print <<no stack trace available>>. Now the correct stack trace is printed. (VMA)
  • add Added Ant scripts support for Orion 1.4. (VMA)
  • add Added Ant scripts support for Tomcat 4.0. (VMA)

J2EEUnit 0.5 (December 30 2000)
  • update Separated the project into several branches for cleanly handling Servlet API 2.1, 2.2 and 2.3. Reorganized the build scripts accordingly. (VMA)
  • add Added the JBuilder4 projects for J2EEUnit to the distribution fullsrc zip. Note: the project files are added under the root directory because it is needed for JBuilder4 to work properly with CVS ! I would have much preferred to put it under /misc if I had the choice ... (VMA)
  • update Now, J2EEUnit verifies the correct signatures of the begin and end method (returned type, modifier, parameters) and throw an exception if they are not correct. (VMA)
  • update Updated the Ant scripts to support Tomcat 3.1.1. (VMA)
  • add Added Ant scripts support for Tomcat 3.2.1. (VMA)
  • add Added Ant scripts support for Resin 1.2.1 and Resin1.2snap of 15/12/2000. (VMA)
  • add Added Ant scripts support for Resin 1.3snap of 21/12/2000. (VMA)
  • add Added Ant scripts support for WebLogic 5.1 SP 8. (VMA)
  • update Moved to the Ant nightly build of 17/12/2000. (VMA)
  • update Moved to JUnit 3.4. J2EEUnit now supports JUnit 3.2 and JUnit 3.4. Note that JUnit 3.4 seems to have dropped the support of JDK 1.1. (VMA)
  • update Improved simulating a full URL in the ServletTestRequest class : URL = http://" + serverName (including port) + contextPath + servletPath + pathInfo + "?" + requestString. Note that the getContextPath() method is not supported by the Servlet 2.1 API. (VMA)
  • add Added the HttpServletRequest.getContextPath() (except for Servlet API 2.1) for simulating the context path. (VMA)
  • add Added the HttpServletRequest.getPathInfo() for simulating the path info. (VMA)
  • add Added the HttpServletRequest.getRequestURI() for simulating the request URI. (VMA)
  • add Added the HttpServletRequest.getServletPath() for simulating the servlet path. (VMA)
  • add Added the HttpServletRequest.getQueryString() for simulating the query string. (VMA)
  • remove Removed the release_notes files. Only kept the current changelog file. (VMA)
  • fix Corrected bug in ServletHttpClient.addCookies(). It failed if more than one Cookie was added because it was missing a ";" between Cookies. (VMA)
  • update Tests have been conducted on W2K with JDK 1.3, JDK 1.2.2 and JDK 1.1 with the following servlet engines : Tomcat 3.1.1 (Servlet API 2.1 and 2.2), Tomcat 3.2.1 (Servlet API 2.1 and 2.2), Resin 1.2x (Servlet API 2.1 and 2.2), Resin 1.3x (Servlet API 2.3) and WebLogic 5.1 (Servlet API 2.2). (VMA)
  • fix The ServletRedirectorRequest_xx.setAttribute() had a bug, it was calling itself recursively instead of calling the wrapped HttpServletRequest's setAttribute() method. (VMA) Thanks to shaabans.
  • fix The ServletHttpClient class was not sending properly the cookies in the HTTP connection; it was missing the $Version attribute. It now conforms to the RFC 2109. (VMA)

J2EEUnit 0.4 (November 17 2000)
  • update Renamed class ServletRedirectorRequest to ServletRedirectorRequest_22 and added a ServletRedirectorRequest_21 class to support Servlet API 2.1 and 2.2 at the same time. (VMA)
  • add Added the j2eeunit.HttpServletRequestImplementation property to j2eeunit.properties to specify which Servlet API (2.1 or 2.2) is being used and thus internally to choose between the 2 implementations : ServletRedirectorRequest_21 and ServletRedirectorRequest_22. (VMA)
  • update Modified build.xml to support compilation for both Servlet API 2.1 and 2.2 and to support compilation with JDK 1.1. (VMA)

J2EEUnit 0.3 (November 8 2000)
  • add Added the ServletTestRequest.setAutomaticSession(boolean createAutomatically) method to enable/disable the automatic creation of an HTTP Session in the servlet redirector. (VMA)
  • update Do not generate javadoc for the private and protected methods. (VMA)
  • add Added handling of setUp() and tearDown() methods. (VMA)
  • add Added a ServletTestCase.currentTestMethod public field which is the name of the current test method being executed. This name is valid both on the client side and on the server side, meaning you can call it from a testXXX(), setUp() or tearDown() method, as well as from beginXXX() and endXXX() methods. (VMA)
  • update Added some javadoc comments (VMA)
  • update Modify ServletTestRequest to handle parameters that have several values: changed API from String getParameterValue() to String[] getParameterValues() and added the String getParameter() method which returns the first value for the given parameter name. (VMA)

J2EEUnit 0.2 (November 6 2000)
  • add Added some javadoc comments. (VMA)
  • add Added version tag in java source files. (VMA)
  • add Added a conf/j2eeunit.properties file to configure the URL under which the servlet redirector is matched. (VMA)


Copyright © 2000-2001 Vincent Massol. All Rights Reserved.