| Author |
How to use JBossTestCase class?
|
Darya Akbari
Ranch Hand
Joined: Aug 21, 2004
Posts: 1855
|
|
Hi, I like to test some of my EJBs and I think using JBoss' own testsuite is a good starting point. When you donwload the JBoss source distribution you can find a test directory which basically seems to implement the JBoss testing. There, you've the JBossTestCase class. Does anyone know how to use JBoss' JBossTestCase class Regards, Darya
|
SCJP, SCJD, SCWCD, SCBCD
|
 |
Jaikiran Pai
Marshal
Joined: Jul 20, 2005
Posts: 8141
|
|
|
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.
|
[My Blog] [JavaRanch Journal]
|
 |
Darya Akbari
Ranch Hand
Joined: Aug 21, 2004
Posts: 1855
|
|
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 Regards, Darya
|
 |
Darya Akbari
Ranch Hand
Joined: Aug 21, 2004
Posts: 1855
|
|
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 . Regards, Darya [ November 22, 2006: Message edited by: Darya Akbari ]
|
 |
 |
|
|
subject: How to use JBossTestCase class?
|
|
|