I have never used the JBossTestCase to test our application. I use the Cactus tool to do EJB testing. I dont think using JBossTestCase in your own application will add any value, it might even complicate things depending on what that JBossTestCase is meant to do. Just my thoughts.
Actually I don't want only test my EJB, I also want test Hibernate.
The reason is that I have an HAR file which works fine under JBoss 4.04 but throws an error under JBoss 4.05.GA (current production release).
Since Hibernate is deeply embedded in JBoss I think its good practice to create a JBossTestCase. This would also help when you exchange your application (error testcase) with JBoss support for investigation.
Any more hints
Joined: Aug 21, 2004
I got the feedback from JBoss that one can write test cases with JBossTestCase.
JBoss source distributions contain a Testsuite with tons of tests. You can start such test by going to testsuite directory and call:
These tests are integrated in JBoss' testsuite. But where do I put my own test cases .