You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ve...@apache.org on 2009/07/05 18:18:29 UTC
svn commit: r791265 - in /webservices/axis2/trunk/java/modules/adb-codegen:
test-resources/testsuite/base64binary.xsd
test/org/apache/axis2/schema/base64binary/Base64BinaryTest.java
Author: veithen
Date: Sun Jul 5 16:18:29 2009
New Revision: 791265
URL: http://svn.apache.org/viewvc?rev=791265&view=rev
Log:
ADB tests: increased the coverage of the base64Binary tests to also cover the array case.
Modified:
webservices/axis2/trunk/java/modules/adb-codegen/test-resources/testsuite/base64binary.xsd
webservices/axis2/trunk/java/modules/adb-codegen/test/org/apache/axis2/schema/base64binary/Base64BinaryTest.java
Modified: webservices/axis2/trunk/java/modules/adb-codegen/test-resources/testsuite/base64binary.xsd
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb-codegen/test-resources/testsuite/base64binary.xsd?rev=791265&r1=791264&r2=791265&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb-codegen/test-resources/testsuite/base64binary.xsd (original)
+++ webservices/axis2/trunk/java/modules/adb-codegen/test-resources/testsuite/base64binary.xsd Sun Jul 5 16:18:29 2009
@@ -36,4 +36,11 @@
</xs:complexType>
</xs:element>
+ <xs:element name="TestBase64BinaryOnbounded">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="param" type="xs:base64Binary" maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
</xs:schema>
Modified: webservices/axis2/trunk/java/modules/adb-codegen/test/org/apache/axis2/schema/base64binary/Base64BinaryTest.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb-codegen/test/org/apache/axis2/schema/base64binary/Base64BinaryTest.java?rev=791265&r1=791264&r2=791265&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb-codegen/test/org/apache/axis2/schema/base64binary/Base64BinaryTest.java (original)
+++ webservices/axis2/trunk/java/modules/adb-codegen/test/org/apache/axis2/schema/base64binary/Base64BinaryTest.java Sun Jul 5 16:18:29 2009
@@ -72,4 +72,14 @@
testSerializeDeserialize(testBase64MultiElement, false);
}
+
+ public void testBase64BinaryOnbounded() throws Exception {
+ TestBase64BinaryOnbounded bean = new TestBase64BinaryOnbounded();
+ bean.setParam(new DataHandler[] {
+ new DataHandler("DataHandler 1", "text/plain"),
+ new DataHandler("DataHandler 2", "text/plain"),
+ new DataHandler("DataHandler 3", "text/plain")
+ });
+ testSerializeDeserialize(bean);
+ }
}