#2 MockHttpServletRequest getHeader() not API compliant

open
nobody
None
5
2003-08-14
2003-08-14
No

MockHttpServletRequest version 1.18 (J2EE 1.3), the
getHeader() method should not throw an AssertFailError
when the requested header is not present because the
javadoc for this method says:

If the request did not include a header of the specified
name, this method returns null.

So, with the current behavior I cannot test my code
error handling when request.getHeader() returns null on
not existing header.

Or maybe there is a way to disable this assertion
checking?

Thanks for any help

Discussion


Log in to post a comment.