Announcement Announcement Module
Collapse
No announcement yet.
Unit testing controllers + interceptors Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.
Working...
X