I wrote up a blog post discussing spring-mvc-test but short-circuiting the @Autowired behavior so you can isolate your testing to the Controller layer with Mockito mocked objects. Check it out.
...
Type: Posts; User: stevelibonati; Keyword(s):
I wrote up a blog post discussing spring-mvc-test but short-circuiting the @Autowired behavior so you can isolate your testing to the Controller layer with Mockito mocked objects. Check it out.
...
Have you taken a look at http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/http/ResponseEntity.html ?
Is there a way to bind pojos to the input of a REST request. I'm trying to do something like the following :
@Override
public AddBookResponse add(AddBook book) {
HttpEntity<AddBook> entity =...