Nov 22nd, 2012, 11:33 AM
Junit and Integration test in Spring
I would like to perform some tests on my Spring controller. I'm a little bit confused to which strategy adtoper, I mean
1) Should I use ModelAndViewAssert to check the view returned and the values in the model, mocking the services and do some junits for the services as well
2) Should I use MockHttpServletRequest and MockHttpServletResponse to send request to the JSP without mocking the services ?
3) both strategies has to be implemented ?