>I don't see any unit test to verify that when the server returns 2 cookies
>in 2 different HTTP headers it works fine !
Well, there's nothing that tests that directly, but there are several
related tests:
* TestWebappCookie.testMultiSendCookieGet()
(http://cvs.apache.org/viewcvs/jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/Attic/TestWebappCookie.java)
tests mutliple cookies, although it doesn't test two distinct Set-Cookie
headers directly (it does it indirectly though, since every servlet engine
I'm aware of will send two headers for two calls to response.addCookie()
* TestWebappHeaders.testOverwriteRequestHeader()
(http://cvs.apache.org/viewcvs/jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/Attic/TestWebappHeaders.java)
tests submitting multiple request headers with the same name.
I'd welcome adding some (even dozens of) mock-object based tests to the
suite, but I'd be opposed to removing the existing functional tests, as I
think they serve a useful purpose as well.
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp