-
Nov 22nd, 2012, 11:33 AM
#1
Junit and Integration test in Spring
Hello,
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 ?
thank you
Daniele
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