-
Dec 19th, 2005, 12:48 PM
#1
Unit testing controllers + interceptors
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules