Tuesday, April 05, 2005

Release 0.2.1

I have uploaded a new release to source forge: portletUnit-0.2.1. It no longer needs pluto and the portlets can be tested in place.

This zip file contains the following:
* build.xml - a sample build file that shows how to use portletunit. [ant all] will run all the tests
* lib - the portletunit.jar file is in here.
* jars - the jar files that portletUnit depends upon.
* portlets - a sample portlet application with 4 portlets and test code. These are what are used to test portletUnit. The sample unit tests are in portlets/examples/WEB-INF/src/net/sf/portletunit/test TestPreferencePortlet.java is a good one to get started on.

Notes:
** Place all the jars in the lib and jars directory into the classpath. It is necessary to use the httpunit.jar from the jars directory because it has been modified.

** The call to PortletRunner.createPortletRunner has changed. It now takes 2 arguments:
* File portletDir - the directory where the WEB-INF is.
* String portletApplicationName - In the web.xml, for each portlet, there is a servlet defined. Each servlet has an init-param, portlet-guid. The format of the portlet-guid is
[portletApplicationName].[portletName]

0 Comments:

Post a Comment

<< Home