Return-Path: X-Original-To: apmail-cxf-commits-archive@www.apache.org Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AD73B10F82 for ; Thu, 26 Mar 2015 15:53:44 +0000 (UTC) Received: (qmail 33256 invoked by uid 500); 26 Mar 2015 15:53:44 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 33202 invoked by uid 500); 26 Mar 2015 15:53:44 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 33193 invoked by uid 99); 26 Mar 2015 15:53:44 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Mar 2015 15:53:44 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 5DB53E2F0F; Thu, 26 Mar 2015 15:53:44 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: ay@apache.org To: commits@cxf.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: cxf git commit: [CXF-6257] add a test Date: Thu, 26 Mar 2015 15:53:44 +0000 (UTC) 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 Authored: Thu Mar 26 16:53:34 2015 +0100 Committer: Akitoshi Yoshida 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) {