jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From laurent.duper...@masq.ca
Subject Re: I'm probably misunderstanding something here...
Date Tue, 16 Apr 2002 11:31:23 GMT
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:laurent.duperval@masq.ca>

"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:cactus-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:cactus-user-help@jakarta.apache.org>


Mime
View raw message