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/06/25 14:06:05 UTC

svn commit: r788335 - in /webservices/axis2/trunk/java/modules/adb-codegen: sub-build.xml test-resources/testsuite/unqualified.xsd test/org/apache/axis2/schema/unqualified/ test/org/apache/axis2/schema/unqualified/UnqualifiedTest.java

Author: veithen
Date: Thu Jun 25 12:06:05 2009
New Revision: 788335

URL: http://svn.apache.org/viewvc?rev=788335&view=rev
Log:
Added a simple test case for schemas with elementFormDefault="unqualified".

Added:
    webservices/axis2/trunk/java/modules/adb-codegen/test-resources/testsuite/unqualified.xsd
    webservices/axis2/trunk/java/modules/adb-codegen/test/org/apache/axis2/schema/unqualified/
    webservices/axis2/trunk/java/modules/adb-codegen/test/org/apache/axis2/schema/unqualified/UnqualifiedTest.java   (with props)
Modified:
    webservices/axis2/trunk/java/modules/adb-codegen/sub-build.xml

Modified: webservices/axis2/trunk/java/modules/adb-codegen/sub-build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb-codegen/sub-build.xml?rev=788335&r1=788334&r2=788335&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb-codegen/sub-build.xml (original)
+++ webservices/axis2/trunk/java/modules/adb-codegen/sub-build.xml Thu Jun 25 12:06:05 2009
@@ -81,6 +81,7 @@
 			<arg file="${testsuite.source.dir}/soapencoding.xsd"/>
 			<arg file="${testsuite.source.dir}/chameleon.xsd"/>
 			<arg file="${testsuite.source.dir}/nonamespace.xsd"/> <!-- compile only; no tests -->
+			<arg file="${testsuite.source.dir}/unqualified.xsd"/>
 			<arg file="${schema.generated.src.dir}"/>
 		</java>
     </target>

Added: webservices/axis2/trunk/java/modules/adb-codegen/test-resources/testsuite/unqualified.xsd
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb-codegen/test-resources/testsuite/unqualified.xsd?rev=788335&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/adb-codegen/test-resources/testsuite/unqualified.xsd (added)
+++ webservices/axis2/trunk/java/modules/adb-codegen/test-resources/testsuite/unqualified.xsd Thu Jun 25 12:06:05 2009
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements. See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership. The ASF licenses this file
+  ~ to you 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.
+  -->
+<schema xmlns="http://www.w3.org/2001/XMLSchema"
+        targetNamespace="http://apache.org/axis2/schema/unqualified"
+        xmlns:tns="http://apache.org/axis2/schema/unqualified"
+        elementFormDefault="unqualified">
+    <element name="TestElement">
+        <complexType>
+            <sequence>
+                <element name="element1" type="string"/>
+                <element name="element2" type="string"/>
+            </sequence>
+        </complexType>
+    </element>
+</schema>
\ No newline at end of file

Added: webservices/axis2/trunk/java/modules/adb-codegen/test/org/apache/axis2/schema/unqualified/UnqualifiedTest.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb-codegen/test/org/apache/axis2/schema/unqualified/UnqualifiedTest.java?rev=788335&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/adb-codegen/test/org/apache/axis2/schema/unqualified/UnqualifiedTest.java (added)
+++ webservices/axis2/trunk/java/modules/adb-codegen/test/org/apache/axis2/schema/unqualified/UnqualifiedTest.java Thu Jun 25 12:06:05 2009
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.axis2.schema.unqualified;
+
+import org.apache.axis2.schema.AbstractTestCase;
+
+public class UnqualifiedTest extends AbstractTestCase {
+    public void test() throws Exception {
+        TestElement testElement = new TestElement();
+        testElement.setElement1("element1");
+        testElement.setElement2("element2");
+        testSerializeDeserialize(testElement);
+    }
+}

Propchange: webservices/axis2/trunk/java/modules/adb-codegen/test/org/apache/axis2/schema/unqualified/UnqualifiedTest.java
------------------------------------------------------------------------------
    svn:eol-style = native