Author: violetagg
Date: Sat May 25 06:59:25 2013
New Revision: 1486294
URL: http://svn.apache.org/r1486294
Log:
Enable the test check again. Now it is also passing on OS different than
Windows.
Modified:
tomcat/trunk/test/org/apache/catalina/connector/TestRequest.java
Modified: tomcat/trunk/test/org/apache/catalina/connector/TestRequest.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/connector/TestRequest.java?rev=1486294&r1=1486293&r2=1486294&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/catalina/connector/TestRequest.java (original)
+++ tomcat/trunk/test/org/apache/catalina/connector/TestRequest.java Sat May 25
06:59:25 2013
@@ -639,6 +639,10 @@ public class TestRequest extends TomcatB
}
req.getPart("part");
+
+ resp.setContentType("text/plain");
+ resp.setCharacterEncoding("UTF-8");
+
resp.getWriter().println("Part " + req.getParameter("part"));
}
}
@@ -679,12 +683,12 @@ public class TestRequest extends TomcatB
BufferedReader reader = null;
try {
reader = new BufferedReader(new InputStreamReader(
- conn.getInputStream()));
+ conn.getInputStream(), "UTF-8"));
String line = null;
while ((line = reader.readLine()) != null) {
response.add(line);
}
- //assertTrue(response.contains("Part äö"));
+ assertTrue(response.contains("Part äö"));
} catch (Exception e) {
if (reader != null) {
reader.close();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]