cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asold...@apache.org
Subject [2/3] cxf git commit: [CXF-6655] Modifying test to reproduce the failure scenario
Date Fri, 30 Oct 2015 13:18:09 GMT
[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/01860c78
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/01860c78
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/01860c78

Branch: refs/heads/master
Commit: 01860c78f6fd7554cf89a9bc912ca78d2b304efe
Parents: b3bf20a
Author: Alessio Soldano <asoldano@redhat.com>
Authored: Fri Oct 30 14:09:07 2015 +0100
Committer: Alessio Soldano <asoldano@redhat.com>
Committed: Fri Oct 30 14:17:37 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/01860c78/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();
 


Mime
View raw message