Hi all,

I need some pointers for how to properly unit-test my DAO layer with the 
Hibernate MBean in JBoss. How does everyone else do it?

Do you have a separate MBean config file for a Hibernate MBean which uses the 
HSQL in-memory database? And that test suite is somehow activated via some 
special servlet address?

I'd prefer to have the test suite run independent of JBoss, and not requiring 
deployment. I guess that would require me to maintain a separate Hibernate 
configuration and everything, which would be painful considering I have 100+ 
entity classes. But if I have to do it this way, I'll deploy the webapp to a 
separate copy of JBoss I'll set up as a test sandbox. Though that still leaves 
how to actually start the test suite running.

What's everyone's general recommendations? I saw there was a very small blurb 
on the Wiki, but that was not very useful.

Thanks!

--Scott


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3928578#3928578

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3928578


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to