aspose file tools*
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
Author

Unit testing EJBs with JBoss technologies

Samuel Santos
Greenhorn

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="http://www.samaxes.com/" target="_blank" rel="nofollow">http://www.samaxes.com/</a>
Javid Jamae
Author
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.com, @javidjamae on Twitter
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unit testing EJBs with JBoss technologies