Announcement Announcement Module
Collapse
No announcement yet.
Junit and Integration test in Spring Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

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