Author: niallp
Date: Thu Oct 14 00:55:39 2010
New Revision: 1022336

URL: http://svn.apache.org/viewvc?rev=1022336&view=rev
Log:
IO-252 Add test to prove that this is fixed by IO-166

Modified:
    
commons/proper/io/trunk/src/test/java/org/apache/commons/io/FileUtilsTestCase.java

Modified: 
commons/proper/io/trunk/src/test/java/org/apache/commons/io/FileUtilsTestCase.java
URL: 
http://svn.apache.org/viewvc/commons/proper/io/trunk/src/test/java/org/apache/commons/io/FileUtilsTestCase.java?rev=1022336&r1=1022335&r2=1022336&view=diff
==============================================================================
--- 
commons/proper/io/trunk/src/test/java/org/apache/commons/io/FileUtilsTestCase.java
 (original)
+++ 
commons/proper/io/trunk/src/test/java/org/apache/commons/io/FileUtilsTestCase.java
 Thu Oct 14 00:55:39 2010
@@ -299,6 +299,12 @@ public class FileUtilsTestCase extends F
         assertEquals(true, file.toString().indexOf("file% %me.txt%") >= 0);
     }
 
+    /** IO-252 */
+    public void testToFile5() throws Exception {
+        URL url = new URL("file", null, "both%20are%20100%20%25%20true");
+        File file = FileUtils.toFile(url);
+        assertEquals("both are 100 % true", file.toString());
+    }
     public void testToFileUtf8() throws Exception {
         URL url = new URL("file", null, "/home/%C3%A4%C3%B6%C3%BC%C3%9F");
         File file = FileUtils.toFile(url);


Reply via email to