Re: [appfuse-user] Mock testing - using advice vs interceptor

2006-12-20 Thread Matt Raible
The fact that your handler interceptor isn't invoked might be because when testing, you're not actually going through Spring's SimpleHandlerMapping and DispatcherServlet. With Spring 2.0, you could probably use the new AOP stuff and an AspectJ pointcut expression to intercept before a Controller'

[appfuse-user] Mock testing - using advice vs interceptor

2006-12-18 Thread Jon Loken
Hi all, I am wondering if anyone can enlighten me regarding /test/web mocktests Previously I successfully AOP adviced a method (using MethodBeforeAdvice). Method 'before(Method method, Object[] args, Object target)' was called, BOTH during mocktests AS WELL AS on tomcat. However, since it