Unit test portlets with portletUnit

Use the portletUnit framework to test without portal servers

From the developerWorks archives

Hema Venkatrangan

Date archived: January 4, 2017 | First published: April 20, 2010

Portals provide information from diverse sources in a unified way. When portlets are integrated into a portal, the functions delivered as part of each portlet should be available all of the time. Unit testing can ensure that the features of your portlets will work all the time, and everywhere. It is important to unit test portlets before they are hosted publicly, and testing with frameworks will speed up the testing process. In this article, learn about portletUnit, a JUnit testing framework for testing JSR-168 portlets. portletUnit uses a mock container for testing, thereby reducing the cost of investment in huge portal server environments. With the portletUnit framework you can run unit tests on any machine—without a portal server.

This content is no longer being updated or maintained. The full article is provided "as is" in a PDF file. Given the rapid evolution of technology, some steps and illustrations may have changed.

Zone=Web development, Open source, Java development
ArticleTitle=Unit test portlets with portletUnit