You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beehive.apache.org by ek...@apache.org on 2005/06/15 22:24:10 UTC

svn commit: r190798 [5/5] - in /incubator/beehive/trunk/system-controls/test/src/webservice: ./ schemas/ servers/webapp/WEB-INF/schemas/ servers/webapp/WEB-INF/src/org/apache/beehive/soapMarshalling/ servers/webapp/WEB-INF/webservices/soapMarshalling/ tests/org/apache/beehive/controls/system/webservice/units/

Added: incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/SoapMarshallingDocLitBareArrayTypesTest.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/SoapMarshallingDocLitBareArrayTypesTest.java?rev=190798&view=auto
==============================================================================
--- incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/SoapMarshallingDocLitBareArrayTypesTest.java (added)
+++ incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/SoapMarshallingDocLitBareArrayTypesTest.java Wed Jun 15 13:24:08 2005
@@ -0,0 +1,199 @@
+/*
+ * Copyright 2004 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * 
+ */
+package org.apache.beehive.controls.system.webservice.units;
+
+import org.apache.beehive.controls.api.bean.Control;
+import org.apache.beehive.controls.system.webservice.units.utils.ControlTestCase;
+import org.apache.xmlbeans.GDate;
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.framework.Assert;
+import test.SoapMarshallingDocLitWrappedService;
+import test.SoapMarshallingDocLitWrappedArrayTypesService;
+import test.SoapMarshallingDocLitBareArrayTypesService;
+
+import javax.xml.namespace.QName;
+import java.math.BigInteger;
+import java.math.BigDecimal;
+import java.util.Date;
+import java.util.Calendar;
+import java.util.GregorianCalendar;
+import java.util.Arrays;
+
+// todo: GENERATION FAILS
+public class SoapMarshallingDocLitBareArrayTypesTest
+    extends ControlTestCase {
+
+    @Control
+    public SoapMarshallingDocLitBareArrayTypesService client;
+
+    public void testALL_TESTS_HAVE_BEEN_DISABLED() {
+
+    }
+//    public void testEchobooleanArray() throws Exception {
+//        boolean[] array = new boolean[] {true, false, true};
+//        assertTrue(Arrays.equals(array, client.echoboolean(array)));
+//    }
+
+// @todo: Verify if webservice control method generation is correct!
+//    public void testEchoBooleanArray() throws Exception {
+//        Boolean[] array = new Boolean[] {new Boolean(true), new Boolean(false), new Boolean(true};
+//        assertEquals(array, client.echoBoolean(array));
+//    }
+
+//    public void testEchobyteArray() throws Exception {
+//        byte[] array = new byte[] {Byte.MAX_VALUE, 0, Byte.MAX_VALUE};
+//        assertTrue(Arrays.equals(array, client.echobyte(array)));
+//    }
+
+// @todo: Verify if webservice control method generation is correct!
+//    public void testEchoByteArray() throws Exception {
+//        Byte[] array = new Byte[] {Byte.MAX_VALUE, (byte)0, Byte.MAX_VALUE};
+//        assertEquals(array, client.echoByte(array));
+//    }
+
+//    public void testEchoshortArray() throws Exception {
+//        short[] array = new short[] {Short.MAX_VALUE, 0, Short.MAX_VALUE};
+//        assertTrue(Arrays.equals(array, client.echoshort(array)));
+//    }
+
+// @todo: Verify if webservice control method generation is correct!
+//    public void testEchoShortArray() throws Exception {
+//        Short[] array = new Short[] {Short.MAX_VALUE, (short)0, Short.MAX_VALUE};
+//        assertEquals(array, client.echoShort(array));
+//    }
+
+//    public void testEchointArray() throws Exception {
+//        int[] array = new int[] {Integer.MAX_VALUE, 0, Integer.MAX_VALUE};
+//        assertTrue(Arrays.equals(array, client.echoint(array)));
+//    }
+
+// @todo: Verify if webservice control method generation is correct!
+//    public void testEchoIntegerArray() throws Exception {
+//        Integer[] array = new Integer[] {Integer.MAX_VALUE, 0, Integer.MAX_VALUE};
+//        assertEquals(array, client.echoInteger(array));
+//    }
+
+//    public void testEcholongArray() throws Exception {
+//        long[] array = new long[] {Long.MAX_VALUE, 0, Long.MAX_VALUE};
+//        assertTrue(Arrays.equals(array, client.echolong(array)));
+//    }
+
+// @todo: Verify if webservice control method generation is correct!
+//    public void testEchoLongArray() throws Exception {
+//        Long[] array = new Long[] {Long.MAX_VALUE, 0L, Long.MAX_VALUE};
+//        assertEquals(array, client.echoLong(array));
+//    }
+
+//    public void testEchoBigIntegerArray() throws Exception {
+//        BigInteger[] array = new BigInteger[] {BigInteger.TEN, BigInteger.ONE, BigInteger.TEN};
+//        assertTrue(Arrays.equals(array, client.echoBigInteger(array)));
+//    }
+
+//    public void testEchofloatArray() throws Exception {
+//        float[] array = new float[] {Float.MAX_VALUE, 0, Float.MAX_VALUE};
+//        assertTrue(Arrays.equals(array, client.echofloat(array)));
+//    }
+
+// @todo: Verify if webservice control method generation is correct!
+//    public void testEchoFloatArray() throws Exception {
+//        Float[] array = new Float[] {Float.MAX_VALUE, 0F, Float.MAX_VALUE};
+//        assertEquals(array, client.echoFloat(array));
+//    }
+
+//    public void testEchodoubleArray() throws Exception {
+//        double[] array = new double[] {Double.MAX_VALUE, 0, Double.MAX_VALUE};
+//        assertTrue(Arrays.equals(array, client.echodouble(array)));
+//    }
+
+// @todo: Verify if webservice control method generation is correct!
+//    public void testEchoDoubleArray() throws Exception {
+//        Double[] array = new Double[] {Double.MAX_VALUE, 0D, Double.MAX_VALUE};
+//        assertEquals(array, client.echoDouble(array));
+//    }
+
+//    public void testEchoBigDecimalArray() throws Exception {
+//        BigDecimal[] array = new BigDecimal[] {BigDecimal.TEN, BigDecimal.ONE, BigDecimal.TEN};
+//        assertTrue(Arrays.equals(array, client.echoBigDecimal(array)));
+//    }
+//
+//    public void testEchoStringArray() throws Exception {
+//        String[] array = new String[] {"Hello", ",", "World!"};
+//        assertTrue(Arrays.equals(array, client.echoString(array)));
+//    }
+
+//    public void testEchoGregorianCalendarArray() throws Exception {
+//        soapMarshalling.GregorianCalendar sgcal = soapMarshalling.GregorianCalendar.Factory.newInstance();
+//        sgcal.setTimeInMillis(123456789);
+//        soapMarshalling.GregorianCalendar[] array = new soapMarshalling.GregorianCalendar[] {sgcal, sgcal};
+//        assertTrue(Arrays.equals(array, client.echoGregorianCalendar(array)));
+//    }
+
+    // TODO: Sort this out - control is being gened with Calendar instead of Date
+//    public void testEchoDateArray() throws Exception {
+//        Calendar cal = new GregorianCalendar();
+//        cal.setTimeInMillis(123456789);
+//        Calendar[] array = new Calendar[] {cal, cal};
+//        assertTrue(Arrays.equals(array, client.echoDate(array)));
+//    }
+
+//    public void testEchoCalendarArray() throws Exception {
+//        soapMarshalling.Calendar cal = soapMarshalling.Calendar.Factory.newInstance();
+//        cal.setTimeInMillis(123456789);
+//        soapMarshalling.Calendar[] array = new soapMarshalling.Calendar[] {cal, cal};
+//        assertTrue(Arrays.equals(array, client.echoCalendar(array)));
+//    }
+
+//    public void testEchoGDateArray() throws Exception {
+//        soapMarshalling.GDate gdate = soapMarshalling.GDate.Factory.newInstance();
+//        gdate.setYear(2005);
+//        soapMarshalling.GDate[] array = new soapMarshalling.GDate[] {gdate, gdate};
+//        assertTrue(Arrays.equals(array, client.echoGDate(array)));
+//    }
+
+//    public void testEchoGDurationArray() throws Exception {
+//        soapMarshalling.GDuration gdur = soapMarshalling.GDuration.Factory.newInstance();
+//        gdur.setYear(2006);
+//        soapMarshalling.GDuration[] array = new soapMarshalling.GDuration[] {gdur, gdur};
+//        assertTrue(Arrays.equals(array, client.echoGDuration(array)));
+//    }
+//
+//    public void testEchoQNameArray() throws Exception {
+//        QName qname = new QName("http://foo.bar", "foofoo");
+//        QName array[] = new QName[] { qname, qname };
+//        assertTrue(Arrays.equals(array, client.echoQName(array)));
+//    }
+
+
+    
+    public void setUp() throws Exception {
+        try {
+            super.setUp();
+            initializeControls(this);
+            setMyControlObject(client);
+
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+    }
+
+    public SoapMarshallingDocLitBareArrayTypesTest() throws Exception { }
+
+    public static Test suite() { return new TestSuite(SoapMarshallingDocLitBareArrayTypesTest.class); }
+
+    public static void main(String[] args) { junit.textui.TestRunner.run(suite()); }
+}
\ No newline at end of file

Added: incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/SoapMarshallingDocLitBareTest.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/SoapMarshallingDocLitBareTest.java?rev=190798&view=auto
==============================================================================
--- incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/SoapMarshallingDocLitBareTest.java (added)
+++ incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/SoapMarshallingDocLitBareTest.java Wed Jun 15 13:24:08 2005
@@ -0,0 +1,168 @@
+/*
+ * Copyright 2004 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * 
+ */
+package org.apache.beehive.controls.system.webservice.units;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import org.apache.beehive.controls.api.bean.Control;
+import org.apache.beehive.controls.system.webservice.units.utils.ControlTestCase;
+import test.SoapMarshallingDocLitBareService;
+
+import javax.xml.namespace.QName;
+import java.math.BigDecimal;
+import java.math.BigInteger;
+import java.util.Calendar;
+import java.util.GregorianCalendar;
+
+// @todo: ALL TESTS FAIL
+public class SoapMarshallingDocLitBareTest
+        extends ControlTestCase {
+
+    @Control
+    public SoapMarshallingDocLitBareService client;
+
+    public void test_ALL_TESTS_FAIL() {
+
+    }
+/*
+        public void testEchoboolean() throws Exception {
+            assertFalse(client.echoboolean(false));
+            assertTrue(client.echoboolean(true));
+        }
+
+        public void testEchoBoolean() throws Exception {
+            assertFalse(client.echoBoolean(new Boolean(false)));
+            assertTrue(client.echoBoolean(new Boolean(true)));
+        }
+
+        public void testEchobyte() throws Exception {
+            assertEquals(1, client.echobyte((byte) 1));
+        }
+
+        public void testEchoByte() throws Exception {
+            assertEquals(Byte.MAX_VALUE, client.echoByte(Byte.MAX_VALUE));
+        }
+
+        public void testEchoshort() throws Exception {
+            assertEquals(Short.MAX_VALUE, client.echoshort(Short.MAX_VALUE));
+        }
+
+        public void testEchoShort() throws Exception {
+            assertEquals(Short.MAX_VALUE, client.echoShort(Short.MAX_VALUE));
+        }
+
+        public void testEchoint() throws Exception {
+            assertEquals(Integer.MAX_VALUE, client.echoint(Integer.MAX_VALUE));
+        }
+
+        public void testEchoInteger() throws Exception {
+            assertEquals(Integer.MAX_VALUE, client.echoInteger(Integer.MAX_VALUE));
+        }
+
+        public void testEcholong() throws Exception {
+            assertEquals(Long.MAX_VALUE, client.echolong(Long.MAX_VALUE));
+        }
+
+        public void testEchoLong() throws Exception {
+            assertEquals(Long.MAX_VALUE, client.echoLong(Long.MAX_VALUE));
+        }
+
+        public void testEchoBigInteger() throws Exception {
+            assertEquals(BigInteger.TEN, client.echoBigInteger(BigInteger.TEN));
+        }
+
+        public void testEchofloat() throws Exception {
+            assertEquals(Float.MAX_VALUE, client.echofloat(Float.MAX_VALUE));
+        }
+
+        public void testEchoFloat() throws Exception {
+            assertEquals(Float.MAX_VALUE, client.echoFloat(Float.MAX_VALUE));
+        }
+
+        public void testEchodouble() throws Exception {
+            assertEquals(Double.MAX_VALUE, client.echodouble(Double.MAX_VALUE));
+        }
+
+        public void testEchoDouble() throws Exception {
+            assertEquals(Double.MAX_VALUE, client.echoDouble(Double.MAX_VALUE));
+        }
+
+        public void testEchoBigDecimal() throws Exception {
+            assertEquals(BigDecimal.TEN, client.echoBigDecimal(BigDecimal.TEN));
+        }
+
+        public void testEchoString() throws Exception {
+            assertEquals("Hello World!", client.echoString("Hello World!"));
+        }
+
+        public void testEchoGregorianCalendar() throws Exception {
+            soapMarshalling.GregorianCalendar sgcal = soapMarshalling.GregorianCalendar.Factory.newInstance();
+            sgcal.setTimeInMillis(123456789);
+            assertTrue(sgcal.compareTo(client.echoGregorianCalendar(sgcal)) == 0);
+        }
+
+        public void testEchoDate() throws Exception {
+            Calendar cal = new GregorianCalendar();
+            cal.setTimeInMillis(123456789);
+            assertTrue(cal.equals(client.echoDate(cal)));
+        }
+
+        public void testEchoCalendar() throws Exception {
+            Calendar cal = new GregorianCalendar();
+            cal.setTimeInMillis(123456789);
+            assertTrue(cal.equals(client.echoCalendar(cal)));
+        }
+
+        public void testEchoGDate() throws Exception {
+            soapMarshalling.GDate gdate = soapMarshalling.GDate.Factory.newInstance();
+            gdate.setYear(2005);
+            assertTrue(gdate.compareTo(client.echoGDate(gdate)) == 0);
+        }
+
+        public void testEchoGDuration() throws Exception {
+            soapMarshalling.GDuration gdur = soapMarshalling.GDuration.Factory.newInstance();
+            gdur.setYear(2006);
+            assertTrue(gdur.compareTo(client.echoGDuration(gdur)) == 0);
+        }
+
+        public void testEchoQName() throws Exception {
+            QName qname = new QName("http://foo.bar", "foofoo");
+            assertEquals(qname.toString(), client.echoQName(qname).toString());
+        }
+    */
+    public void setUp() throws Exception {
+        try {
+            super.setUp();
+            initializeControls(this);
+            setMyControlObject(client);
+
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+    }
+
+    public SoapMarshallingDocLitBareTest() throws Exception {
+    }
+
+    public static Test suite() {
+        return new TestSuite(SoapMarshallingDocLitBareTest.class);
+    }
+
+    public static void main(String[] args) {
+        junit.textui.TestRunner.run(suite());
+    }
+}
\ No newline at end of file

Added: incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/SoapMarshallingDocLitWrappedArrayTypesTest.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/SoapMarshallingDocLitWrappedArrayTypesTest.java?rev=190798&view=auto
==============================================================================
--- incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/SoapMarshallingDocLitWrappedArrayTypesTest.java (added)
+++ incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/SoapMarshallingDocLitWrappedArrayTypesTest.java Wed Jun 15 13:24:08 2005
@@ -0,0 +1,207 @@
+/*
+ * Copyright 2004 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.beehive.controls.system.webservice.units;
+
+import org.apache.beehive.controls.api.bean.Control;
+import org.apache.beehive.controls.system.webservice.units.utils.ControlTestCase;
+import org.apache.xmlbeans.GDate;
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import test.SoapMarshallingDocLitWrappedService;
+import test.SoapMarshallingDocLitWrappedArrayTypesService;
+
+import javax.xml.namespace.QName;
+import java.math.BigInteger;
+import java.math.BigDecimal;
+import java.util.Date;
+import java.util.Calendar;
+import java.util.GregorianCalendar;
+import java.util.Arrays;
+
+
+public class SoapMarshallingDocLitWrappedArrayTypesTest
+    extends ControlTestCase {
+
+    @Control
+    public SoapMarshallingDocLitWrappedArrayTypesService client;
+
+// @todo: fails
+//    public void testEchobooleanArray() throws Exception {
+//        boolean[] array = new boolean[] {true, false, true};
+//        assertTrue(Arrays.equals(array, client.echoboolean(array)));
+//    }
+
+// @todo: Verify if webservice control method generation is correct!
+//    public void testEchoBooleanArray() throws Exception {
+//        Boolean[] array = new Boolean[] {new Boolean(true), new Boolean(false), new Boolean(true};
+//        assertEquals(array, client.echoBoolean(array));
+//    }
+
+    public void testEchobyteArray() throws Exception {
+        byte[] array = new byte[] {Byte.MAX_VALUE, 0, Byte.MAX_VALUE};
+        assertTrue(Arrays.equals(array, client.echobyte(array)));
+    }
+
+// @todo: Verify if webservice control method generation is correct!
+//    public void testEchoByteArray() throws Exception {
+//        Byte[] array = new Byte[] {Byte.MAX_VALUE, (byte)0, Byte.MAX_VALUE};
+//        assertEquals(array, client.echoByte(array));
+//    }
+
+// @todo: fails
+//    public void testEchoshortArray() throws Exception {
+//        short[] array = new short[] {Short.MAX_VALUE, 0, Short.MAX_VALUE};
+//        assertTrue(Arrays.equals(array, client.echoshort(array)));
+//    }
+
+// @todo: Verify if webservice control method generation is correct!
+//    public void testEchoShortArray() throws Exception {
+//        Short[] array = new Short[] {Short.MAX_VALUE, (short)0, Short.MAX_VALUE};
+//        assertEquals(array, client.echoShort(array));
+//    }
+
+// @todo: fails
+//    public void testEchointArray() throws Exception {
+//        int[] array = new int[] {Integer.MAX_VALUE, 0, Integer.MAX_VALUE};
+//        assertTrue(Arrays.equals(array, client.echoint(array)));
+//    }
+
+// @todo: Verify if webservice control method generation is correct!
+//    public void testEchoIntegerArray() throws Exception {
+//        Integer[] array = new Integer[] {Integer.MAX_VALUE, 0, Integer.MAX_VALUE};
+//        assertEquals(array, client.echoInteger(array));
+//    }
+
+// @todo: fails
+//    public void testEcholongArray() throws Exception {
+//        long[] array = new long[] {Long.MAX_VALUE, 0, Long.MAX_VALUE};
+//        assertTrue(Arrays.equals(array, client.echolong(array)));
+//    }
+
+// @todo: Verify if webservice control method generation is correct!
+//    public void testEchoLongArray() throws Exception {
+//        Long[] array = new Long[] {Long.MAX_VALUE, 0L, Long.MAX_VALUE};
+//        assertEquals(array, client.echoLong(array));
+//    }
+
+// @todo: fails
+//    public void testEchoBigIntegerArray() throws Exception {
+//        BigInteger[] array = new BigInteger[] {BigInteger.TEN, BigInteger.ONE, BigInteger.TEN};
+//        assertTrue(Arrays.equals(array, client.echoBigInteger(array)));
+//    }
+
+// @todo: fails
+//    public void testEchofloatArray() throws Exception {
+//        float[] array = new float[] {Float.MAX_VALUE, 0, Float.MAX_VALUE};
+//        assertTrue(Arrays.equals(array, client.echofloat(array)));
+//    }
+
+// @todo: Verify if webservice control method generation is correct!
+//    public void testEchoFloatArray() throws Exception {
+//        Float[] array = new Float[] {Float.MAX_VALUE, 0F, Float.MAX_VALUE};
+//        assertEquals(array, client.echoFloat(array));
+//    }
+
+//    public void testEchodoubleArray() throws Exception {
+//        double[] array = new double[] {Double.MAX_VALUE, 0, Double.MAX_VALUE};
+//        assertTrue(Arrays.equals(array, client.echodouble(array)));
+//    }
+
+// @todo: Verify if webservice control method generation is correct!
+//    public void testEchoDoubleArray() throws Exception {
+//        Double[] array = new Double[] {Double.MAX_VALUE, 0D, Double.MAX_VALUE};
+//        assertEquals(array, client.echoDouble(array));
+//    }
+
+// @todo: fails
+//    public void testEchoBigDecimalArray() throws Exception {
+//        BigDecimal[] array = new BigDecimal[] {BigDecimal.TEN, BigDecimal.ONE, BigDecimal.TEN};
+//        assertTrue(Arrays.equals(array, client.echoBigDecimal(array)));
+//    }
+
+// @todo: fails
+//    public void testEchoStringArray() throws Exception {
+//        String[] array = new String[] {"Hello", ",", "World!"};
+//        assertTrue(Arrays.equals(array, client.echoString(array)));
+//    }
+
+// @todo: fails
+//    public void testEchoGregorianCalendarArray() throws Exception {
+//        soapMarshalling.GregorianCalendar sgcal = soapMarshalling.GregorianCalendar.Factory.newInstance();
+//        sgcal.setTimeInMillis(123456789);
+//        soapMarshalling.GregorianCalendar[] array = new soapMarshalling.GregorianCalendar[] {sgcal, sgcal};
+//        assertTrue(Arrays.equals(array, client.echoGregorianCalendar(array)));
+//    }
+
+    // TODO: Sort this out - control is being gened with Calendar instead of Date
+// @todo: fails
+//    public void testEchoDateArray() throws Exception {
+//        Calendar cal = new GregorianCalendar();
+//        cal.setTimeInMillis(123456789);
+//        Calendar[] array = new Calendar[] {cal, cal};
+//        assertTrue(Arrays.equals(array, client.echoDate(array)));
+//    }
+
+// @todo: fails
+//    public void testEchoCalendarArray() throws Exception {
+//        soapMarshalling.Calendar cal = soapMarshalling.Calendar.Factory.newInstance();
+//        cal.setTimeInMillis(123456789);
+//        soapMarshalling.Calendar[] array = new soapMarshalling.Calendar[] {cal, cal};
+//        assertTrue(Arrays.equals(array, client.echoCalendar(array)));
+//    }
+
+// @todo: fails
+//    public void testEchoGDateArray() throws Exception {
+//        soapMarshalling.GDate gdate = soapMarshalling.GDate.Factory.newInstance();
+//        gdate.setYear(2005);
+//        soapMarshalling.GDate[] array = new soapMarshalling.GDate[] {gdate, gdate};
+//        assertTrue(Arrays.equals(array, client.echoGDate(array)));
+//    }
+
+// @todo: fails
+//    public void testEchoGDurationArray() throws Exception {
+//        soapMarshalling.GDuration gdur = soapMarshalling.GDuration.Factory.newInstance();
+//        gdur.setYear(2006);
+//        soapMarshalling.GDuration[] array = new soapMarshalling.GDuration[] {gdur, gdur};
+//        assertTrue(Arrays.equals(array, client.echoGDuration(array)));
+//    }
+
+// @todo: fails
+//    public void testEchoQNameArray() throws Exception {
+//        QName qname = new QName("http://foo.bar", "foofoo");
+//        QName array[] = new QName[] { qname, qname };
+//        assertTrue(Arrays.equals(array, client.echoQName(array)));
+//    }
+
+
+    
+    public void setUp() throws Exception {
+        try {
+            super.setUp();
+            initializeControls(this);
+            setMyControlObject(client);
+
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+    }
+
+    public SoapMarshallingDocLitWrappedArrayTypesTest() throws Exception { }
+
+    public static Test suite() { return new TestSuite(SoapMarshallingDocLitWrappedArrayTypesTest.class); }
+
+    public static void main(String[] args) { junit.textui.TestRunner.run(suite()); }
+}
\ No newline at end of file

Added: incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/SoapMarshallingDocLitWrappedTest.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/SoapMarshallingDocLitWrappedTest.java?rev=190798&view=auto
==============================================================================
--- incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/SoapMarshallingDocLitWrappedTest.java (added)
+++ incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/SoapMarshallingDocLitWrappedTest.java Wed Jun 15 13:24:08 2005
@@ -0,0 +1,176 @@
+/*
+ * Copyright 2004 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.beehive.controls.system.webservice.units;
+
+import org.apache.beehive.controls.api.bean.Control;
+import org.apache.beehive.controls.system.webservice.units.utils.ControlTestCase;
+import org.apache.xmlbeans.GDate;
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import test.SoapMarshallingDocLitWrappedService;
+
+import javax.xml.namespace.QName;
+import java.math.BigInteger;
+import java.math.BigDecimal;
+import java.util.Date;
+import java.util.Calendar;
+import java.util.GregorianCalendar;
+
+
+public class SoapMarshallingDocLitWrappedTest
+    extends ControlTestCase {
+
+    @Control
+    public SoapMarshallingDocLitWrappedService client;
+
+    public void testEchoboolean() throws Exception {
+        assertFalse(client.echoboolean(false));
+        assertTrue(client.echoboolean(true));
+    }
+
+    public void testEchoBoolean() throws Exception {
+        assertFalse(client.echoBoolean(new Boolean(false)));
+        assertTrue(client.echoBoolean(new Boolean(true)));
+    }
+
+    public void testEchobyte() throws Exception {
+        assertEquals(1, client.echobyte((byte)1));
+    }
+
+    public void testEchoByte() throws Exception {
+        assertEquals(Byte.MAX_VALUE, client.echoByte(Byte.MAX_VALUE));
+    }
+
+    public void testEchoshort() throws Exception {
+        assertEquals(Short.MAX_VALUE, client.echoshort(Short.MAX_VALUE));
+    }
+
+    public void testEchoShort() throws Exception {
+        assertEquals(Short.MAX_VALUE, client.echoShort(Short.MAX_VALUE));
+    }
+
+    public void testEchoint() throws Exception {
+        assertEquals(Integer.MAX_VALUE, client.echoint(Integer.MAX_VALUE));
+    }
+
+    public void testEchoInteger() throws Exception {
+        assertEquals(Integer.MAX_VALUE, client.echoInteger(Integer.MAX_VALUE));
+    }
+
+    public void testEcholong() throws Exception {
+        assertEquals(Long.MAX_VALUE, client.echolong(Long.MAX_VALUE));
+    }
+
+    public void testEchoLong() throws Exception {
+        assertEquals(Long.MAX_VALUE, client.echoLong(Long.MAX_VALUE));
+    }
+
+    public void testEchoBigInteger() throws Exception {
+        assertEquals(BigInteger.TEN, client.echoBigInteger(BigInteger.TEN));
+    }
+
+    public void testEchofloat() throws Exception {
+        assertEquals(Float.MAX_VALUE, client.echofloat(Float.MAX_VALUE));
+    }
+
+    public void testEchoFloat() throws Exception {
+        assertEquals(Float.MAX_VALUE, client.echoFloat(Float.MAX_VALUE));
+    }
+
+    public void testEchodouble() throws Exception {
+        assertEquals(Double.MAX_VALUE, client.echodouble(Double.MAX_VALUE));
+    }
+
+    public void testEchoDouble() throws Exception {
+        assertEquals(Double.MAX_VALUE, client.echoDouble(Double.MAX_VALUE));
+    }
+
+    public void testEchoBigDecimal() throws Exception {
+        assertEquals(BigDecimal.TEN, client.echoBigDecimal(BigDecimal.TEN));
+    }
+
+    public void testEchoString() throws Exception {
+        assertEquals("Hello World!", client.echoString("Hello World!"));
+    }
+
+// todo: fix these tests
+// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
+// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
+// The following tests fail due to an AXIS or WSM bug.  The java.util.Calendar class fails during Serialization
+// on the server.
+// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
+// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
+
+//    public void testEchoGregorianCalendar() throws Exception {
+//        soapMarshalling.GregorianCalendar sgcal = soapMarshalling.GregorianCalendar.Factory.newInstance();
+//        sgcal.setTimeInMillis(123456789);
+//        soapMarshalling.GregorianCalendar result = client.echoGregorianCalendar(sgcal);
+//
+//        assertTrue(sgcal.compareTo(client.echoGregorianCalendar(sgcal)) == 0);
+//    }
+
+//    public void testEchoDate() throws Exception {
+//        Calendar cal = new GregorianCalendar();
+//        cal.setTimeInMillis(123456789);
+//        assertTrue(cal.equals(client.echoDate(cal)));
+//    }
+
+//    public void testEchoCalendar() throws Exception {
+//        Calendar cal = new GregorianCalendar();
+//        cal.setTimeInMillis(123456789);
+//        assertTrue(cal.equals(client.echoCalendar(cal)));
+//    }
+
+//    public void testEchoGDate() throws Exception {
+//        soapMarshalling.GDate gdate = soapMarshalling.GDate.Factory.newInstance();
+//        gdate.setYear(2005);
+//        assertTrue(gdate.compareTo(client.echoGDate(gdate)) == 0);
+//    }
+
+//    public void testEchoGDuration() throws Exception {
+//        soapMarshalling.GDuration gdur = soapMarshalling.GDuration.Factory.newInstance();
+//        gdur.setYear(2006);
+//        assertTrue(gdur.compareTo(client.echoGDuration(gdur)) == 0);
+//    }
+// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
+// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
+// end failing tests
+// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
+// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
+
+    public void testEchoQName() throws Exception {
+        QName qname = new QName("http://foo.bar", "foofoo");
+        assertEquals(qname.toString(), client.echoQName(qname).toString());
+    }
+
+
+    public void setUp() throws Exception {
+        try {
+            super.setUp();
+            initializeControls(this);
+            setMyControlObject(client);
+
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+    }
+
+    public SoapMarshallingDocLitWrappedTest() throws Exception { }
+
+    public static Test suite() { return new TestSuite(SoapMarshallingDocLitWrappedTest.class); }
+
+    public static void main(String[] args) { junit.textui.TestRunner.run(suite()); }
+}
\ No newline at end of file

Added: incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/SoapMarshallingRpcLitBareArrayTypesTest.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/SoapMarshallingRpcLitBareArrayTypesTest.java?rev=190798&view=auto
==============================================================================
--- incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/SoapMarshallingRpcLitBareArrayTypesTest.java (added)
+++ incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/SoapMarshallingRpcLitBareArrayTypesTest.java Wed Jun 15 13:24:08 2005
@@ -0,0 +1,194 @@
+/*
+ * Copyright 2004 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.beehive.controls.system.webservice.units;
+
+import org.apache.beehive.controls.api.bean.Control;
+import org.apache.beehive.controls.system.webservice.units.utils.ControlTestCase;
+import org.apache.xmlbeans.GDate;
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import test.SoapMarshallingDocLitWrappedService;
+import test.SoapMarshallingDocLitWrappedArrayTypesService;
+import test.SoapMarshallingRpcLitBareArrayTypesService;
+
+import javax.xml.namespace.QName;
+import java.math.BigInteger;
+import java.math.BigDecimal;
+import java.util.Date;
+import java.util.Calendar;
+import java.util.GregorianCalendar;
+import java.util.Arrays;
+
+
+public class SoapMarshallingRpcLitBareArrayTypesTest
+    extends ControlTestCase {
+
+    @Control
+    public SoapMarshallingRpcLitBareArrayTypesService client;
+
+//    public void testEchobooleanArray() throws Exception {
+//        boolean[] array = new boolean[] {true, false, true};
+//        assertTrue(Arrays.equals(array, client.echoboolean(array)));
+//    }
+
+// @todo: Verify if webservice control method generation is correct!
+//    public void testEchoBooleanArray() throws Exception {
+//        Boolean[] array = new Boolean[] {new Boolean(true), new Boolean(false), new Boolean(true};
+//        assertEquals(array, client.echoBoolean(array));
+//    }
+
+    public void testEchobyteArray() throws Exception {
+        byte[] array = new byte[] {Byte.MAX_VALUE, 0, Byte.MAX_VALUE};
+        assertTrue(Arrays.equals(array, client.echobyte(array)));
+    }
+
+// @todo: Verify if webservice control method generation is correct!
+//    public void testEchoByteArray() throws Exception {
+//        Byte[] array = new Byte[] {Byte.MAX_VALUE, (byte)0, Byte.MAX_VALUE};
+//        assertEquals(array, client.echoByte(array));
+//    }
+
+//    public void testEchoshortArray() throws Exception {
+//        short[] array = new short[] {Short.MAX_VALUE, 0, Short.MAX_VALUE};
+//        assertTrue(Arrays.equals(array, client.echoshort(array)));
+//    }
+
+// @todo: Verify if webservice control method generation is correct!
+//    public void testEchoShortArray() throws Exception {
+//        Short[] array = new Short[] {Short.MAX_VALUE, (short)0, Short.MAX_VALUE};
+//        assertEquals(array, client.echoShort(array));
+//    }
+
+//    public void testEchointArray() throws Exception {
+//        int[] array = new int[] {Integer.MAX_VALUE, 0, Integer.MAX_VALUE};
+//        assertTrue(Arrays.equals(array, client.echoint(array)));
+//    }
+
+// @todo: Verify if webservice control method generation is correct!
+//    public void testEchoIntegerArray() throws Exception {
+//        Integer[] array = new Integer[] {Integer.MAX_VALUE, 0, Integer.MAX_VALUE};
+//        assertEquals(array, client.echoInteger(array));
+//    }
+
+//    public void testEcholongArray() throws Exception {
+//        long[] array = new long[] {Long.MAX_VALUE, 0, Long.MAX_VALUE};
+//        assertTrue(Arrays.equals(array, client.echolong(array)));
+//    }
+
+// @todo: Verify if webservice control method generation is correct!
+//    public void testEchoLongArray() throws Exception {
+//        Long[] array = new Long[] {Long.MAX_VALUE, 0L, Long.MAX_VALUE};
+//        assertEquals(array, client.echoLong(array));
+//    }
+
+//    public void testEchoBigIntegerArray() throws Exception {
+//        BigInteger[] array = new BigInteger[] {BigInteger.TEN, BigInteger.ONE, BigInteger.TEN};
+//        assertTrue(Arrays.equals(array, client.echoBigInteger(array)));
+//    }
+
+//    public void testEchofloatArray() throws Exception {
+//        float[] array = new float[] {Float.MAX_VALUE, 0, Float.MAX_VALUE};
+//        assertTrue(Arrays.equals(array, client.echofloat(array)));
+//    }
+
+// @todo: Verify if webservice control method generation is correct!
+//    public void testEchoFloatArray() throws Exception {
+//        Float[] array = new Float[] {Float.MAX_VALUE, 0F, Float.MAX_VALUE};
+//        assertEquals(array, client.echoFloat(array));
+//    }
+
+//    public void testEchodoubleArray() throws Exception {
+//        double[] array = new double[] {Double.MAX_VALUE, 0, Double.MAX_VALUE};
+//        assertTrue(Arrays.equals(array, client.echodouble(array)));
+//    }
+
+// @todo: Verify if webservice control method generation is correct!
+//    public void testEchoDoubleArray() throws Exception {
+//        Double[] array = new Double[] {Double.MAX_VALUE, 0D, Double.MAX_VALUE};
+//        assertEquals(array, client.echoDouble(array));
+//    }
+
+//    public void testEchoBigDecimalArray() throws Exception {
+//        BigDecimal[] array = new BigDecimal[] {BigDecimal.TEN, BigDecimal.ONE, BigDecimal.TEN};
+//        assertTrue(Arrays.equals(array, client.echoBigDecimal(array)));
+//    }
+
+//    public void testEchoStringArray() throws Exception {
+//        String[] array = new String[] {"Hello", ",", "World!"};
+//        assertTrue(Arrays.equals(array, client.echoString(array)));
+//    }
+
+//    public void testEchoGregorianCalendarArray() throws Exception {
+//        soapMarshalling.GregorianCalendar sgcal = soapMarshalling.GregorianCalendar.Factory.newInstance();
+//        sgcal.setTimeInMillis(123456789);
+//        soapMarshalling.GregorianCalendar[] array = new soapMarshalling.GregorianCalendar[] {sgcal, sgcal};
+//        assertTrue(Arrays.equals(array, client.echoGregorianCalendar(array)));
+//    }
+
+    // TODO: Sort this out - control is being gened with Calendar instead of Date
+//    public void testEchoDateArray() throws Exception {
+//        Calendar cal = new GregorianCalendar();
+//        cal.setTimeInMillis(123456789);
+//        Calendar[] array = new Calendar[] {cal, cal};
+//        assertTrue(Arrays.equals(array, client.echoDate(array)));
+//    }
+
+//    public void testEchoCalendarArray() throws Exception {
+//        soapMarshalling.Calendar cal = soapMarshalling.Calendar.Factory.newInstance();
+//        cal.setTimeInMillis(123456789);
+//        soapMarshalling.Calendar[] array = new soapMarshalling.Calendar[] {cal, cal};
+//        assertTrue(Arrays.equals(array, client.echoCalendar(array)));
+//    }
+
+//    public void testEchoGDateArray() throws Exception {
+//        soapMarshalling.GDate gdate = soapMarshalling.GDate.Factory.newInstance();
+//        gdate.setYear(2005);
+//        soapMarshalling.GDate[] array = new soapMarshalling.GDate[] {gdate, gdate};
+//        assertTrue(Arrays.equals(array, client.echoGDate(array)));
+//    }
+
+//    public void testEchoGDurationArray() throws Exception {
+//        soapMarshalling.GDuration gdur = soapMarshalling.GDuration.Factory.newInstance();
+//        gdur.setYear(2006);
+//        soapMarshalling.GDuration[] array = new soapMarshalling.GDuration[] {gdur, gdur};
+//        assertTrue(Arrays.equals(array, client.echoGDuration(array)));
+//    }
+
+//    public void testEchoQNameArray() throws Exception {
+//        QName qname = new QName("http://foo.bar", "foofoo");
+//        QName array[] = new QName[] { qname, qname };
+//        assertTrue(Arrays.equals(array, client.echoQName(array)));
+//    }
+
+
+    
+    public void setUp() throws Exception {
+        try {
+            super.setUp();
+            initializeControls(this);
+            setMyControlObject(client);
+
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+    }
+
+    public SoapMarshallingRpcLitBareArrayTypesTest() throws Exception { }
+
+    public static Test suite() { return new TestSuite(SoapMarshallingRpcLitBareArrayTypesTest.class); }
+
+    public static void main(String[] args) { junit.textui.TestRunner.run(suite()); }
+}
\ No newline at end of file

Added: incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/SoapMarshallingRpcLitBareTest.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/SoapMarshallingRpcLitBareTest.java?rev=190798&view=auto
==============================================================================
--- incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/SoapMarshallingRpcLitBareTest.java (added)
+++ incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/SoapMarshallingRpcLitBareTest.java Wed Jun 15 13:24:08 2005
@@ -0,0 +1,172 @@
+/*
+ * 
+ * Copyright 2004 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * 
+ */
+package org.apache.beehive.controls.system.webservice.units;
+
+import org.apache.beehive.controls.api.bean.Control;
+import org.apache.beehive.controls.system.webservice.units.utils.ControlTestCase;
+import org.apache.xmlbeans.GDate;
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import test.SoapMarshallingDocLitWrappedService;
+import test.SoapMarshallingRpcLitBareService;
+
+import javax.xml.namespace.QName;
+import java.math.BigInteger;
+import java.math.BigDecimal;
+import java.util.Date;
+import java.util.Calendar;
+import java.util.GregorianCalendar;
+
+
+public class SoapMarshallingRpcLitBareTest
+    extends ControlTestCase {
+
+    @Control
+    public SoapMarshallingRpcLitBareService client;
+
+    public void testEchoboolean() throws Exception {
+        assertFalse(client.echoboolean(false));
+        assertTrue(client.echoboolean(true));
+    }
+
+    public void testEchoBoolean() throws Exception {
+        assertFalse(client.echoBoolean(new Boolean(false)));
+        assertTrue(client.echoBoolean(new Boolean(true)));
+    }
+
+    public void testEchobyte() throws Exception {
+        assertEquals(1, client.echobyte((byte)1));
+    }
+
+    public void testEchoByte() throws Exception {
+        assertEquals(Byte.MAX_VALUE, client.echoByte(Byte.MAX_VALUE));
+    }
+
+    public void testEchoshort() throws Exception {
+        assertEquals(Short.MAX_VALUE, client.echoshort(Short.MAX_VALUE));
+    }
+
+    public void testEchoShort() throws Exception {
+        assertEquals(Short.MAX_VALUE, client.echoShort(Short.MAX_VALUE));
+    }
+
+    public void testEchoint() throws Exception {
+        assertEquals(Integer.MAX_VALUE, client.echoint(Integer.MAX_VALUE));
+    }
+
+    public void testEchoInteger() throws Exception {
+        assertEquals(Integer.MAX_VALUE, client.echoInteger(Integer.MAX_VALUE));
+    }
+
+    public void testEcholong() throws Exception {
+        assertEquals(Long.MAX_VALUE, client.echolong(Long.MAX_VALUE));
+    }
+
+    public void testEchoLong() throws Exception {
+        assertEquals(Long.MAX_VALUE, client.echoLong(Long.MAX_VALUE));
+    }
+
+    public void testEchoBigInteger() throws Exception {
+        assertEquals(BigInteger.TEN, client.echoBigInteger(BigInteger.TEN));
+    }
+
+    public void testEchofloat() throws Exception {
+        assertEquals(Float.MAX_VALUE, client.echofloat(Float.MAX_VALUE));
+    }
+
+    public void testEchoFloat() throws Exception {
+        assertEquals(Float.MAX_VALUE, client.echoFloat(Float.MAX_VALUE));
+    }
+
+    public void testEchodouble() throws Exception {
+        assertEquals(Double.MAX_VALUE, client.echodouble(Double.MAX_VALUE));
+    }
+
+    public void testEchoDouble() throws Exception {
+        assertEquals(Double.MAX_VALUE, client.echoDouble(Double.MAX_VALUE));
+    }
+
+    public void testEchoBigDecimal() throws Exception {
+        assertEquals(BigDecimal.TEN, client.echoBigDecimal(BigDecimal.TEN));
+    }
+
+    public void testEchoString() throws Exception {
+        assertEquals("Hello World!", client.echoString("Hello World!"));
+    }
+
+    // todo: fails
+//    public void testEchoGregorianCalendar() throws Exception {
+//        soapMarshalling.GregorianCalendar sgcal = soapMarshalling.GregorianCalendar.Factory.newInstance();
+//        sgcal.setTimeInMillis(123456789);
+//        assertTrue(sgcal.compareTo(client.echoGregorianCalendar(sgcal)) == 0);
+//    }
+
+// TODO: Is this correct generation: control is being gen'ed with Calendar instead of Date
+//    public void testEchoDate() throws Exception {
+////        Date date = new Date();
+////        assertTrue(date.equals(client.echoDate(date)));
+//        Calendar cal = new GregorianCalendar();
+//        cal.setTimeInMillis(123456789);
+//        assertTrue(cal.equals(client.echoDate(cal)));
+//    }
+
+    // todo: fails
+//    public void testEchoCalendar() throws Exception {
+//        Calendar cal = new GregorianCalendar();
+//        cal.setTimeInMillis(123456789);
+//        assertTrue(cal.equals(client.echoCalendar(cal)));
+//    }
+
+    // todo: fails
+//    public void testEchoGDate() throws Exception {
+//        soapMarshalling.GDate gdate = soapMarshalling.GDate.Factory.newInstance();
+//        gdate.setYear(2005);
+//        assertTrue(gdate.compareTo(client.echoGDate(gdate)) == 0);
+//    }
+
+    // todo: fails
+//    public void testEchoGDuration() throws Exception {
+//        soapMarshalling.GDuration gdur = soapMarshalling.GDuration.Factory.newInstance();
+//        gdur.setYear(2006);
+//        assertTrue(gdur.compareTo(client.echoGDuration(gdur)) == 0);
+//    }
+
+    // todo: fails
+//    public void testEchoQName() throws Exception {
+//        QName qname = new QName("http://foo.bar", "foofoo");
+//        assertEquals(qname.toString(), client.echoQName(qname).toString());
+//    }
+
+
+    public void setUp() throws Exception {
+        try {
+            super.setUp();
+            initializeControls(this);
+            setMyControlObject(client);
+
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+    }
+
+    public SoapMarshallingRpcLitBareTest() throws Exception { }
+
+    public static Test suite() { return new TestSuite(SoapMarshallingRpcLitBareTest.class); }
+
+    public static void main(String[] args) { junit.textui.TestRunner.run(suite()); }
+}
\ No newline at end of file

Added: incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/SoapMarshallingRpcLitWrappedTest.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/SoapMarshallingRpcLitWrappedTest.java?rev=190798&view=auto
==============================================================================
--- incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/SoapMarshallingRpcLitWrappedTest.java (added)
+++ incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/apache/beehive/controls/system/webservice/units/SoapMarshallingRpcLitWrappedTest.java Wed Jun 15 13:24:08 2005
@@ -0,0 +1,170 @@
+/*
+ * Copyright 2004 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.beehive.controls.system.webservice.units;
+
+import org.apache.beehive.controls.api.bean.Control;
+import org.apache.beehive.controls.system.webservice.units.utils.ControlTestCase;
+import org.apache.xmlbeans.GDate;
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import test.SoapMarshallingDocLitWrappedService;
+import test.SoapMarshallingRpcLitWrappedService;
+
+import javax.xml.namespace.QName;
+import java.math.BigInteger;
+import java.math.BigDecimal;
+import java.util.Date;
+import java.util.Calendar;
+import java.util.GregorianCalendar;
+
+
+public class SoapMarshallingRpcLitWrappedTest
+    extends ControlTestCase {
+
+    @Control
+    public SoapMarshallingRpcLitWrappedService client;
+
+    public void testEchoboolean() throws Exception {
+        assertFalse(client.echoboolean(false));
+        assertTrue(client.echoboolean(true));
+    }
+
+    public void testEchoBoolean() throws Exception {
+        assertFalse(client.echoBoolean(new Boolean(false)));
+        assertTrue(client.echoBoolean(new Boolean(true)));
+    }
+
+    public void testEchobyte() throws Exception {
+        assertEquals(1, client.echobyte((byte)1));
+    }
+
+    public void testEchoByte() throws Exception {
+        assertEquals(Byte.MAX_VALUE, client.echoByte(Byte.MAX_VALUE));
+    }
+
+    public void testEchoshort() throws Exception {
+        assertEquals(Short.MAX_VALUE, client.echoshort(Short.MAX_VALUE));
+    }
+
+    public void testEchoShort() throws Exception {
+        assertEquals(Short.MAX_VALUE, client.echoShort(Short.MAX_VALUE));
+    }
+
+    public void testEchoint() throws Exception {
+        assertEquals(Integer.MAX_VALUE, client.echoint(Integer.MAX_VALUE));
+    }
+
+    public void testEchoInteger() throws Exception {
+        assertEquals(Integer.MAX_VALUE, client.echoInteger(Integer.MAX_VALUE));
+    }
+
+    public void testEcholong() throws Exception {
+        assertEquals(Long.MAX_VALUE, client.echolong(Long.MAX_VALUE));
+    }
+
+    public void testEchoLong() throws Exception {
+        assertEquals(Long.MAX_VALUE, client.echoLong(Long.MAX_VALUE));
+    }
+
+    public void testEchoBigInteger() throws Exception {
+        assertEquals(BigInteger.TEN, client.echoBigInteger(BigInteger.TEN));
+    }
+
+    public void testEchofloat() throws Exception {
+        assertEquals(Float.MAX_VALUE, client.echofloat(Float.MAX_VALUE));
+    }
+
+    public void testEchoFloat() throws Exception {
+        assertEquals(Float.MAX_VALUE, client.echoFloat(Float.MAX_VALUE));
+    }
+
+    public void testEchodouble() throws Exception {
+        assertEquals(Double.MAX_VALUE, client.echodouble(Double.MAX_VALUE));
+    }
+
+    public void testEchoDouble() throws Exception {
+        assertEquals(Double.MAX_VALUE, client.echoDouble(Double.MAX_VALUE));
+    }
+
+    public void testEchoBigDecimal() throws Exception {
+        assertEquals(BigDecimal.TEN, client.echoBigDecimal(BigDecimal.TEN));
+    }
+
+    public void testEchoString() throws Exception {
+        assertEquals("Hello World!", client.echoString("Hello World!"));
+    }
+
+    // todo: fails
+//    public void testEchoGregorianCalendar() throws Exception {
+//        soapMarshalling.GregorianCalendar sgcal = soapMarshalling.GregorianCalendar.Factory.newInstance();
+//        sgcal.setTimeInMillis(123456789);
+//        assertTrue(sgcal.compareTo(client.echoGregorianCalendar(sgcal)) == 0);
+//    }
+
+// TODO: Is this correct generation: control is being gen'ed with Calendar instead of Date
+//    public void testEchoDate() throws Exception {
+////        Date date = new Date();
+////        assertTrue(date.equals(client.echoDate(date)));
+//        Calendar cal = new GregorianCalendar();
+//        cal.setTimeInMillis(123456789);
+//        assertTrue(cal.equals(client.echoDate(cal)));
+//    }
+
+    // todo: fails
+//    public void testEchoCalendar() throws Exception {
+//        Calendar cal = new GregorianCalendar();
+//        cal.setTimeInMillis(123456789);
+//        assertTrue(cal.equals(client.echoCalendar(cal)));
+//    }
+
+    // todo: fails
+//    public void testEchoGDate() throws Exception {
+//        soapMarshalling.GDate gdate = soapMarshalling.GDate.Factory.newInstance();
+//        gdate.setYear(2005);
+//        assertTrue(gdate.compareTo(client.echoGDate(gdate)) == 0);
+//    }
+
+    // todo: fails
+//    public void testEchoGDuration() throws Exception {
+//        soapMarshalling.GDuration gdur = soapMarshalling.GDuration.Factory.newInstance();
+//        gdur.setYear(2006);
+//        assertTrue(gdur.compareTo(client.echoGDuration(gdur)) == 0);
+//    }
+
+    // todo: fails
+//    public void testEchoQName() throws Exception {
+//        QName qname = new QName("http://foo.bar", "foofoo");
+//        assertEquals(qname.toString(), client.echoQName(qname).toString());
+//    }
+
+
+    public void setUp() throws Exception {
+        try {
+            super.setUp();
+            initializeControls(this);
+            setMyControlObject(client);
+
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+    }
+
+    public SoapMarshallingRpcLitWrappedTest() throws Exception { }
+
+    public static Test suite() { return new TestSuite(SoapMarshallingRpcLitWrappedTest.class); }
+
+    public static void main(String[] args) { junit.textui.TestRunner.run(suite()); }
+}
\ No newline at end of file