From: <[EMAIL PROTECTED]>

Will Cactus add classes to represent the JSF related session objects like
the FacesContext? If not, how would I place my test data into the Faces
request without mocking FacesContext?

I don't know what plans the Cactus team has, but you might want to look at
Shale's test package:
 http://people.apache.org/~craigmcc/shale-test-javadocs/

Nightly builds are available:
  http://struts.apache.org/shale/index.html#download

Also, can I use Cactus to test a JSF JSP? If so , do you know of any
examples?

This is where I'm still confused-- by the time it gets to the browser, it's
"just" HTML and JavaScript.  I don't see why testing the output of a JSP
page that had JSF tags in it is different from testing one that had, say,
Struts tags.  It's still <input type="text" ...> in the browser, right?

FWIW there are some examples of testing JSF JSP pages in Shale.  Look in
src/systest in the use-cases section.  They are, however, HtmlUnit and the
current version of the Cactus Maven plugin wouldn't run them.  I did see
HtmlUnit support get added to Cactus recently, so I'm hopeful.

I'd suggest that you ask about testing JSF apps on the MyFaces list.  Even
if you're using a different implementation, they are a helpful bunch. :)
And if you have questions about Shale, come join us on the Struts user list.

HTH,
--
Wendy Smoak



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to