juddi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ks...@apache.org
Subject svn commit: r1169856 - /juddi/trunk/juddi-client/src/test/java/org/apache/juddi/v3/client/mapping/WSDLLocatorTest.java
Date Mon, 12 Sep 2011 18:08:50 GMT
Author: kstam
Date: Mon Sep 12 18:08:50 2011
New Revision: 1169856

URL: http://svn.apache.org/viewvc?rev=1169856&view=rev
Log:
JUDDI-523, the path separator is always a forward slash in URLs, no matter what platform.

Modified:
    juddi/trunk/juddi-client/src/test/java/org/apache/juddi/v3/client/mapping/WSDLLocatorTest.java

Modified: juddi/trunk/juddi-client/src/test/java/org/apache/juddi/v3/client/mapping/WSDLLocatorTest.java
URL: http://svn.apache.org/viewvc/juddi/trunk/juddi-client/src/test/java/org/apache/juddi/v3/client/mapping/WSDLLocatorTest.java?rev=1169856&r1=1169855&r2=1169856&view=diff
==============================================================================
--- juddi/trunk/juddi-client/src/test/java/org/apache/juddi/v3/client/mapping/WSDLLocatorTest.java
(original)
+++ juddi/trunk/juddi-client/src/test/java/org/apache/juddi/v3/client/mapping/WSDLLocatorTest.java
Mon Sep 12 18:08:50 2011
@@ -14,7 +14,6 @@
  */
 package org.apache.juddi.v3.client.mapping;
 
-import java.io.File;
 import java.net.URISyntaxException;
 import java.net.URL;
 
@@ -47,7 +46,7 @@ public class WSDLLocatorTest {
 		URL wsdlFile = ClassUtil.getResource("wsdl/HelloWorld.wsdl", this.getClass());
 		if (wsdlFile==null) Assert.fail("Can not find HelloWorld.wsdl file");
 		String wsdlFileStr = wsdlFile.toExternalForm();
-		String wsdlDir = wsdlFileStr.substring(0,wsdlFileStr.lastIndexOf(File.separator));
+		String wsdlDir = wsdlFileStr.substring(0,wsdlFileStr.lastIndexOf("/"));
 		URL url = wsdlLocatorImpl.constructImportUrl(wsdlFileStr, "child.wsdl");
 		Assert.assertEquals(wsdlDir + "/child.wsdl", url.toExternalForm());
 	}
@@ -58,7 +57,7 @@ public class WSDLLocatorTest {
 		URL wsdlFile = ClassUtil.getResource("wsdl/HelloWorld.wsdl", this.getClass());
 		if (wsdlFile==null) Assert.fail("Can not find HelloWorld.wsdl file");
 		String wsdlFileStr = wsdlFile.toExternalForm();
-		String wsdlDir = wsdlFileStr.substring(0,wsdlFileStr.lastIndexOf(File.separator));
+		String wsdlDir = wsdlFileStr.substring(0,wsdlFileStr.lastIndexOf("/"));
 		URL url = wsdlLocatorImpl.constructImportUrl(wsdlFileStr, "./child.wsdl");
 		Assert.assertEquals(wsdlDir + "/child.wsdl", url.toExternalForm());
 	}



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@juddi.apache.org
For additional commands, e-mail: commits-help@juddi.apache.org


Mime
View raw message