cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bimargul...@apache.org
Subject svn commit: r657470 - in /cxf/trunk/systests/src/test/java/org/apache/cxf/systest/aegis: AegisClientServerTest.java SportsService.java SportsServiceImpl.java
Date Sat, 17 May 2008 22:44:45 GMT
Author: bimargulies
Date: Sat May 17 15:44:44 2008
New Revision: 657470

URL: http://svn.apache.org/viewvc?rev=657470&view=rev
Log:
Add failing (@Ignored) test case for Aegis vs. Dynamic client.

Modified:
    cxf/trunk/systests/src/test/java/org/apache/cxf/systest/aegis/AegisClientServerTest.java
    cxf/trunk/systests/src/test/java/org/apache/cxf/systest/aegis/SportsService.java
    cxf/trunk/systests/src/test/java/org/apache/cxf/systest/aegis/SportsServiceImpl.java

Modified: cxf/trunk/systests/src/test/java/org/apache/cxf/systest/aegis/AegisClientServerTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/aegis/AegisClientServerTest.java?rev=657470&r1=657469&r2=657470&view=diff
==============================================================================
--- cxf/trunk/systests/src/test/java/org/apache/cxf/systest/aegis/AegisClientServerTest.java
(original)
+++ cxf/trunk/systests/src/test/java/org/apache/cxf/systest/aegis/AegisClientServerTest.java
Sat May 17 15:44:44 2008
@@ -20,6 +20,7 @@
 package org.apache.cxf.systest.aegis;
 
 
+import java.lang.reflect.Method;
 import java.net.URL;
 import java.util.Collection;
 import java.util.List;
@@ -31,12 +32,15 @@
 import org.apache.cxf.authservice.AuthService;
 import org.apache.cxf.authservice.Authenticate;
 import org.apache.cxf.common.logging.LogUtils;
+import org.apache.cxf.endpoint.Client;
+import org.apache.cxf.endpoint.dynamic.DynamicClientFactory;
 import org.apache.cxf.frontend.ClientProxyFactoryBean;
 import org.apache.cxf.helpers.XMLUtils;
 import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;
 import org.apache.cxf.test.TestUtilities;
 import org.apache.cxf.testutil.common.AbstractBusClientServerTestBase;
 import org.junit.BeforeClass;
+import org.junit.Ignore;
 import org.junit.Test;
 
 public class AegisClientServerTest extends AbstractBusClientServerTestBase {
@@ -151,4 +155,15 @@
         String s = service.testForMinOccurs0("A", null, "b");
         assertEquals("Anullb", s);        
     }
+    
+    @Ignore
+    @Test
+    public void testDynamicClient() throws Exception {
+        DynamicClientFactory dcf = DynamicClientFactory.newInstance();
+        Client client = dcf.createClient("http://localhost:9002/jaxwsAndAegisSports?wsdl");
+        Object r = client.invoke("getAttributeBean", (Object[]) null);
+        Method getAddrPlainString = r.getClass().getMethod("getAttrPlainString");
+        String s = (String)getAddrPlainString.invoke(r);
+        assertEquals("attrPlain", s);
+    }
 }

Modified: cxf/trunk/systests/src/test/java/org/apache/cxf/systest/aegis/SportsService.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/aegis/SportsService.java?rev=657470&r1=657469&r2=657470&view=diff
==============================================================================
--- cxf/trunk/systests/src/test/java/org/apache/cxf/systest/aegis/SportsService.java (original)
+++ cxf/trunk/systests/src/test/java/org/apache/cxf/systest/aegis/SportsService.java Sat May
17 15:44:44 2008
@@ -24,9 +24,13 @@
 import javax.jws.WebService;
 import javax.xml.ws.WebServiceException;
 
+import org.apache.cxf.aegis.services.AttributeBean;
+
 @WebService(targetNamespace = "http://cxf.apache.org/systest/aegis/sports")
 public interface SportsService {
     Collection<Team> getTeams() throws WebServiceException;
     
     String testForMinOccurs0(String a, Integer b, String c);
+    AttributeBean getAttributeBean();
 }
+

Modified: cxf/trunk/systests/src/test/java/org/apache/cxf/systest/aegis/SportsServiceImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/aegis/SportsServiceImpl.java?rev=657470&r1=657469&r2=657470&view=diff
==============================================================================
--- cxf/trunk/systests/src/test/java/org/apache/cxf/systest/aegis/SportsServiceImpl.java (original)
+++ cxf/trunk/systests/src/test/java/org/apache/cxf/systest/aegis/SportsServiceImpl.java Sat
May 17 15:44:44 2008
@@ -25,6 +25,8 @@
 
 import javax.xml.ws.WebServiceException;
 
+import org.apache.cxf.aegis.services.AttributeBean;
+
 /**
  * 
  */
@@ -41,4 +43,8 @@
         return a + b + c;
     }
 
+    public AttributeBean getAttributeBean() {
+        return new AttributeBean();
+    }
+
 }



Mime
View raw message