Hi Vincent,
In article <[EMAIL PROTECTED]>,
Wed, 24 Mar 2004 16:08:16 +0100,
"Vincent Massol" <[EMAIL PROTECTED]> wrote:
vmassol> The container where the test succeeds are those returning Windows eol
vmassol> characters (\r\n) whereas those that fail return Unix eol (\n).
vmassol>
vmassol> Is there a way (through some encoding?) to control how the response
vmassol> stream should encode end of lines?
Some ideas:
- don't use println() but print() in both test and end methods.
pw.print("<html><head/>\n");
- compare each line in end method.
String result = theResponse.getText();
BufferedReader reader = new BufferedReader(new StringReader(result));
assertEquals("<html><head/>", reader.readLine());
I hope this helps,
----
Kazuhito SUGURI
mailto:[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]