tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r565793 - in /incubator/tuscany/java/sca/modules: binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/axis2/itests/ databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/
Date Tue, 14 Aug 2007 15:03:12 GMT
Author: antelder
Date: Tue Aug 14 08:03:11 2007
New Revision: 565793

URL: http://svn.apache.org/viewvc?view=rev&rev=565793
Log:
TUSCANY-1535, fix problem with data type java.lang.Boolean with java bean

Modified:
    incubator/tuscany/java/sca/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/axis2/itests/Bar.java
    incubator/tuscany/java/sca/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/axis2/itests/HelloWorldNoWSDLTestCase.java
    incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/JavaBean2XMLTransformer.java

Modified: incubator/tuscany/java/sca/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/axis2/itests/Bar.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/axis2/itests/Bar.java?view=diff&rev=565793&r1=565792&r2=565793
==============================================================================
--- incubator/tuscany/java/sca/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/axis2/itests/Bar.java
(original)
+++ incubator/tuscany/java/sca/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/axis2/itests/Bar.java
Tue Aug 14 08:03:11 2007
@@ -26,6 +26,15 @@
     private String s;
     private int x;
     private Integer y;
+    
+    private Boolean b;
+    
+    public Boolean getB() {
+        return b;
+    }
+    public void setB(Boolean b) {
+        this.b = b;
+    }
     public String getS() {
         return s;
     }

Modified: incubator/tuscany/java/sca/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/axis2/itests/HelloWorldNoWSDLTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/axis2/itests/HelloWorldNoWSDLTestCase.java?view=diff&rev=565793&r1=565792&r2=565793
==============================================================================
--- incubator/tuscany/java/sca/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/axis2/itests/HelloWorldNoWSDLTestCase.java
(original)
+++ incubator/tuscany/java/sca/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/axis2/itests/HelloWorldNoWSDLTestCase.java
Tue Aug 14 08:03:11 2007
@@ -43,10 +43,12 @@
         b1.setS("petra");
         b1.setX(1);
         b1.setY(new Integer(2));
+        b1.setB(Boolean.TRUE);
         Bar b2 = new Bar();
         b2.setS("beate");
         b2.setX(3);
         b2.setY(new Integer(4));
+        b2.setB(Boolean.FALSE);
         f.setBars(new Bar[] { b1, b2} );
        
         Foo f2 = echo.echoFoo(f);
@@ -54,9 +56,11 @@
         assertEquals("petra", f2.getBars()[0].getS());
         assertEquals(1, f2.getBars()[0].getX());
         assertEquals(2, f2.getBars()[0].getY().intValue());
+        assertTrue(f2.getBars()[0].getB().booleanValue());
         assertEquals("beate", f2.getBars()[1].getS());
         assertEquals(3, f2.getBars()[1].getX());
         assertEquals(4, f2.getBars()[1].getY().intValue());
+        assertFalse(f2.getBars()[1].getB().booleanValue());
        
     }
    

Modified: incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/JavaBean2XMLTransformer.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/JavaBean2XMLTransformer.java?view=diff&rev=565793&r1=565792&r2=565793
==============================================================================
--- incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/JavaBean2XMLTransformer.java
(original)
+++ incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/JavaBean2XMLTransformer.java
Tue Aug 14 08:03:11 2007
@@ -175,7 +175,8 @@
             || javaObject instanceof Integer
             || javaObject instanceof Long
             || javaObject instanceof Float
-            || javaObject instanceof Double) {
+            || javaObject instanceof Double
+            || javaObject instanceof Boolean) {
             return true;
         }
         if (javaObject instanceof GregorianCalendar || javaObject instanceof Date



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message