cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject cxf git commit: [CXF-6257] add a test
Date Thu, 26 Mar 2015 15:54:19 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes c1b47bb8d -> 12bafd475


[CXF-6257] add a test


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

Branch: refs/heads/3.0.x-fixes
Commit: 12bafd4750d9fd003ef2f11a177655873549cf6e
Parents: c1b47bb
Author: Akitoshi Yoshida <ay@apache.org>
Authored: Thu Mar 26 16:53:34 2015 +0100
Committer: Akitoshi Yoshida <ay@apache.org>
Committed: Thu Mar 26 16:54:06 2015 +0100

----------------------------------------------------------------------
 .../java/org/apache/cxf/jaxws/EndpointImplTest.java   | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/12bafd47/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/EndpointImplTest.java
----------------------------------------------------------------------
diff --git a/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/EndpointImplTest.java b/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/EndpointImplTest.java
index ec0d696..705d857 100644
--- a/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/EndpointImplTest.java
+++ b/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/EndpointImplTest.java
@@ -25,6 +25,8 @@ import java.io.OutputStream;
 import java.util.ArrayList;
 
 import javax.xml.transform.Source;
+import javax.xml.ws.Binding;
+import javax.xml.ws.Endpoint;
 import javax.xml.ws.WebServiceContext;
 
 import org.apache.cxf.Bus;
@@ -40,6 +42,7 @@ import org.apache.cxf.ws.addressing.WSAddressingFeature;
 import org.apache.hello_world_soap_http.GreeterImpl;
 import org.apache.hello_world_soap_http.HelloImpl;
 import org.apache.hello_world_soap_http.HelloWrongAnnotation;
+
 import org.junit.Test;
 
 public class EndpointImplTest extends AbstractJaxWsTest {
@@ -248,6 +251,17 @@ public class EndpointImplTest extends AbstractJaxWsTest {
         assertTrue(serviceFactory.getFeatures().get(0) instanceof WSAddressingFeature);
     }
 
+    @Test
+    public void testEndpointPublishAfterGetBinding() throws Exception {
+        Endpoint endpoint = Endpoint.create(new GreeterImpl());
+
+        Binding binding = endpoint.getBinding();
+        assertNotNull(binding);
+        
+        // CXF-6257
+        endpoint.publish("http://localhost:8080/test");
+    }
+
     static class EchoObserver implements MessageObserver {
 
         public void onMessage(Message message) {


Mime
View raw message