I am using Spring MVC to build a site and am trying to create a
unit test for a controller method that serves an ajax call. The method writes some JSON to the response's output stream and returns null. I am passing in a org.springframework.mock.web.MockHttpServletResponse from the unit test, but I can't figure out how to examine the buffer. Is there a way to do this?
Thanks,
Rob Dennett