SpringSource/spring-test-mvc — pull request #47 by rwinch (2012-07-13 03:42:51+00:00)
Title: Override MockHttpServletResponse to set the status and Location header on redirect

Note: This modifies an existing test, but I believe we want to verify the status is a 301 not a 200.

Previously when a redirect was done the Location header was left null and
the HTTP status was 200.

The MockHttpServletResponse is now extended to automatically set the Location
header and the Http status when response.sendRedirect is invoked.