jQuery in Action, 2nd edition
The moose likes JSF and the fly likes Testing JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Testing JSF" Watch "Testing JSF" New topic
Author

Testing JSF

Tom Henricksen
Ranch Hand

Joined: Mar 23, 2004
Posts: 135
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
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14475
    
    7

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Testing JSF
 
Similar Threads
h:commandbutton javascript
Unit Testability ---JSF
JSF: Unit Testing managed beans
JSF Testing application
Unit Test Tool for JSF Portlets in websphere portal5.1