Unit testing JSF applications

I recently blogged about unit testing Spring-MVC applications, which is made a lot easier by the mock classes that come with the framework. Last time I was working with JSF, there wasn't really any equivalent for JSF, which was a shame. However, one reader generously pointed out that now such as testing framework does exist, at least in a beta form. It's called JSFUnit. I haven't played with it myself yet, but it certainly looks neat. If you are working on a JSF application, it may well be worth a look.

John is a freelance consultant specialising in Enterprise Java, Web Development, and Open Source technologies, currently based in Wellington, New Zealand. Well known in the Java community for his many published articles, John helps organisations to optimize their Java development processes and infrastructures and provides training and mentoring in open source technologies, SDLC tools, and agile development processes. John is principal consultant at Wakaleo Consulting, and runs several Training Courses on open source Java development tools and best practices. John is a DZone MVB and is not an employee of DZone and has posted 69 posts at DZone. You can read more from them at their website.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

Comments

Rick Hightower replied on Wed, 2008/02/06 - 8:13pm

Shale has had Mock JSF objects for a very long time.
rick hightower cto of arcMind blog linkedin

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.