In below question I am I am confused by line : handle = adapter.handle(req, res, vc);
Set @ModelAttribute in MockHttpServletRequest in JUnit Test
How/where is the adapter
object instantiated ?
In below question I am I am confused by line : handle = adapter.handle(req, res, vc);
Set @ModelAttribute in MockHttpServletRequest in JUnit Test
How/where is the adapter
object instantiated ?
The adapter object that he is referring to is a HandlerAdapter from the SpringSource docs. More specifically, it is the subclass AnnotationMethodHandlerAdapter
I also wanted to test my RESTful service in Spring MVC. Below are two links that were really helpful to me:
Both the adapter
and the WebTestExecutionerListener
seem to be the OPs own code. There's no way of knowing short of asking him.