You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Dean Hiller <de...@xsoftware.biz> on 2006/03/24 17:00:09 UTC
test first...mock FacesContext?
So, I looked into FacesContext and mocking that and it unfortunately is
not an interface. A FacesContextFactory.getInstance() call returning an
interface would have made life easier since mock libraries mock
interfaces very easily. oh well, how can one test a web app where the
web app makes calls into an external system which we naturally mock(with
a library of course).
thanks,
dean
Re: test first...mock FacesContext?
Posted by Dean Hiller <de...@xsoftware.biz>.
sweeeeeet. this looks perfect. exactly what I was looking for.
dean
Mike Kienenberger wrote:
> On 3/24/06, Dean Hiller <de...@xsoftware.biz> wrote:
>
>> So, I looked into FacesContext and mocking that and it unfortunately is
>> not an interface. A FacesContextFactory.getInstance() call returning an
>> interface would have made life easier since mock libraries mock
>> interfaces very easily. oh well, how can one test a web app where the
>> web app makes calls into an external system which we naturally mock(with
>> a library of course).
>>
>
> Dean,
>
> I would start here at the Shale JSF testing framework:
>
> http://struts.apache.org/struts-shale/features-test-framework.html
>
>
Re: test first...mock FacesContext?
Posted by Mike Kienenberger <mk...@gmail.com>.
On 3/24/06, Dean Hiller <de...@xsoftware.biz> wrote:
> So, I looked into FacesContext and mocking that and it unfortunately is
> not an interface. A FacesContextFactory.getInstance() call returning an
> interface would have made life easier since mock libraries mock
> interfaces very easily. oh well, how can one test a web app where the
> web app makes calls into an external system which we naturally mock(with
> a library of course).
Dean,
I would start here at the Shale JSF testing framework:
http://struts.apache.org/struts-shale/features-test-framework.html