On 15 Apr, Vincent Massol wrote:
> No you're not ... ! :-) I've just read you test case and you have that
> line :
>
> assertEquals("Unexpected type", "text/plain",
> theResponse.getWebRequest().getContentType());
>
<snip>
> However, I believe that what you really want to do is assert the content
> type of the _HTTP Response_ and not the one from the HTTP request, right
> ? You would do that easily by issuing a :
>
> assertEquals("Unexpected type", "text/plain",
> theResponse.getConnection().getContentType());
>
Mumble, grumble, !*@^#!!*@^!)... I believe there's a term for this here...
Ah yes: "Asleep at the switch". I believe this has caused numerous accidents
in the past... :-)
Thanks,
L
--
Laurent Duperval <mailto:[EMAIL PROTECTED]>
"Si tu te cognes la t�te contre un vase et que cela r�sonne, ne t'empresses
pas � conclure que c'est le vase qui est creux".
-Anonymous
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>