I’ve not seen anything in this area I would recommend to a client. If you’ve used Spring PortletMVC, how did you test it?
It’s easy to test under the level of portlet code, and relatively easy to test on the client side through HtmlUnit, Selenium and the like, but I haven’t seen anything that is a “Gray Box” test in the spirit of JSFUnit (which looks to me to be the way forward).
- Apache’s Pluto driver could theoretically be used to bootstrap a test harness. Has anyone tried this?
- Any stub or data provider approaches?
- Any approach to address two-phase processing concerns?
I don’t know anything about portlets but here it goes.
There’s portletUnit.
Some more related info could be found on his Project PortletUnit blog, including PortletUnit and Spring Portlet: Checking form validation errors.
There’s also a blog article written by Nils-Helge Garli Hegvik in 2007 titled Testing Portlets with Jetty, Pluto and JWebUnit.
Finally, Spring Framework documentation 10.2 Unit testing.
Here’s a related article written by John Ferguson Smart titled
Unit testing your Spring-MVC applications.