Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unit testing EJBs with JBoss technologies

 
Samuel Santos
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does JBoss recommend to unit testing my EJBs?

I've tried Embedded JBoss with no success:
Embedded JBoss and Maven
Embedded JBoss and MBeans

There's no decent documentation about this technologies, this is something you can improve.

For now I'll stick with Embeddable EJB 3.0, which is pretty old and limited.

PS: I don't use Seam.
 
Javid Jamae
Author
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're using Java EE 5, to unit test you shouldn't need a container. You're EJB classes are POJOs, so just write JUnit tests against your classes.

I'm guessing you're trying to do integration testing. Sorry, I can't help you there, I haven't messed around with the embedded/embeddable containers.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic