You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by si...@apache.org on 2013/03/12 14:18:01 UTC
svn commit: r1455521 -
/commons/proper/fileupload/trunk/src/test/java/org/apache/commons/fileupload/ParameterParserTest.java
Author: simonetripodi
Date: Tue Mar 12 13:18:01 2013
New Revision: 1455521
URL: http://svn.apache.org/r1455521
Log:
[FILEUPLOAD-199] #comment fixed encoding issue on tests which fails in shell (but not in Eclipse...)
Modified:
commons/proper/fileupload/trunk/src/test/java/org/apache/commons/fileupload/ParameterParserTest.java
Modified: commons/proper/fileupload/trunk/src/test/java/org/apache/commons/fileupload/ParameterParserTest.java
URL: http://svn.apache.org/viewvc/commons/proper/fileupload/trunk/src/test/java/org/apache/commons/fileupload/ParameterParserTest.java?rev=1455521&r1=1455520&r2=1455521&view=diff
==============================================================================
--- commons/proper/fileupload/trunk/src/test/java/org/apache/commons/fileupload/ParameterParserTest.java (original)
+++ commons/proper/fileupload/trunk/src/test/java/org/apache/commons/fileupload/ParameterParserTest.java Tue Mar 12 13:18:01 2013
@@ -114,9 +114,9 @@ public class ParameterParserTest {
@Test
public void fileUpload199() {
ParameterParser parser = new ParameterParser();
- String s = "Content-Disposition: form-data; name=\"file\"; filename=\"=?UTF-8?Q?=D1=82=D0=B5=D1=81=D1=82.txt?=\"\r\n";
+ String s = "Content-Disposition: form-data; name=\"file\"; filename=\"=?ISO-8859-1?B?SWYgeW91IGNhbiByZWFkIHRoaXMgeW8=?= =?ISO-8859-2?B?dSB1bmRlcnN0YW5kIHRoZSBleGFtcGxlLg==?=\"\r\n";
Map<String, String> params = parser.parse(s, new char[] { ',', ';' });
- assertEquals("ÑеÑÑ.txt", params.get("filename"));
+ assertEquals("If you can read this you understand the example.", params.get("filename"));
}
}