You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by ay...@apache.org on 2015/03/26 16:53:44 UTC
cxf git commit: [CXF-6257] add a test
Repository: cxf
Updated Branches:
refs/heads/master a6598eebe -> 9d86d314f
[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/9d86d314
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/9d86d314
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/9d86d314
Branch: refs/heads/master
Commit: 9d86d314f18deb188a3660ada7e67628a55df219
Parents: a6598ee
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:53:34 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/9d86d314/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) {