You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by se...@apache.org on 2015/06/16 11:03:45 UTC
cxf git commit: Removing the temp test code
Repository: cxf
Updated Branches:
refs/heads/master 5d436c40e -> 86e1312f7
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/86e1312f
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/86e1312f
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/86e1312f
Branch: refs/heads/master
Commit: 86e1312f71564bcf753a0f6236994d78527681b7
Parents: 5d436c4
Author: Sergey Beryozkin <sb...@talend.com>
Authored: Tue Jun 16 10:03:30 2015 +0100
Committer: Sergey Beryozkin <sb...@talend.com>
Committed: Tue Jun 16 10:03:30 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/86e1312f/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+"));
}