[BUG 283172] fix build on windows

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@547 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Joakim Erdfelt 2009-07-10 23:36:35 +00:00
parent 90105841ab
commit d8006aaafd
2 changed files with 28 additions and 2 deletions

View File

@ -103,6 +103,19 @@ public abstract class AbstractJettyTestCase extends TestCase
return str; return str;
} }
return str.replaceAll("\n","\r\n"); StringBuffer ret = new StringBuffer();
for (char c : str.toCharArray())
{
switch (c)
{
case '\n':
ret.append("\r\n");
break;
default:
ret.append(c);
}
}
return ret.toString();
} }
} }

View File

@ -367,7 +367,20 @@ public class HttpResponseTester
return str; return str;
} }
return str.replaceAll("\n","\r\n"); StringBuffer ret = new StringBuffer();
for (char c : str.toCharArray())
{
switch (c)
{
case '\n':
ret.append("\r\n");
break;
default:
ret.append(c);
}
}
return ret.toString();
} }
public void assertNoBody(String msg) public void assertNoBody(String msg)