Author: veithen
Date: Sun Jul 11 17:38:02 2010
New Revision: 963115

URL: http://svn.apache.org/viewvc?rev=963115&view=rev
Log:
AXIS2-4767: Don't try to download non existing WSDL from 
http://test.wsdl.com/Test.wsdl. Anyway, the content of the WSDL is never read 
in the test case.

Modified:
    
axis/axis2/java/core/trunk/modules/jaxws/test/org/apache/axis2/jaxws/endpoint/BasicEndpointTests.java

Modified: 
axis/axis2/java/core/trunk/modules/jaxws/test/org/apache/axis2/jaxws/endpoint/BasicEndpointTests.java
URL: 
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/jaxws/test/org/apache/axis2/jaxws/endpoint/BasicEndpointTests.java?rev=963115&r1=963114&r2=963115&view=diff
==============================================================================
--- 
axis/axis2/java/core/trunk/modules/jaxws/test/org/apache/axis2/jaxws/endpoint/BasicEndpointTests.java
 (original)
+++ 
axis/axis2/java/core/trunk/modules/jaxws/test/org/apache/axis2/jaxws/endpoint/BasicEndpointTests.java
 Sun Jul 11 17:38:02 2010
@@ -19,6 +19,7 @@
 
 package org.apache.axis2.jaxws.endpoint;
 
+import java.io.ByteArrayInputStream;
 import java.net.URL;
 import java.util.ArrayList;
 import java.util.List;
@@ -94,10 +95,9 @@ public class BasicEndpointTests extends 
         ep.publish("test");
         assertTrue("The endpoint was not published successfully", 
ep.isPublished());
         
-        URL wsdl = new URL("http://test.wsdl.com/Test.wsdl";);
-        String wsdlLocation = wsdl.toExternalForm();
+        String wsdlLocation = "http://test.wsdl.com/Test.wsdl";; // Dummy URL
         List<Source> metadata = new ArrayList<Source>();
-        Source source = new StreamSource(wsdl.openStream());  
+        Source source = new StreamSource(new ByteArrayInputStream(new 
byte[0])); // Dummy content  
         source.setSystemId(wsdlLocation);  
         metadata.add(source);
         ep.setMetadata(metadata);


Reply via email to