Jeanne Boyarsky wrote:Sam,
Welcome to JavaRanch! What line is the null pointer occurring on? Where do you inject the mock bean?
I am injecting the bean into another bean. and writen junit of that bean. when i use normal injection i.e. without specifying the beanInterface it works fine. but if i give argument beanInterface in EJB annotation it fails to populate that bean.
Say I have BusinessBean and i have injected AccountingServiceBean as shown below