axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ngalla...@apache.org
Subject svn commit: r529679 - in /webservices/axis2/trunk/java/modules/jaxws: src/org/apache/axis2/jaxws/spi/Provider.java test/org/apache/axis2/jaxws/endpoint/BasicEndpointTests.java
Date Tue, 17 Apr 2007 17:23:30 GMT
Author: ngallardo
Date: Tue Apr 17 10:23:29 2007
New Revision: 529679

URL: http://svn.apache.org/viewvc?view=rev&rev=529679
Log:
AXIS2-2539

Don't return null for createAndPublish()

Modified:
    webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/spi/Provider.java
    webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/endpoint/BasicEndpointTests.java

Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/spi/Provider.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/spi/Provider.java?view=diff&rev=529679&r1=529678&r2=529679
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/spi/Provider.java
(original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/spi/Provider.java
Tue Apr 17 10:23:29 2007
@@ -30,7 +30,9 @@
 
     @Override
     public Endpoint createAndPublishEndpoint(String s, Object obj) {
-        return null;
+        Endpoint ep = new EndpointImpl(obj);
+        ep.publish(s);
+        return ep;
     }
 
     @Override

Modified: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/endpoint/BasicEndpointTests.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/endpoint/BasicEndpointTests.java?view=diff&rev=529679&r1=529678&r2=529679
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/endpoint/BasicEndpointTests.java
(original)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/endpoint/BasicEndpointTests.java
Tue Apr 17 10:23:29 2007
@@ -37,6 +37,14 @@
         assertTrue("The endpoint was not published successfully", ep.isPublished());
     }
     
+    public void testCreateAndPublishEndpoint() {
+        SampleEndpoint sample = new SampleEndpoint();
+
+        Endpoint ep = Endpoint.publish("test" , sample);
+        assertTrue("The returned Endpoint instance was null", ep != null);
+        assertTrue("The endpoint was not published successfully", ep.isPublished());
+    }
+    
     public void testGetBinding() throws Exception {
         SampleEndpoint sample = new SampleEndpoint();
 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message