cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r1051420 - in /cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/aegis: AegisJaxWsWsdlNs.java AegisJaxWsWsdlNsImpl.java AegisWSDLNSTest.java
Date Tue, 21 Dec 2010 08:52:04 GMT
Author: ffang
Date: Tue Dec 21 08:52:03 2010
New Revision: 1051420

URL: http://svn.apache.org/viewvc?rev=1051420&view=rev
Log:
[CXF-3210]add test to guarantee Aegis will use the interface method when looking for annotations

Modified:
    cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/aegis/AegisJaxWsWsdlNs.java
    cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/aegis/AegisJaxWsWsdlNsImpl.java
    cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/aegis/AegisWSDLNSTest.java

Modified: cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/aegis/AegisJaxWsWsdlNs.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/aegis/AegisJaxWsWsdlNs.java?rev=1051420&r1=1051419&r2=1051420&view=diff
==============================================================================
--- cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/aegis/AegisJaxWsWsdlNs.java
(original)
+++ cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/aegis/AegisJaxWsWsdlNs.java
Tue Dec 21 08:52:03 2010
@@ -19,6 +19,8 @@
 
 package org.apache.cxf.systest.aegis;
 
+import java.util.List;
+
 import javax.jws.WebParam;
 import javax.jws.WebService;
 import org.apache.cxf.aegis.type.java5.XmlType;
@@ -31,6 +33,12 @@ import org.apache.cxf.aegis.type.java5.X
 public interface AegisJaxWsWsdlNs {
 
     void updateVO(@WebParam(name = "VO")VO vo);
+    
+    Integer updateInteger(@WebParam(name = "idInteger") Integer idInteger);
+
+
+    void updateIntegerList(@WebParam(name = "idIntegerList") List<Integer> idIntegerList);
+
 
     @XmlType(name = "VOX", namespace = "http://wo.rtf2pdf.doc.ws.daisy.marbes.cz")
     public class VO {

Modified: cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/aegis/AegisJaxWsWsdlNsImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/aegis/AegisJaxWsWsdlNsImpl.java?rev=1051420&r1=1051419&r2=1051420&view=diff
==============================================================================
--- cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/aegis/AegisJaxWsWsdlNsImpl.java
(original)
+++ cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/aegis/AegisJaxWsWsdlNsImpl.java
Tue Dec 21 08:52:03 2010
@@ -18,6 +18,8 @@
  */
 package org.apache.cxf.systest.aegis;
 
+import java.util.List;
+
 import javax.jws.WebService;
 
 import org.apache.cxf.annotations.Logging;
@@ -29,8 +31,17 @@ public class AegisJaxWsWsdlNsImpl implem
     
 
     public void updateVO(VO vo) {
-
         System.out.println(vo.getStr());
     }
 
+    
+    public Integer updateInteger(Integer idInteger) {
+        return idInteger;
+    }
+
+    
+    public void updateIntegerList(List<Integer> idIntegerList) {
+        //
+    }
+
 }

Modified: cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/aegis/AegisWSDLNSTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/aegis/AegisWSDLNSTest.java?rev=1051420&r1=1051419&r2=1051420&view=diff
==============================================================================
--- cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/aegis/AegisWSDLNSTest.java
(original)
+++ cxf/trunk/systests/databinding/src/test/java/org/apache/cxf/systest/aegis/AegisWSDLNSTest.java
Tue Dec 21 08:52:03 2010
@@ -31,6 +31,7 @@ import org.apache.cxf.jaxws.JaxWsProxyFa
 import org.apache.cxf.test.TestUtilities;
 import org.apache.cxf.testutil.common.TestUtil;
 
+import org.junit.Assert;
 import org.junit.Test;
 
 import org.springframework.test.context.ContextConfiguration;
@@ -94,5 +95,12 @@ public class AegisWSDLNSTest extends Abs
                          + "='http://wo.rtf2pdf.doc.ws.daisy.marbes.cz']",
                          dom);
     }
+    
+    @Test
+    public void testUsingCorrectMethod() throws Exception {
+        setupForTest(false);
+        Integer result = client.updateInteger(new Integer(20));
+        Assert.assertEquals(result.intValue(), 20);
+    }
    
 }



Mime
View raw message