spring-framework/spring-test
Brian Clozel e4479c8669 Fix MockHttpServletResponse HTTP status update
Prior to this commit, one could call the setStatus method on
this Mock object and update the response's status,
even though the sendError method had already been called.

According to the HttpServletResponse Javadoc, sendError() methods
commit the response; so the response can't be written after that.

This commit fixes MockHttpServletResponse's behavior; setStatus
methods do not update the status once the response has been
committed.

Issue: SPR-10414
2013-10-07 14:43:06 -04:00
..
src Fix MockHttpServletResponse HTTP status update 2013-10-07 14:43:06 -04:00
.springBeans Provide support for context hierarchies in the TCF 2013-03-07 02:11:11 +01:00