Unit Testing JSF With shale-test.jar

JSF is not at all easy to test, and really wasn’t designed to be, but so far the mock objects library included with Shale appears to be working for us. I paired with one of my developers for 3 hours to get 3 unit tests written that needed a FacesContext to allow for unit testing. For something you’re still pulling down with nightly builds, it appears solid enough for now. The extra examples in the source code helped work out some of the details for us.