File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes Unit testing EJBs with JBoss technologies Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Unit testing EJBs with JBoss technologies" Watch "Unit testing EJBs with JBoss technologies" New topic

Unit testing EJBs with JBoss technologies

Samuel Santos

Joined: Nov 18, 2008
Posts: 2
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.

Samuel Santos<br /><a href="" target="_blank" rel="nofollow"></a>
Javid Jamae
Ranch Hand

Joined: May 14, 2008
Posts: 198
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.

Author: JBoss in Action,, @javidjamae on Twitter
I agree. Here's the link:
subject: Unit testing EJBs with JBoss technologies
It's not a secret anymore!