[CXF-6655] Modifying test to reproduce the failure scenario
Project: http://git-wip-us.apache.org/repos/asf/cxf/repo Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/6dd411a9 Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/6dd411a9 Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/6dd411a9 Branch: refs/heads/3.0.x-fixes Commit: 6dd411a93c3f8c936f54f47e0d66873c9ae35530 Parents: 0ac4ffd Author: Alessio Soldano <asold...@redhat.com> Authored: Fri Oct 30 14:09:07 2015 +0100 Committer: Alessio Soldano <asold...@redhat.com> Committed: Fri Oct 30 15:27:47 2015 +0100 ---------------------------------------------------------------------- .../org/apache/cxf/systest/jaxws/CXF6655Test.java | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf/blob/6dd411a9/systests/jaxws/src/test/java/org/apache/cxf/systest/jaxws/CXF6655Test.java ---------------------------------------------------------------------- diff --git a/systests/jaxws/src/test/java/org/apache/cxf/systest/jaxws/CXF6655Test.java b/systests/jaxws/src/test/java/org/apache/cxf/systest/jaxws/CXF6655Test.java index d8eca96..6dcd38b 100644 --- a/systests/jaxws/src/test/java/org/apache/cxf/systest/jaxws/CXF6655Test.java +++ b/systests/jaxws/src/test/java/org/apache/cxf/systest/jaxws/CXF6655Test.java @@ -80,12 +80,24 @@ public class CXF6655Test extends AbstractClientServerTestBase { new HashMap<String, HttpFilter>()); proxy.start(); } + + @Test + public void testConnection() throws Exception { + QName serviceName = new QName("http://cxf.apache.org/systest/jaxws/", "HelloService"); + HelloService service = new HelloService(null, serviceName); + assertNotNull(service); + Hello hello = service.getHelloPort(); + + ((BindingProvider)hello).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, + "http://localhost:" + PORT + "/hello"); + assertEquals("getSayHi", hello.sayHi("SayHi")); + + } @Test public void testConnectionWithProxy() throws Exception { QName serviceName = new QName("http://cxf.apache.org/systest/jaxws/", "HelloService"); - HelloService service = new HelloService(getClass().getResource("/wsdl/others/hello.wsdl"), - serviceName); + HelloService service = new HelloService(null, serviceName); assertNotNull(service); Hello hello = service.getHelloPort();