Author: veithen
Date: Sat Dec 13 16:10:46 2008
New Revision: 726312
URL: http://svn.apache.org/viewvc?rev=726312&view=rev
Log:
Added a new axiom-integration module that tests integration of Axiom with other
libraries and frameworks. Note that this module uses Java 5 and is excluded
from the Maven build on JDK 1.4. Currently it contains tests to validate
interoperability of SAXOMBuilder with JAXB, XMLBeans and standard SAX parsers.
Added:
webservices/commons/trunk/modules/axiom/modules/axiom-integration/ (with
props)
webservices/commons/trunk/modules/axiom/modules/axiom-integration/pom.xml
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/builder/
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/builder/SAXOMBuilderJAXBTest.java
(with props)
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/builder/SAXOMBuilderSAXParserTest.java
(with props)
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/builder/SAXOMBuilderXMLBeansTest.java
(with props)
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/builder/test/
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/builder/test/jaxb/
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/builder/test/jaxb/Order.java
(with props)
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/builder/test/jaxb/OrderItem.java
(with props)
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/builder/test/jaxb/package-info.java
(with props)
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/resources/
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/resources/org/
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/resources/org/apache/
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/resources/org/apache/axiom/
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/resources/org/apache/axiom/om/
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/resources/org/apache/axiom/om/impl/
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/resources/org/apache/axiom/om/impl/builder/
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/resources/org/apache/axiom/om/impl/builder/test.xml
(with props)
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/xsd/
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/xsd/order.xsd
Modified:
webservices/commons/trunk/modules/axiom/pom.xml
Propchange: webservices/commons/trunk/modules/axiom/modules/axiom-integration/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sat Dec 13 16:10:46 2008
@@ -0,0 +1,5 @@
+target
+.settings
+.classpath
+.project
+
Added: webservices/commons/trunk/modules/axiom/modules/axiom-integration/pom.xml
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-integration/pom.xml?rev=726312&view=auto
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-integration/pom.xml
(added)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-integration/pom.xml
Sat Dec 13 16:10:46 2008
@@ -0,0 +1,90 @@
+<?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.
+ -->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.ws.commons.axiom</groupId>
+ <artifactId>axiom</artifactId>
+ <version>SNAPSHOT</version>
+ <!-- Should better be ${axiom.version} -->
+ </parent>
+ <artifactId>axiom-integration</artifactId>
+ <name>Axiom Integration Test Suite</name>
+ <version>SNAPSHOT</version>
+ <description>
+ This module contains tests that validate the interoperability of Axiom
with
+ other libraries.
+ </description>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.ws.commons.axiom</groupId>
+ <artifactId>axiom-impl</artifactId>
+ <version>${axiom.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>xmlunit</groupId>
+ <artifactId>xmlunit</artifactId>
+ <version>1.2</version>
+ </dependency>
+ <dependency>
+ <groupId>crimson</groupId>
+ <artifactId>crimson</artifactId>
+ <version>1.1.3</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.xmlbeans</groupId>
+ <artifactId>xmlbeans</artifactId>
+ <version>2.3.0</version>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.xml.bind</groupId>
+ <artifactId>jaxb-impl</artifactId>
+ <version>2.1.9</version>
+ </dependency>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.0.2</version>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>xmlbeans-maven-plugin</artifactId>
+ <version>2.3.1</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>xmlbeans-test</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Added:
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/builder/SAXOMBuilderJAXBTest.java
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/builder/SAXOMBuilderJAXBTest.java?rev=726312&view=auto
==============================================================================
---
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/builder/SAXOMBuilderJAXBTest.java
(added)
+++
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/builder/SAXOMBuilderJAXBTest.java
Sat Dec 13 16:10:46 2008
@@ -0,0 +1,58 @@
+/*
+ * 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.axiom.om.impl.builder;
+
+import java.io.StringWriter;
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.xml.bind.JAXBContext;
+import javax.xml.bind.Marshaller;
+
+import org.apache.axiom.om.impl.builder.test.jaxb.Order;
+import org.apache.axiom.om.impl.builder.test.jaxb.OrderItem;
+import org.custommonkey.xmlunit.XMLTestCase;
+
+public class SAXOMBuilderJAXBTest extends XMLTestCase {
+ public void test() throws Exception {
+ List<OrderItem> items = new ArrayList<OrderItem>(2);
+ OrderItem item = new OrderItem();
+ item.setPartId("P85-137-19");
+ item.setQuantity(2);
+ items.add(item);
+ item = new OrderItem();
+ item.setPartId("O85-554-66");
+ item.setQuantity(1);
+ items.add(item);
+ Order order = new Order();
+ order.setCustomerId("73107481");
+ order.setItems(items);
+
+ Marshaller marshaller =
JAXBContext.newInstance(Order.class).createMarshaller();
+ StringWriter out = new StringWriter();
+ marshaller.marshal(order, out);
+
+ SAXOMBuilder builder = new SAXOMBuilder();
+ marshaller.marshal(order, builder);
+
+// assertXMLIdentical(compareXML(out.toString(),
builder.getRootElement().toString()), true);
+ assertXMLEqual(compareXML(out.toString(),
builder.getRootElement().toString()), true);
+ }
+}
Propchange:
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/builder/SAXOMBuilderJAXBTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added:
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/builder/SAXOMBuilderSAXParserTest.java
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/builder/SAXOMBuilderSAXParserTest.java?rev=726312&view=auto
==============================================================================
---
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/builder/SAXOMBuilderSAXParserTest.java
(added)
+++
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/builder/SAXOMBuilderSAXParserTest.java
Sat Dec 13 16:10:46 2008
@@ -0,0 +1,68 @@
+/*
+ * 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.axiom.om.impl.builder;
+
+import java.io.ByteArrayInputStream;
+import java.io.ByteArrayOutputStream;
+import java.io.InputStream;
+
+import javax.xml.parsers.SAXParserFactory;
+
+import org.apache.axiom.om.OMElement;
+import org.custommonkey.xmlunit.XMLTestCase;
+import org.xml.sax.InputSource;
+import org.xml.sax.XMLReader;
+
+public class SAXOMBuilderSAXParserTest extends XMLTestCase {
+ private InputSource toInputSource(OMElement element) throws Exception {
+ ByteArrayOutputStream baos = new ByteArrayOutputStream();
+ element.serialize(baos);
+ return new InputSource(new ByteArrayInputStream(baos.toByteArray()));
+ }
+
+ private void test(SAXParserFactory factory) throws Exception {
+ factory.setNamespaceAware(true);
+ XMLReader reader = factory.newSAXParser().getXMLReader();
+ SAXOMBuilder builder = new SAXOMBuilder();
+ reader.setContentHandler(builder);
+ reader.setProperty("http://xml.org/sax/properties/lexical-handler",
builder);
+ InputStream in =
SAXOMBuilderSAXParserTest.class.getResourceAsStream("test.xml");
+ try {
+ reader.parse(new InputSource(in));
+ } finally {
+ in.close();
+ }
+ in = SAXOMBuilderSAXParserTest.class.getResourceAsStream("test.xml");
+ try {
+// assertXMLIdentical(compareXML(new InputSource(in),
toInputSource(builder.getRootElement())), true);
+ assertXMLEqual(compareXML(new InputSource(in),
toInputSource(builder.getRootElement())), true);
+ } finally {
+ in.close();
+ }
+ }
+
+ public void testCrimson() throws Exception {
+ test(new org.apache.crimson.jaxp.SAXParserFactoryImpl());
+ }
+
+ public void testXerces() throws Exception {
+ test(new org.apache.xerces.jaxp.SAXParserFactoryImpl());
+ }
+}
Propchange:
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/builder/SAXOMBuilderSAXParserTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added:
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/builder/SAXOMBuilderXMLBeansTest.java
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/builder/SAXOMBuilderXMLBeansTest.java?rev=726312&view=auto
==============================================================================
---
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/builder/SAXOMBuilderXMLBeansTest.java
(added)
+++
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/builder/SAXOMBuilderXMLBeansTest.java
Sat Dec 13 16:10:46 2008
@@ -0,0 +1,48 @@
+/*
+ * 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.axiom.om.impl.builder;
+
+import java.io.StringWriter;
+
+import org.apache.axiom.om.impl.builder.test.xmlbeans.OrderDocument;
+import org.apache.axiom.om.impl.builder.test.xmlbeans.OrderDocument.Order;
+import org.apache.axiom.om.impl.builder.test.xmlbeans.OrderDocument.Order.Item;
+import org.custommonkey.xmlunit.XMLTestCase;
+
+public class SAXOMBuilderXMLBeansTest extends XMLTestCase {
+ public void test() throws Exception {
+ OrderDocument document = OrderDocument.Factory.newInstance();
+ Order order = document.addNewOrder();
+ order.setCustomerId("73107481");
+ Item item = order.addNewItem();
+ item.setPartId("P85-137-19");
+ item.setQuantity(2);
+ item = order.addNewItem();
+ item.setPartId("O85-554-66");
+ item.setQuantity(1);
+
+ StringWriter out = new StringWriter();
+ document.save(out);
+ SAXOMBuilder builder = new SAXOMBuilder();
+ document.save(builder, builder);
+
+ assertXMLEqual(compareXML(out.toString(),
builder.getRootElement().toString()), true);
+ }
+}
Propchange:
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/builder/SAXOMBuilderXMLBeansTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added:
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/builder/test/jaxb/Order.java
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/builder/test/jaxb/Order.java?rev=726312&view=auto
==============================================================================
---
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/builder/test/jaxb/Order.java
(added)
+++
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/builder/test/jaxb/Order.java
Sat Dec 13 16:10:46 2008
@@ -0,0 +1,46 @@
+/*
+ * 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.axiom.om.impl.builder.test.jaxb;
+
+import java.util.List;
+
+import javax.xml.bind.annotation.XmlRootElement;
+
+...@xmlrootelement
+public class Order {
+ private String customerId;
+ private List<OrderItem> items;
+
+ public String getCustomerId() {
+ return customerId;
+ }
+
+ public void setCustomerId(String customerId) {
+ this.customerId = customerId;
+ }
+
+ public List<OrderItem> getItems() {
+ return items;
+ }
+
+ public void setItems(List<OrderItem> items) {
+ this.items = items;
+ }
+}
Propchange:
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/builder/test/jaxb/Order.java
------------------------------------------------------------------------------
svn:eol-style = native
Added:
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/builder/test/jaxb/OrderItem.java
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/builder/test/jaxb/OrderItem.java?rev=726312&view=auto
==============================================================================
---
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/builder/test/jaxb/OrderItem.java
(added)
+++
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/builder/test/jaxb/OrderItem.java
Sat Dec 13 16:10:46 2008
@@ -0,0 +1,41 @@
+/*
+ * 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.axiom.om.impl.builder.test.jaxb;
+
+public class OrderItem {
+ private String partId;
+ private int quantity;
+
+ public String getPartId() {
+ return partId;
+ }
+
+ public void setPartId(String partId) {
+ this.partId = partId;
+ }
+
+ public int getQuantity() {
+ return quantity;
+ }
+
+ public void setQuantity(int quantity) {
+ this.quantity = quantity;
+ }
+}
Propchange:
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/builder/test/jaxb/OrderItem.java
------------------------------------------------------------------------------
svn:eol-style = native
Added:
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/builder/test/jaxb/package-info.java
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/builder/test/jaxb/package-info.java?rev=726312&view=auto
==============================================================================
---
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/builder/test/jaxb/package-info.java
(added)
+++
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/builder/test/jaxb/package-info.java
Sat Dec 13 16:10:46 2008
@@ -0,0 +1,23 @@
+/*
+ * 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.
+ */
+
[email protected](
+ namespace = "http://ws.apache.org/axiom/test/jaxb",
+ elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
+package org.apache.axiom.om.impl.builder.test.jaxb;
\ No newline at end of file
Propchange:
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/java/org/apache/axiom/om/impl/builder/test/jaxb/package-info.java
------------------------------------------------------------------------------
svn:eol-style = native
Added:
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/resources/org/apache/axiom/om/impl/builder/test.xml
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/resources/org/apache/axiom/om/impl/builder/test.xml?rev=726312&view=auto
==============================================================================
---
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/resources/org/apache/axiom/om/impl/builder/test.xml
(added)
+++
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/resources/org/apache/axiom/om/impl/builder/test.xml
Sat Dec 13 16:10:46 2008
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!-- Some comment -->
+ <element xmlns="urn:ns1" xmlns:ns2="urn:ns2">
+ <ns2:subelement attr1="test" attr2="test2">Some text</ns2:subelement>
+ <otherelement attr1="test" ns2:attr2="test2"><![CDATA[some
CDATA]]></otherelement>
+ </element>
+</root>
Propchange:
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/resources/org/apache/axiom/om/impl/builder/test.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added:
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/xsd/order.xsd
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/xsd/order.xsd?rev=726312&view=auto
==============================================================================
---
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/xsd/order.xsd
(added)
+++
webservices/commons/trunk/modules/axiom/modules/axiom-integration/src/test/xsd/order.xsd
Sat Dec 13 16:10:46 2008
@@ -0,0 +1,38 @@
+<?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/axiom/om/impl/builder/test/xmlbeans"
+ elementFormDefault="qualified">
+ <element name="order">
+ <complexType>
+ <sequence>
+ <element name="customerId" type="string"/>
+ <element name="item" maxOccurs="unbounded">
+ <complexType>
+ <sequence>
+ <element name="partId" type="string"/>
+ <element name="quantity" type="int"/>
+ </sequence>
+ </complexType>
+ </element>
+ </sequence>
+ </complexType>
+ </element>
+</schema>
\ No newline at end of file
Modified: webservices/commons/trunk/modules/axiom/pom.xml
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/pom.xml?rev=726312&r1=726311&r2=726312&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/pom.xml (original)
+++ webservices/commons/trunk/modules/axiom/pom.xml Sat Dec 13 16:10:46 2008
@@ -231,6 +231,24 @@
</organization>
<profiles>
<profile>
+ <id>jdk15</id>
+ <activation>
+ <jdk>1.5</jdk>
+ </activation>
+ <modules>
+ <module>modules/axiom-integration</module>
+ </modules>
+ </profile>
+ <profile>
+ <id>jdk16</id>
+ <activation>
+ <jdk>1.6</jdk>
+ </activation>
+ <modules>
+ <module>modules/axiom-integration</module>
+ </modules>
+ </profile>
+ <profile>
<id>release</id>
<activation>
<property>