MockHttpServletResponse has two fields, status and code, which is ambigious.

sendError method changes code, while setStatus changes status field.

I think these two should be merged to mimic servlet api (if one calls
sendError, then error status is available via getStatus).

If no objections, I'll file a JIRA issue.

Reply via email to