cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject [1/2] cxf git commit: Removing the temp test code
Date Tue, 16 Jun 2015 09:05:51 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes 734498e61 -> 146ce34e3


Removing the temp test code


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/146ce34e
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/146ce34e
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/146ce34e

Branch: refs/heads/3.0.x-fixes
Commit: 146ce34e3180503de7faa0e393981e1242623517
Parents: 428674d
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Tue Jun 16 10:03:30 2015 +0100
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Tue Jun 16 10:05:15 2015 +0100

----------------------------------------------------------------------
 .../org/apache/cxf/jaxrs/utils/HttpUtilsTest.java   | 16 ----------------
 1 file changed, 16 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/146ce34e/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/utils/HttpUtilsTest.java
----------------------------------------------------------------------
diff --git a/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/utils/HttpUtilsTest.java
b/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/utils/HttpUtilsTest.java
index 07bcf67..601765d 100644
--- a/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/utils/HttpUtilsTest.java
+++ b/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/utils/HttpUtilsTest.java
@@ -40,22 +40,6 @@ import org.junit.Test;
 public class HttpUtilsTest extends Assert {
 
     @Test
-    public void testResolveJarUrl() throws Exception {
-        String str = "jar:file:/home/sberyozkin/.m2/repository/org/apache/cxf/cxf-rt-transports-http/3.1.2-SNAPSHOT/cxf-rt-transports-http-3.1.2-SNAPSHOT.jar!/schemas/configuration/http-conf.xsd";
-        URI uri = URI.create(str); 
-        String systemIdUri = "common.xsd";
-        if ("jar".equals(uri.toURL().getProtocol())) {
-            int jarFragmentIndex = str.lastIndexOf('!');
-            if (jarFragmentIndex > 0 && jarFragmentIndex < str.length() - 1)
{
-                String jarUri = str.substring(0, jarFragmentIndex);
-                String oldFragment = str.substring(jarFragmentIndex + 1);
-                String newFragment = URI.create(oldFragment).resolve(systemIdUri).toString();
-                System.out.println(jarUri + "!" + newFragment);
-            }
-        }
-    }
-    
-    @Test
     public void testUrlDecode() {
         assertEquals("+ ", HttpUtils.urlDecode("%2B+"));
     }


Mime
View raw message