Sorry I've been out of touch for so long - forgot my blogger password and it took me a while to figure out how to reset it. Man, I hate having all these different passwords. I try to reuse variations of the same passwords but with different sites having different restraints on what passwords you can use, I always get it confused. David Coldrick suggested using Password Safe. I'm going to try to use it, but of course if my computer crashes there they go..

Anyway, on to the post I was writing last week. Here's another drop of wisdom from Petr "Da Brain" Blaha, which I have typed up and appended my name to:

http://www.netbeans.org/kb/41/test-ejbs.html

If you're going to test enterprise beans with JUnit, you have to add the necessary JAR files to the test classpath (j2ee.jar and appserv-rt.jar), then get a reference to the enterprise bean's remote interfaces.

There's some controversy about whether JUnit is a suitable framework for testing enterprise applications. Some people prefer to test enterprise apps using Jakarta Cactus. I'm going to look into how to get that going in NetBeans. In the meantime, JiRong Hu provides a great write-up of EJB testing strategies with JUnit on ONJava.com.

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed

This blog copyright 2009 by johnc