• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

How to use JBossTestCase class?

 
Ranch Hand
Posts: 1855
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic