cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bimargul...@apache.org
Subject svn commit: r659687 - /cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxws/ClientServerTest.java
Date Fri, 23 May 2008 22:10:58 GMT
Author: bimargulies
Date: Fri May 23 15:10:57 2008
New Revision: 659687

URL: http://svn.apache.org/viewvc?rev=659687&view=rev
Log:
Add at least a tiny test for JAX-WS Dynamic Clients.

Modified:
    cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxws/ClientServerTest.java

Modified: cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxws/ClientServerTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxws/ClientServerTest.java?rev=659687&r1=659686&r2=659687&view=diff
==============================================================================
--- cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxws/ClientServerTest.java (original)
+++ cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxws/ClientServerTest.java Fri
May 23 15:10:57 2008
@@ -115,6 +115,20 @@
         Client client = dynamicClientFactory.createClient(wsdlUrl);
         assertNotNull(client);
     }
+    
+    @Test
+    public void testJaxWsDynamicClient() throws Exception {
+        URL wsdl = getClass().getResource("/wsdl/others/dynamic_client_base64.wsdl");
+        assertNotNull(wsdl);
+        String wsdlUrl = null;
+        wsdlUrl = wsdl.toURI().toString();
+        CXFBusFactory busFactory = new CXFBusFactory(); 
+        Bus bus = busFactory.createBus();
+        org.apache.cxf.jaxws.endpoint.dynamic.DynamicClientFactory dynamicClientFactory =

+            org.apache.cxf.jaxws.endpoint.dynamic.DynamicClientFactory.newInstance(bus);
+        Client client = dynamicClientFactory.createClient(wsdlUrl);
+        assertNotNull(client);
+    }
         
     @Test
     public void testBasicConnection() throws Exception {



Mime
View raw message