Hi,

recently I have been trying to unit test my application in which I use
spring and stripes together. I followed the process published in
http://blog.xebia.com/2008/12/16/unit-testing-a-stripes-actionbean-wired-with-spring-beans/
to do my unit tests and  everythign worked ok.

The problem that im facing is that I have an interceptor that injects a Bean
from Spring.. but it doesnt workl...  it tells me something like:
StripesRuntimeException: Exception while trying to lookup and inject a
Spring bean into a bean of type MyInterceptor using field access on field
private com.package.xxx.MyService bla bla bla...

My question is then the following, has someone an example or experience in
mocking interceptors using stripes and spring??... that would be really
helpful!... 

thanks for your help..

gis
-- 
View this message in context: 
http://old.nabble.com/Mocking-Spring-objects-for-unit-test-in-an-Interceptor-tp26525282p26525282.html
Sent from the stripes-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to