>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.
>
>
> 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.
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

