cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject svn commit: r1189705 - /cxf/trunk/tools/common/src/test/java/org/apache/cxf/tools/util/URIParserUtilTest.java
Date Thu, 27 Oct 2011 11:24:40 GMT
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"));
     }
 }



Mime
View raw message