You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by ay...@apache.org on 2011/10/27 13:24:40 UTC

svn commit: r1189705 - /cxf/trunk/tools/common/src/test/java/org/apache/cxf/tools/util/URIParserUtilTest.java

Author: ay
Date: Thu Oct 27 11:24:39 2011
New Revision: 1189705

URL: http://svn.apache.org/viewvc?rev=1189705&view=rev
Log:
fixing windows related issue for CXF-3855 unit test

Modified:
    cxf/trunk/tools/common/src/test/java/org/apache/cxf/tools/util/URIParserUtilTest.java

Modified: cxf/trunk/tools/common/src/test/java/org/apache/cxf/tools/util/URIParserUtilTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/common/src/test/java/org/apache/cxf/tools/util/URIParserUtilTest.java?rev=1189705&r1=1189704&r2=1189705&view=diff
==============================================================================
--- cxf/trunk/tools/common/src/test/java/org/apache/cxf/tools/util/URIParserUtilTest.java (original)
+++ cxf/trunk/tools/common/src/test/java/org/apache/cxf/tools/util/URIParserUtilTest.java Thu Oct 27 11:24:39 2011
@@ -19,8 +19,7 @@
 
 package org.apache.cxf.tools.util;
 
-import java.io.File;
-import java.net.URI;
+import java.net.URLDecoder;
 
 import org.junit.Assert;
 import org.junit.Test;
@@ -101,6 +100,6 @@ public class URIParserUtilTest extends A
         String orig = new String(new byte[] {-47, -122}, "UTF-8");
         orig = "/foo" + orig + ".txt";
         String s = URIParserUtil.escapeChars(orig);
-        assertEquals(orig, new File(new URI("file:" + s)).getAbsolutePath());
+        assertEquals(orig, URLDecoder.decode(s, "UTF-8"));
     }
 }