I'm trying to beef up my unit testing in a new Spring MVC webapp. I can see how to create a test case where I create an instance of a controller and then test its handleRequest() method with a MockHttpServletRequest. But I need a little more than that - I need to test the controller in a context where one or more interceptors might be called before it (i.e., as it would be where it is used in a urlMapping). Can anyone give me any pointers as to how to do this? TIA.
Login or Sign Up
- Log in with