Hello !
I need to test my actionBeans, but I got a struts initialisation in it. The
configuration is in "WEB-INF/applicationContext.xml". So in my web.xml, I got :
   <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>WEB-INF/applicationContext.xml</param-value>
    </context-param>


How can I initialize the MockServletContext to let him know that? I tried

context.addInitParameter("contextConfigLocation", 
  "WEB-INF/applicationContext.xml");

but it doesn't seems to solve my problem...
net.sourceforge.stripes.exception.StripesRuntimeException: Exception while
trying to lookup and inject a Spring bean into a bean of type
TransfersActionBean using field access on field private
com.xxx.service.VoBuilder com.xxx.action.MyActionBean.voBuilder

Regards,
Jonathan Scher


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to