More Testing EJBs with NetBeans
By johnc on Jun 27, 2005
Following up on my Testing EJBs blog, Geertjan posted a blog about how to integrate Cactus as your testing environment. It's only for Web apps but the procedure is pretty much the same for EJB projects.
There's no automatic generation of test classes, but I assume that since Cactus is based on JUnit, it wouldn't be too hard to adapt the test classes generated by the IDE for JUnit into Cactus tests. Anyone who uses Cactus have any comments on how different the two are?
Also, it looks a bit clunky to do this (have to hack the IDE's build script and add all the libraries to the test classpath yourself). It would be nice to let the user specify which testing frameword she wants to use and then have everything work out of the box. The question is whether enough people use Cactus, MockEJB, etc. to make this a worthwhile use of resources.