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:55:16 GMT
Repository: cxf
Updated Branches:
  refs/heads/2.7.x-fixes 7247aa82e -> e4398b92d


[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/e4398b92
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/e4398b92
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/e4398b92

Branch: refs/heads/2.7.x-fixes
Commit: e4398b92d8cd397abac27e263f194073171a4bed
Parents: 7247aa8
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:38 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/e4398b92/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 8ff79b8..b6e4c40 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