>From: Axel Karst <[EMAIL PROTECTED]>
>
> Hi,
>
> I'm also searching for an possibility to unit test my JSF Component,
> which implements UIInput. I'm using MyFaces and Facelets. As far as I
> understood, Cactus does not directly support JSF in container testing.
> Shale Test FW (using Mock Objects) can only test implementations of
> ViewController.
>
 
Actually, you can do a lot with the Shale mock objects.  It's not just limited
to testing a ViewController.  For example, you can test the rendering of a component.
 
http://svn.apache.org/viewcvs.cgi/struts/shale/trunk/clay-plugin/src/test/org/apache/shale/clay/config/CommentTestCase.java?rev=393130&view=log
 
This example registers component renderers, invokes rendering and checks
the rendered html.
 
The ViewController is a managed bean that implements and interfaces so the
testing is not limited to just ViewControllers.  It works with any managed bean.
 
Gary

> Interesting discussion on this topic:
> http://www.jroller.com/page/robwilliams?entry=jsf_s_achilles_heel
>
> Axel

Reply via email to