Hi All,

I would like advise on testing an EJB3 Session Bean.  
I Have a few session beans and I?m currently successfully testing them in junit 
using the embedded EJB container and a in memory database.

In the case where 1 session bean has another injected I?d like to override this 
and inject my own mocked out session bean.  I.e. I?d like to override the 
annotated configuration with an alternative bean to inject.  

Does this seem an OK approach and how would I go about doing this ?
Does anyone have an example of this.

Thanks



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

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


-------------------------------------------------------
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