• Post Reply Bookmark Topic Watch Topic
  • New Topic

Testing JSF  RSS feed

 
Tom Henricksen
Author
Ranch Hand
Posts: 144
5
Eclipse IDE jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on a new project with JSF. I have seen a few post in this forum about testing with no real discussion. I have used Cactus before is anyone using this to test JSF? Or maybe some modification on StrutsTestCase? I was disappointed that Core JSF or Java Server Faces by Orielly doesn't cover testing JSF.
Thanks,
Tom
 
Tim Holloway
Bartender
Posts: 18663
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because of the architecture of JSF, you can do most testing with plain old JUnit. A well-designed backing bean doesn't even know it's (sometimes) running in a web container.

In fact, it was a core design goal that JSF components be testable without having to build cumbersome frameworks around them.

Cactus and HttpUnit, etc. work just fine with JSF for cases where the end-to-end process needs testing.

So the reason you don't see anything on JSF testing is simply because JSF doesn't have any special testing requirements above and beyond what you're already familiar with.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!