commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1455521 - /commons/proper/fileupload/trunk/src/test/java/org/apache/commons/fileupload/ParameterParserTest.java
Date Tue, 12 Mar 2013 13:18:01 GMT
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"));
     }
 
 }



Mime
View raw message