Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use JBossTestCase class?

 
Darya Akbari
Ranch Hand
Posts: 1855
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Darya Akbari
Ranch Hand
Posts: 1855
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1855
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic