The three main changes in JSFUnit 1.3 include:
- New drag-and-drop API call on the RichFacesClient
- Compatibility updates with HtmlUnit 2.8
- Bugfix for Arquillian compatibility
The HtmlUnit 2.8 compatibility will solve a lot of problems when using JSFUnit and HtmlUnit because the 2.7 version had a lot of bugs. The main news however, is the Arquillian compatibility, which can now be used to run JSFUnit tests instead of Cactus and Cargo.
The integration with Arquillian can bring several features to JSFUnit testing that the framework didn't have before. Users of JSFUnit and Arquillian can use the @Test annotation because of Arquillian's full JUnit 4 support. They can also use TestNG 5.
Arquillian also allows resource injection (@Inject, @EJB) directly into your test classes. You also have the ability to test only the subsets of your WAR file so that single tests will run faster.
One reason why you might still need to use Cargo is its container support. Arquillian currently supports only Tomcat, Jetty, JBoss AS, and Glassfish.
Aslak Knudsen, the developer who submitted the key bugfix, already has a proof of concept and developers should have a means to perform this integration in a few days. Stay tuned to Stan Silvert's blog for more details.