You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by ve...@apache.org on 2008/12/17 20:10:34 UTC

svn commit: r727473 [1/2] - in /webservices/commons/trunk/modules/axiom/modules: axiom-api/src/main/java/org/apache/axiom/om/ axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/factory/ axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/factory/ ...

Author: veithen
Date: Wed Dec 17 11:10:32 2008
New Revision: 727473

URL: http://svn.apache.org/viewvc?rev=727473&view=rev
Log:
Refactored part of the SOAP tests so that they can be applied to both LLOM and DOM. To this end:

1) A new abstract class OMImplementation has been introduced in the API. This class defines methods to get instances of OMFactory and SOAPFactory for a given object model implementation. Implementations of this class are provided for LLOM and DOM. These implementations take into account the different lifecycle of OM factories in LLOM (stateless factories) and DOM (one factory per document). This class is similar to the existing OMAbstractFactory and DOOMAbstractFactory classes, however in OMImplementation the getXxxFactory methods are not static so that polymorphism can be used to write code that is completely agnostic of the underlying implementation.

2) The relevant tests in org.apache.axiom.soap have been renamed from xxxTest to xxxTestBase and now require an OMImplementation instance as input.

3) Subclasses (injecting the right OMImplementation instance) of these classes have been created in org.apache.axiom.soap.impl.dom and org.apache.axiom.soap.impl.llom, so that (a subset of) the abstract tests in org.apache.axiom.soap are applied to both OM implementations.

Added:
    webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/OMImplementation.java   (with props)
    webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/factory/OMDOMImplementation.java   (with props)
    webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/factory/OMLinkedListImplementation.java   (with props)
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPBodyTestBase.java
      - copied, changed from r727359, webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPBodyTest.java
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPDiscardTestBase.java
      - copied, changed from r727359, webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPDiscardTest.java
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPEnvelopeTestBase.java
      - copied, changed from r727359, webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPEnvelopeTest.java
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultCodeTestBase.java
      - copied, changed from r727359, webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultCodeTest.java
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultDetailTestBase.java
      - copied, changed from r727359, webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultDetailTest.java
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultNodeTestBase.java
      - copied, changed from r727359, webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultNodeTest.java
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultReasonTestBase.java
      - copied, changed from r727359, webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultReasonTest.java
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultRoleTestBase.java
      - copied, changed from r727359, webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultRoleTest.java
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultSubCodeTestBase.java
      - copied, changed from r727359, webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultSubCodeTest.java
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultTestBase.java
      - copied, changed from r727359, webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultTest.java
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultTextTestBase.java
      - copied, changed from r727359, webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultTextTest.java
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultValueTestBase.java
      - copied, changed from r727359, webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultValueTest.java
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPHeaderBlockTestBase.java
      - copied, changed from r727359, webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPHeaderBlockTest.java
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPHeaderTestBase.java
      - copied, changed from r727359, webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPHeaderTest.java
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPBodyTest.java   (with props)
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPEnvelopeTest.java   (with props)
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultCodeTest.java   (with props)
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultDetailTest.java   (with props)
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultReasonTest.java   (with props)
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultRoleTest.java   (with props)
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultSubCodeTest.java   (with props)
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultTest.java   (with props)
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultTextTest.java   (with props)
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultValueTest.java   (with props)
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPHeaderTest.java   (with props)
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/llom/SOAPBodyTest.java   (with props)
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/llom/SOAPDiscardTest.java   (with props)
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/llom/SOAPEnvelopeTest.java   (with props)
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/llom/SOAPFaultCodeTest.java   (with props)
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/llom/SOAPFaultDetailTest.java   (with props)
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/llom/SOAPFaultNodeTest.java   (with props)
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/llom/SOAPFaultReasonTest.java   (with props)
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/llom/SOAPFaultRoleTest.java   (with props)
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/llom/SOAPFaultSubCodeTest.java   (with props)
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/llom/SOAPFaultTest.java   (with props)
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/llom/SOAPFaultTextTest.java   (with props)
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/llom/SOAPFaultValueTest.java   (with props)
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/llom/SOAPHeaderBlockTest.java   (with props)
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/llom/SOAPHeaderTest.java   (with props)
Removed:
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPBodyTest.java
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPDiscardTest.java
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPEnvelopeTest.java
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultCodeTest.java
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultDetailTest.java
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultNodeTest.java
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultReasonTest.java
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultRoleTest.java
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultSubCodeTest.java
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultTest.java
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultTextTest.java
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultValueTest.java
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPHeaderBlockTest.java
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPHeaderTest.java
Modified:
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPBodyTestCase.java
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultCodeTestCase.java
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultReasonTestCase.java
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultSubCodeTestCase.java
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultTestCase.java
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPHeaderTestCase.java
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPTestCase.java

Added: webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/OMImplementation.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/OMImplementation.java?rev=727473&view=auto
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/OMImplementation.java (added)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/OMImplementation.java Wed Dec 17 11:10:32 2008
@@ -0,0 +1,61 @@
+/*
+ * 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;
+
+import org.apache.axiom.soap.SOAPFactory;
+
+/**
+ * Abstract class encapsulating a particular object model.
+ * It provides instances for plain XML, SOAP 1.1 and SOAP 1.2 object model factories for the
+ * given object model implementation. Currently the two OM implementations provided by
+ * Axiom are LLOM (linked list) and DOM.
+ * <p>
+ * The factories returned by {@link #getOMFactory()}, {@link #getSOAP11Factory()} and
+ * {@link #getSOAP12Factory()} might be stateless (and thread safe) or not. In the former
+ * case the implementation should return the same instance on every invocation, i.e.
+ * instantiate the factory for each OM type only once. In the latter case, the implementation
+ * must return a new instance on every invocation. In order to work with any OM implementation,
+ * code using an implementation of this class must call the relevant method once and only once
+ * for every document processed.
+ */
+// NOTE: It is intentional that this is implemented as an abstract class rather than an interface.
+//       Probably there will be a static getInstance() method in the future.
+public abstract class OMImplementation {
+    /**
+     * Get an OM factory instance for the XML infoset model.
+     *
+     * @return the OM factory instance
+     */
+    public abstract OMFactory getOMFactory();
+    
+    /**
+     * Get an OM factory instance for the SOAP 1.1 infoset model.
+     *
+     * @return the OM factory instance
+     */
+    public abstract SOAPFactory getSOAP11Factory();
+    
+    /**
+     * Get an OM factory instance for the SOAP 1.2 infoset model.
+     *
+     * @return the OM factory instance
+     */
+    public abstract SOAPFactory getSOAP12Factory();
+}

Propchange: webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/OMImplementation.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/factory/OMDOMImplementation.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/factory/OMDOMImplementation.java?rev=727473&view=auto
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/factory/OMDOMImplementation.java (added)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/factory/OMDOMImplementation.java Wed Dec 17 11:10:32 2008
@@ -0,0 +1,47 @@
+/*
+ * 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.dom.factory;
+
+import org.apache.axiom.om.OMFactory;
+import org.apache.axiom.om.OMImplementation;
+import org.apache.axiom.soap.SOAPFactory;
+import org.apache.axiom.soap.impl.dom.soap11.SOAP11Factory;
+import org.apache.axiom.soap.impl.dom.soap12.SOAP12Factory;
+
+/**
+ * Class encapsulating the DOOM implementation.
+ * <p>
+ * As explained in {@link OMDOMFactory}, OM factories for DOOM are not stateless.
+ * Therefore {@link #getOMFactory()}, {@link #getSOAP11Factory()} and
+ * {@link #getSOAP12Factory()} will return a new instance on every invocation.
+ */
+public class OMDOMImplementation extends OMImplementation {
+    public OMFactory getOMFactory() {
+        return new OMDOMFactory();
+    }
+
+    public SOAPFactory getSOAP11Factory() {
+        return new SOAP11Factory();
+    }
+
+    public SOAPFactory getSOAP12Factory() {
+        return new SOAP12Factory();
+    }
+}

Propchange: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/factory/OMDOMImplementation.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/factory/OMLinkedListImplementation.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/factory/OMLinkedListImplementation.java?rev=727473&view=auto
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/factory/OMLinkedListImplementation.java (added)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/factory/OMLinkedListImplementation.java Wed Dec 17 11:10:32 2008
@@ -0,0 +1,51 @@
+/*
+ * 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.llom.factory;
+
+import org.apache.axiom.om.OMFactory;
+import org.apache.axiom.om.OMImplementation;
+import org.apache.axiom.soap.SOAPFactory;
+import org.apache.axiom.soap.impl.llom.soap11.SOAP11Factory;
+import org.apache.axiom.soap.impl.llom.soap12.SOAP12Factory;
+
+/**
+ * Class encapsulating the linked list OM implementation.
+ * <p>
+ * Since all OM factories for LLOM are stateless, {@link #getOMFactory()},
+ * {@link #getSOAP11Factory()} and {@link #getSOAP12Factory()} will return the
+ * same instance on every invocation.
+ */
+public class OMLinkedListImplementation extends OMImplementation {
+    private final OMFactory omFactory = new OMLinkedListImplFactory();
+    private final SOAPFactory soap11Factory = new SOAP11Factory();
+    private final SOAPFactory soap12Factory = new SOAP12Factory();
+    
+    public OMFactory getOMFactory() {
+        return omFactory;
+    }
+    
+    public SOAPFactory getSOAP11Factory() {
+        return soap11Factory;
+    }
+    
+    public SOAPFactory getSOAP12Factory() {
+        return soap12Factory;
+    }
+}

Propchange: webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/factory/OMLinkedListImplementation.java
------------------------------------------------------------------------------
    svn:eol-style = native

Copied: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPBodyTestBase.java (from r727359, webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPBodyTest.java)
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPBodyTestBase.java?p2=webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPBodyTestBase.java&p1=webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPBodyTest.java&r1=727359&r2=727473&rev=727473&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPBodyTest.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPBodyTestBase.java Wed Dec 17 11:10:32 2008
@@ -19,16 +19,12 @@
 
 package org.apache.axiom.soap;
 
-import org.apache.axiom.om.OMException;
+import org.apache.axiom.om.OMImplementation;
 
-public class SOAPBodyTest extends SOAPBodyTestCase {
+public class SOAPBodyTestBase extends SOAPBodyTestCase {
 
-    public SOAPBodyTest(String testName) {
-        super(testName);
-    }
-
-    protected void setUp() throws Exception {
-        super.setUp();
+    public SOAPBodyTestBase(OMImplementation omImplementation) {
+        super(omImplementation);
     }
 
     //SOAP 1.1 Body Test (Programaticaly created)----------------------------------------------------------------------------------
@@ -138,20 +134,4 @@
                 soap12BodyWithParser.getFault().getLocalName().equals(
                         SOAPConstants.SOAPFAULT_LOCAL_NAME));
     }
-
-    public void testSOAPBodyDetachment() {
-        try {
-            soap11Body.detach();
-            fail("Detachment of SOAP Body is not allowed !!");
-        } catch (OMException e) {
-            assertTrue(true);
-        }
-
-        try {
-            soap12Body.detach();
-            fail("Detachment of SOAP Body is not allowed !!");
-        } catch (OMException e) {
-            assertTrue(true);
-        }
-    }
 }

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPBodyTestCase.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPBodyTestCase.java?rev=727473&r1=727472&r2=727473&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPBodyTestCase.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPBodyTestCase.java Wed Dec 17 11:10:32 2008
@@ -19,6 +19,8 @@
 
 package org.apache.axiom.soap;
 
+import org.apache.axiom.om.OMImplementation;
+
 public abstract class SOAPBodyTestCase extends SOAPTestCase {
     protected SOAPBody soap11Body;
     protected SOAPBody soap12Body;
@@ -26,8 +28,8 @@
     protected SOAPBody soap11BodyWithParser;
     protected SOAPBody soap12BodyWithParser;
 
-    public SOAPBodyTestCase(String testName) {
-        super(testName);
+    public SOAPBodyTestCase(OMImplementation omImplementation) {
+        super(omImplementation);
 
     }
 

Copied: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPDiscardTestBase.java (from r727359, webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPDiscardTest.java)
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPDiscardTestBase.java?p2=webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPDiscardTestBase.java&p1=webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPDiscardTest.java&r1=727359&r2=727473&rev=727473&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPDiscardTest.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPDiscardTestBase.java Wed Dec 17 11:10:32 2008
@@ -20,16 +20,18 @@
 
 import javax.xml.stream.XMLStreamException;
 
+import org.apache.axiom.om.OMImplementation;
+
 /**
  * @author : Ajith Ranabahu
  *         Date: Aug 15, 2007
  *         Time: 11:57:54 PM
  */
-public class SOAPDiscardTest  extends SOAPTestCase{
+public class SOAPDiscardTestBase  extends SOAPTestCase{
 
 
-    public SOAPDiscardTest(String testName) {
-        super(testName);
+    public SOAPDiscardTestBase(OMImplementation omImplementation) {
+        super(omImplementation);
     }
 
     public void testDiscardHeader(){

Copied: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPEnvelopeTestBase.java (from r727359, webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPEnvelopeTest.java)
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPEnvelopeTestBase.java?p2=webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPEnvelopeTestBase.java&p1=webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPEnvelopeTest.java&r1=727359&r2=727473&rev=727473&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPEnvelopeTest.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPEnvelopeTestBase.java Wed Dec 17 11:10:32 2008
@@ -20,16 +20,17 @@
 package org.apache.axiom.soap;
 
 import org.apache.axiom.om.OMAbstractFactory;
+import org.apache.axiom.om.OMImplementation;
 
 
-public class SOAPEnvelopeTest extends SOAPTestCase {
+public class SOAPEnvelopeTestBase extends SOAPTestCase {
     protected SOAPEnvelope soap11Envelope;
     protected SOAPEnvelope soap12Envelope;
 
-    public SOAPEnvelopeTest(String testName) {
-        super(testName);
-        soap11Envelope = soap11Factory.getDefaultEnvelope();
-        soap12Envelope = soap12Factory.getDefaultEnvelope();
+    public SOAPEnvelopeTestBase(OMImplementation omImplementation) {
+        super(omImplementation);
+        soap11Envelope = omImplementation.getSOAP11Factory().getDefaultEnvelope();
+        soap12Envelope = omImplementation.getSOAP12Factory().getDefaultEnvelope();
     }
 
     //SOAP 1.1 Envelope Test (Programaticaly Created)-----------------------------------------------

Copied: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultCodeTestBase.java (from r727359, webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultCodeTest.java)
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultCodeTestBase.java?p2=webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultCodeTestBase.java&p1=webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultCodeTest.java&r1=727359&r2=727473&rev=727473&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultCodeTest.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultCodeTestBase.java Wed Dec 17 11:10:32 2008
@@ -19,15 +19,13 @@
 
 package org.apache.axiom.soap;
 
+import org.apache.axiom.om.OMImplementation;
 
-public class SOAPFaultCodeTest extends SOAPFaultCodeTestCase {
 
-    public SOAPFaultCodeTest(String testName) {
-        super(testName);
-    }
+public class SOAPFaultCodeTestBase extends SOAPFaultCodeTestCase {
 
-    protected void setUp() throws Exception {
-        super.setUp();
+    public SOAPFaultCodeTestBase(OMImplementation omImplementation) {
+        super(omImplementation);
     }
 
     //SOAP 1.1 Fault Code Test (Programaticaly Created)

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultCodeTestCase.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultCodeTestCase.java?rev=727473&r1=727472&r2=727473&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultCodeTestCase.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultCodeTestCase.java Wed Dec 17 11:10:32 2008
@@ -19,6 +19,8 @@
 
 package org.apache.axiom.soap;
 
+import org.apache.axiom.om.OMImplementation;
+
 public abstract class SOAPFaultCodeTestCase extends SOAPFaultTestCase {
 
     protected SOAPFaultCode soap11FaultCode;
@@ -27,8 +29,8 @@
     protected SOAPFaultCode soap11FaultCodeWithParser;
     protected SOAPFaultCode soap12FaultCodeWithParser;
 
-    public SOAPFaultCodeTestCase(String testName) {
-        super(testName);
+    public SOAPFaultCodeTestCase(OMImplementation omImplementation) {
+        super(omImplementation);
     }
 
     protected void setUp() throws Exception {

Copied: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultDetailTestBase.java (from r727359, webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultDetailTest.java)
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultDetailTestBase.java?p2=webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultDetailTestBase.java&p1=webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultDetailTest.java&r1=727359&r2=727473&rev=727473&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultDetailTest.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultDetailTestBase.java Wed Dec 17 11:10:32 2008
@@ -21,20 +21,21 @@
 
 import org.apache.axiom.om.OMAbstractFactory;
 import org.apache.axiom.om.OMElement;
+import org.apache.axiom.om.OMImplementation;
 import org.apache.axiom.om.OMNamespace;
 import org.apache.axiom.om.OMText;
 
 import java.util.Iterator;
 
-public class SOAPFaultDetailTest extends SOAPFaultTestCase {
+public class SOAPFaultDetailTestBase extends SOAPFaultTestCase {
     protected SOAPFaultDetail soap11FaultDetail;
     protected SOAPFaultDetail soap12FaultDetail;
     protected SOAPFaultDetail soap11FaultDetailWithParser;
     protected SOAPFaultDetail soap12FaultDetailWithParser;
     protected OMNamespace omNamespace;
 
-    public SOAPFaultDetailTest(String testName) {
-        super(testName);
+    public SOAPFaultDetailTestBase(OMImplementation omImplementation) {
+        super(omImplementation);
         omNamespace =
                 omFactory.createOMNamespace("http://www.test.org", "test");
     }

Copied: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultNodeTestBase.java (from r727359, webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultNodeTest.java)
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultNodeTestBase.java?p2=webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultNodeTestBase.java&p1=webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultNodeTest.java&r1=727359&r2=727473&rev=727473&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultNodeTest.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultNodeTestBase.java Wed Dec 17 11:10:32 2008
@@ -19,12 +19,14 @@
 
 package org.apache.axiom.soap;
 
-public class SOAPFaultNodeTest extends SOAPFaultTestCase {
+import org.apache.axiom.om.OMImplementation;
+
+public class SOAPFaultNodeTestBase extends SOAPFaultTestCase {
     protected SOAPFaultNode soap12FaultNode;
     protected SOAPFaultNode soap12FaultNodeWithParser;
 
-    public SOAPFaultNodeTest(String testName) {
-        super(testName);
+    public SOAPFaultNodeTestBase(OMImplementation omImplementation) {
+        super(omImplementation);
     }
 
     protected void setUp() throws Exception {

Copied: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultReasonTestBase.java (from r727359, webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultReasonTest.java)
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultReasonTestBase.java?p2=webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultReasonTestBase.java&p1=webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultReasonTest.java&r1=727359&r2=727473&rev=727473&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultReasonTest.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultReasonTestBase.java Wed Dec 17 11:10:32 2008
@@ -19,14 +19,12 @@
 
 package org.apache.axiom.soap;
 
-public class SOAPFaultReasonTest extends SOAPFaultReasonTestCase {
+import org.apache.axiom.om.OMImplementation;
 
-    public SOAPFaultReasonTest(String testName) {
-        super(testName);
-    }
+public class SOAPFaultReasonTestBase extends SOAPFaultReasonTestCase {
 
-    protected void setUp() throws Exception {
-        super.setUp();
+    public SOAPFaultReasonTestBase(OMImplementation omImplementation) {
+        super(omImplementation);
     }
 
     //SOAP 1.1 Fault Reason Test (Programaticaly Created)

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultReasonTestCase.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultReasonTestCase.java?rev=727473&r1=727472&r2=727473&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultReasonTestCase.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultReasonTestCase.java Wed Dec 17 11:10:32 2008
@@ -19,6 +19,8 @@
 
 package org.apache.axiom.soap;
 
+import org.apache.axiom.om.OMImplementation;
+
 public abstract class SOAPFaultReasonTestCase extends SOAPFaultTestCase {
 
     protected SOAPFaultReason soap11FaultReason;
@@ -26,8 +28,8 @@
     protected SOAPFaultReason soap11FaultReasonWithParser;
     protected SOAPFaultReason soap12FaultReasonWithParser;
 
-    public SOAPFaultReasonTestCase(String testName) {
-        super(testName);
+    public SOAPFaultReasonTestCase(OMImplementation omImplementation) {
+        super(omImplementation);
     }
 
     protected void setUp() throws Exception {

Copied: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultRoleTestBase.java (from r727359, webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultRoleTest.java)
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultRoleTestBase.java?p2=webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultRoleTestBase.java&p1=webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultRoleTest.java&r1=727359&r2=727473&rev=727473&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultRoleTest.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultRoleTestBase.java Wed Dec 17 11:10:32 2008
@@ -19,15 +19,17 @@
 
 package org.apache.axiom.soap;
 
-public class SOAPFaultRoleTest extends SOAPFaultTestCase {
+import org.apache.axiom.om.OMImplementation;
+
+public class SOAPFaultRoleTestBase extends SOAPFaultTestCase {
 
     protected SOAPFaultRole soap11FaultRole;
     protected SOAPFaultRole soap12FaultRole;
     protected SOAPFaultRole soap11FaultRoleWithParser;
     protected SOAPFaultRole soap12FaultRoleWithParser;
 
-    public SOAPFaultRoleTest(String testName) {
-        super(testName);
+    public SOAPFaultRoleTestBase(OMImplementation omImplementation) {
+        super(omImplementation);
     }
 
     protected void setUp() throws Exception {

Copied: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultSubCodeTestBase.java (from r727359, webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultSubCodeTest.java)
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultSubCodeTestBase.java?p2=webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultSubCodeTestBase.java&p1=webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultSubCodeTest.java&r1=727359&r2=727473&rev=727473&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultSubCodeTest.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultSubCodeTestBase.java Wed Dec 17 11:10:32 2008
@@ -19,15 +19,13 @@
 
 package org.apache.axiom.soap;
 
+import org.apache.axiom.om.OMImplementation;
 
-public class SOAPFaultSubCodeTest extends SOAPFaultSubCodeTestCase {
 
-    public SOAPFaultSubCodeTest(String testName) {
-        super(testName);
-    }
+public class SOAPFaultSubCodeTestBase extends SOAPFaultSubCodeTestCase {
 
-    protected void setUp() throws Exception {
-        super.setUp();
+    public SOAPFaultSubCodeTestBase(OMImplementation omImplementation) {
+        super(omImplementation);
     }
 
     //SOAP Fault SubCode(In Fault Code) Test (Programaticaly Created)

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultSubCodeTestCase.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultSubCodeTestCase.java?rev=727473&r1=727472&r2=727473&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultSubCodeTestCase.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultSubCodeTestCase.java Wed Dec 17 11:10:32 2008
@@ -19,6 +19,8 @@
 
 package org.apache.axiom.soap;
 
+import org.apache.axiom.om.OMImplementation;
+
 public abstract class SOAPFaultSubCodeTestCase extends SOAPFaultCodeTestCase {
     protected SOAPFaultValue soap11FaultValue;
     protected SOAPFaultValue soap12FaultValueInFaultCode;
@@ -34,8 +36,8 @@
     protected SOAPFaultValue soap12FaultValueInFaultSubCodeWithParser;
     protected SOAPFaultSubCode soap12FaultSubCodeInSubCodeWithParser;
 
-    public SOAPFaultSubCodeTestCase(String testName) {
-        super(testName);
+    public SOAPFaultSubCodeTestCase(OMImplementation omImplementation) {
+        super(omImplementation);
     }
 
     protected void setUp() throws Exception {

Copied: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultTestBase.java (from r727359, webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultTest.java)
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultTestBase.java?p2=webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultTestBase.java&p1=webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultTest.java&r1=727359&r2=727473&rev=727473&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultTest.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultTestBase.java Wed Dec 17 11:10:32 2008
@@ -20,15 +20,12 @@
 package org.apache.axiom.soap;
 
 import org.apache.axiom.om.OMAbstractFactory;
+import org.apache.axiom.om.OMImplementation;
 
-public class SOAPFaultTest extends SOAPFaultTestCase {
+public class SOAPFaultTestBase extends SOAPFaultTestCase {
 
-    public SOAPFaultTest(String testName) {
-        super(testName);
-    }
-
-    protected void setUp() throws Exception {
-        super.setUp();
+    public SOAPFaultTestBase(OMImplementation omImplementation) {
+        super(omImplementation);
     }
 
     //SOAP 1.1 Fault Test (Programaticaly created)-----------------------------------------------------------------------------------
@@ -90,9 +87,14 @@
     }
 
     public void testSOAP11GetNode() {
-        assertTrue(
-                "SOAP 1.1 Fault Test:- After creating a SOAP11Fault, it has a node",
-                soap11Fault.getNode() == null);
+        // TODO: LLOM returns null while DOM throws UnsupportedOperationException
+        try {
+            assertTrue(
+                    "SOAP 1.1 Fault Test:- After creating a SOAP11Fault, it has a node",
+                    soap11Fault.getNode() == null);
+        } catch (UnsupportedOperationException ex) {
+            // This is also fine.
+        }
     }
 
     public void testSOAP11SetRole() {

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultTestCase.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultTestCase.java?rev=727473&r1=727472&r2=727473&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultTestCase.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultTestCase.java Wed Dec 17 11:10:32 2008
@@ -19,7 +19,7 @@
 
 package org.apache.axiom.soap;
 
-import org.apache.axiom.om.OMAbstractFactory;
+import org.apache.axiom.om.OMImplementation;
 
 public abstract class SOAPFaultTestCase extends SOAPBodyTestCase {
     protected SOAPFault soap11Fault;
@@ -27,14 +27,14 @@
     protected SOAPFault soap11FaultWithParser;
     protected SOAPFault soap12FaultWithParser;
 
-    public SOAPFaultTestCase(String testName) {
-        super(testName);
+    public SOAPFaultTestCase(OMImplementation omImplementation) {
+        super(omImplementation);
     }
 
     protected void setUp() throws Exception {
         super.setUp();
-        soap11Fault = OMAbstractFactory.getSOAP11Factory().createSOAPFault(soap11Body);
-        soap12Fault = OMAbstractFactory.getSOAP12Factory().createSOAPFault(soap12Body);
+        soap11Fault = soap11Factory.createSOAPFault(soap11Body);
+        soap12Fault = soap12Factory.createSOAPFault(soap12Body);
         soap11FaultWithParser = soap11BodyWithParser.getFault();
         soap12FaultWithParser = soap12BodyWithParser.getFault();
     }

Copied: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultTextTestBase.java (from r727359, webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultTextTest.java)
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultTextTestBase.java?p2=webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultTextTestBase.java&p1=webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultTextTest.java&r1=727359&r2=727473&rev=727473&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultTextTest.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultTextTestBase.java Wed Dec 17 11:10:32 2008
@@ -20,15 +20,16 @@
 package org.apache.axiom.soap;
 
 import org.apache.axiom.om.OMAttribute;
+import org.apache.axiom.om.OMImplementation;
 
-public class SOAPFaultTextTest extends SOAPFaultReasonTestCase {
+public class SOAPFaultTextTestBase extends SOAPFaultReasonTestCase {
     protected SOAPFaultText soap11FaultText;
     protected SOAPFaultText soap12FaultText;
     protected String soap11FaultTextWithParser;
     protected SOAPFaultText soap12FaultTextWithParser;
 
-    public SOAPFaultTextTest(String testName) {
-        super(testName);
+    public SOAPFaultTextTestBase(OMImplementation omImplementation) {
+        super(omImplementation);
     }
 
     protected void setUp() throws Exception {

Copied: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultValueTestBase.java (from r727359, webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultValueTest.java)
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultValueTestBase.java?p2=webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultValueTestBase.java&p1=webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultValueTest.java&r1=727359&r2=727473&rev=727473&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultValueTest.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultValueTestBase.java Wed Dec 17 11:10:32 2008
@@ -19,10 +19,12 @@
 
 package org.apache.axiom.soap;
 
-public class SOAPFaultValueTest extends SOAPFaultSubCodeTestCase {
+import org.apache.axiom.om.OMImplementation;
 
-    public SOAPFaultValueTest(String testName) {
-        super(testName);
+public class SOAPFaultValueTestBase extends SOAPFaultSubCodeTestCase {
+
+    public SOAPFaultValueTestBase(OMImplementation omImplementation) {
+        super(omImplementation);
     }
 
     protected void setUp() throws Exception {

Copied: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPHeaderBlockTestBase.java (from r727359, webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPHeaderBlockTest.java)
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPHeaderBlockTestBase.java?p2=webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPHeaderBlockTestBase.java&p1=webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPHeaderBlockTest.java&r1=727359&r2=727473&rev=727473&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPHeaderBlockTest.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPHeaderBlockTestBase.java Wed Dec 17 11:10:32 2008
@@ -19,11 +19,12 @@
 
 package org.apache.axiom.soap;
 
+import org.apache.axiom.om.OMImplementation;
 import org.apache.axiom.om.OMNamespace;
 
 import java.util.Iterator;
 
-public class SOAPHeaderBlockTest extends SOAPHeaderTestCase {
+public class SOAPHeaderBlockTestBase extends SOAPHeaderTestCase {
     protected SOAPHeaderBlock soap11HeaderBlock;
     protected SOAPHeaderBlock soap12HeaderBlock;
     protected SOAPHeaderBlock soap11HeaderBlock1WithParser;
@@ -33,8 +34,8 @@
     protected SOAPHeaderBlock soap11HeaderBlock3WithParser;
     protected SOAPHeaderBlock soap12HeaderBlock3WithParser;
 
-    public SOAPHeaderBlockTest(String testName) {
-        super(testName);
+    public SOAPHeaderBlockTestBase(OMImplementation omImplementation) {
+        super(omImplementation);
     }
 
     protected void setUp() throws Exception {

Copied: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPHeaderTestBase.java (from r727359, webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPHeaderTest.java)
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPHeaderTestBase.java?p2=webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPHeaderTestBase.java&p1=webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPHeaderTest.java&r1=727359&r2=727473&rev=727473&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPHeaderTest.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPHeaderTestBase.java Wed Dec 17 11:10:32 2008
@@ -22,15 +22,13 @@
 import java.util.ArrayList;
 import java.util.Iterator;
 
-public class SOAPHeaderTest extends SOAPHeaderTestCase {
-    private static final String ROLE_URI = "http://schemas.xmlsoap.org/soap/envelope/actor/next";
+import org.apache.axiom.om.OMImplementation;
 
-    public SOAPHeaderTest(String testName) {
-        super(testName);
-    }
+public class SOAPHeaderTestBase extends SOAPHeaderTestCase {
+    private static final String ROLE_URI = "http://schemas.xmlsoap.org/soap/envelope/actor/next";
 
-    protected void setUp() throws Exception {
-        super.setUp();
+    public SOAPHeaderTestBase(OMImplementation omImplementation) {
+        super(omImplementation);
     }
 
     //SOAP 1.1 Header Test (Programaticaly Created)--------------------------------------------------------------------------------

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPHeaderTestCase.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPHeaderTestCase.java?rev=727473&r1=727472&r2=727473&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPHeaderTestCase.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPHeaderTestCase.java Wed Dec 17 11:10:32 2008
@@ -19,6 +19,7 @@
 
 package org.apache.axiom.soap;
 
+import org.apache.axiom.om.OMImplementation;
 import org.apache.axiom.om.OMNamespace;
 
 public abstract class SOAPHeaderTestCase extends SOAPTestCase {
@@ -28,8 +29,8 @@
     protected SOAPHeader soap12HeaderWithParser;
     protected OMNamespace namespace;
 
-    public SOAPHeaderTestCase(String testName) {
-        super(testName);
+    public SOAPHeaderTestCase(OMImplementation omImplementation) {
+        super(omImplementation);
         namespace =
                 omFactory.createOMNamespace("http://www.example.org", "test");
     }

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPTestCase.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPTestCase.java?rev=727473&r1=727472&r2=727473&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPTestCase.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPTestCase.java Wed Dec 17 11:10:32 2008
@@ -22,6 +22,7 @@
 import org.apache.axiom.om.AbstractTestCase;
 import org.apache.axiom.om.OMAbstractFactory;
 import org.apache.axiom.om.OMFactory;
+import org.apache.axiom.om.OMImplementation;
 import org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder;
 
 import javax.xml.stream.XMLInputFactory;
@@ -42,12 +43,10 @@
     protected static final String SOAP11_FILE_NAME = "soap/soap11/soap11message.xml";
     protected static final String SOAP12_FILE_NAME = "soap/soap12message.xml";
 
-    /** @param testName  */
-    public SOAPTestCase(String testName) {
-        super(testName);
-        soap11Factory = OMAbstractFactory.getSOAP11Factory();
-        soap12Factory = OMAbstractFactory.getSOAP12Factory();
-        omFactory = OMAbstractFactory.getOMFactory();
+    public SOAPTestCase(OMImplementation omImplementation) {
+        soap11Factory = omImplementation.getSOAP11Factory();
+        soap12Factory = omImplementation.getSOAP12Factory();
+        omFactory = omImplementation.getOMFactory();
     }
 
     protected void setUp() throws Exception {

Added: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPBodyTest.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPBodyTest.java?rev=727473&view=auto
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPBodyTest.java (added)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPBodyTest.java Wed Dec 17 11:10:32 2008
@@ -0,0 +1,29 @@
+/*
+ * 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.soap.impl.dom;
+
+import org.apache.axiom.om.impl.dom.factory.OMDOMImplementation;
+import org.apache.axiom.soap.SOAPBodyTestBase;
+
+public class SOAPBodyTest extends SOAPBodyTestBase {
+    public SOAPBodyTest() {
+        super(new OMDOMImplementation());
+    }
+}

Propchange: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPBodyTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPEnvelopeTest.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPEnvelopeTest.java?rev=727473&view=auto
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPEnvelopeTest.java (added)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPEnvelopeTest.java Wed Dec 17 11:10:32 2008
@@ -0,0 +1,29 @@
+/*
+ * 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.soap.impl.dom;
+
+import org.apache.axiom.om.impl.dom.factory.OMDOMImplementation;
+import org.apache.axiom.soap.SOAPEnvelopeTestBase;
+
+public class SOAPEnvelopeTest extends SOAPEnvelopeTestBase {
+    public SOAPEnvelopeTest() {
+        super(new OMDOMImplementation());
+    }
+}

Propchange: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPEnvelopeTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultCodeTest.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultCodeTest.java?rev=727473&view=auto
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultCodeTest.java (added)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultCodeTest.java Wed Dec 17 11:10:32 2008
@@ -0,0 +1,29 @@
+/*
+ * 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.soap.impl.dom;
+
+import org.apache.axiom.om.impl.dom.factory.OMDOMImplementation;
+import org.apache.axiom.soap.SOAPFaultCodeTestBase;
+
+public class SOAPFaultCodeTest extends SOAPFaultCodeTestBase {
+    public SOAPFaultCodeTest() {
+        super(new OMDOMImplementation());
+    }
+}

Propchange: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultCodeTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultDetailTest.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultDetailTest.java?rev=727473&view=auto
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultDetailTest.java (added)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultDetailTest.java Wed Dec 17 11:10:32 2008
@@ -0,0 +1,29 @@
+/*
+ * 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.soap.impl.dom;
+
+import org.apache.axiom.om.impl.dom.factory.OMDOMImplementation;
+import org.apache.axiom.soap.SOAPFaultDetailTestBase;
+
+public class SOAPFaultDetailTest extends SOAPFaultDetailTestBase {
+    public SOAPFaultDetailTest() {
+        super(new OMDOMImplementation());
+    }
+}

Propchange: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultDetailTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultReasonTest.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultReasonTest.java?rev=727473&view=auto
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultReasonTest.java (added)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultReasonTest.java Wed Dec 17 11:10:32 2008
@@ -0,0 +1,29 @@
+/*
+ * 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.soap.impl.dom;
+
+import org.apache.axiom.om.impl.dom.factory.OMDOMImplementation;
+import org.apache.axiom.soap.SOAPFaultReasonTestBase;
+
+public class SOAPFaultReasonTest extends SOAPFaultReasonTestBase {
+    public SOAPFaultReasonTest() {
+        super(new OMDOMImplementation());
+    }
+}

Propchange: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultReasonTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultRoleTest.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultRoleTest.java?rev=727473&view=auto
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultRoleTest.java (added)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultRoleTest.java Wed Dec 17 11:10:32 2008
@@ -0,0 +1,29 @@
+/*
+ * 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.soap.impl.dom;
+
+import org.apache.axiom.om.impl.dom.factory.OMDOMImplementation;
+import org.apache.axiom.soap.SOAPFaultRoleTestBase;
+
+public class SOAPFaultRoleTest extends SOAPFaultRoleTestBase {
+    public SOAPFaultRoleTest() {
+        super(new OMDOMImplementation());
+    }
+}

Propchange: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultRoleTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultSubCodeTest.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultSubCodeTest.java?rev=727473&view=auto
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultSubCodeTest.java (added)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultSubCodeTest.java Wed Dec 17 11:10:32 2008
@@ -0,0 +1,29 @@
+/*
+ * 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.soap.impl.dom;
+
+import org.apache.axiom.om.impl.dom.factory.OMDOMImplementation;
+import org.apache.axiom.soap.SOAPFaultSubCodeTestBase;
+
+public class SOAPFaultSubCodeTest extends SOAPFaultSubCodeTestBase {
+    public SOAPFaultSubCodeTest() {
+        super(new OMDOMImplementation());
+    }
+}

Propchange: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultSubCodeTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultTest.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultTest.java?rev=727473&view=auto
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultTest.java (added)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultTest.java Wed Dec 17 11:10:32 2008
@@ -0,0 +1,29 @@
+/*
+ * 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.soap.impl.dom;
+
+import org.apache.axiom.om.impl.dom.factory.OMDOMImplementation;
+import org.apache.axiom.soap.SOAPFaultTestBase;
+
+public class SOAPFaultTest extends SOAPFaultTestBase {
+    public SOAPFaultTest() {
+        super(new OMDOMImplementation());
+    }
+}

Propchange: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultTextTest.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultTextTest.java?rev=727473&view=auto
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultTextTest.java (added)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultTextTest.java Wed Dec 17 11:10:32 2008
@@ -0,0 +1,29 @@
+/*
+ * 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.soap.impl.dom;
+
+import org.apache.axiom.om.impl.dom.factory.OMDOMImplementation;
+import org.apache.axiom.soap.SOAPFaultTextTestBase;
+
+public class SOAPFaultTextTest extends SOAPFaultTextTestBase {
+    public SOAPFaultTextTest() {
+        super(new OMDOMImplementation());
+    }
+}

Propchange: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultTextTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultValueTest.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultValueTest.java?rev=727473&view=auto
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultValueTest.java (added)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultValueTest.java Wed Dec 17 11:10:32 2008
@@ -0,0 +1,29 @@
+/*
+ * 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.soap.impl.dom;
+
+import org.apache.axiom.om.impl.dom.factory.OMDOMImplementation;
+import org.apache.axiom.soap.SOAPFaultValueTestBase;
+
+public class SOAPFaultValueTest extends SOAPFaultValueTestBase {
+    public SOAPFaultValueTest() {
+        super(new OMDOMImplementation());
+    }
+}

Propchange: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPFaultValueTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPHeaderTest.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPHeaderTest.java?rev=727473&view=auto
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPHeaderTest.java (added)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPHeaderTest.java Wed Dec 17 11:10:32 2008
@@ -0,0 +1,29 @@
+/*
+ * 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.soap.impl.dom;
+
+import org.apache.axiom.om.impl.dom.factory.OMDOMImplementation;
+import org.apache.axiom.soap.SOAPHeaderTestBase;
+
+public class SOAPHeaderTest extends SOAPHeaderTestBase {
+    public SOAPHeaderTest() {
+        super(new OMDOMImplementation());
+    }
+}

Propchange: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/dom/SOAPHeaderTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/llom/SOAPBodyTest.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/llom/SOAPBodyTest.java?rev=727473&view=auto
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/llom/SOAPBodyTest.java (added)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/llom/SOAPBodyTest.java Wed Dec 17 11:10:32 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.soap.impl.llom;
+
+import org.apache.axiom.om.OMException;
+import org.apache.axiom.om.impl.llom.factory.OMLinkedListImplementation;
+import org.apache.axiom.soap.SOAPBodyTestBase;
+
+public class SOAPBodyTest extends SOAPBodyTestBase {
+    public SOAPBodyTest() {
+        super(new OMLinkedListImplementation());
+    }
+
+    public void testSOAPBodyDetachment() {
+        try {
+            soap11Body.detach();
+            fail("Detachment of SOAP Body is not allowed !!");
+        } catch (OMException e) {
+            assertTrue(true);
+        }
+
+        try {
+            soap12Body.detach();
+            fail("Detachment of SOAP Body is not allowed !!");
+        } catch (OMException e) {
+            assertTrue(true);
+        }
+    }
+}

Propchange: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/llom/SOAPBodyTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/llom/SOAPDiscardTest.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/llom/SOAPDiscardTest.java?rev=727473&view=auto
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/llom/SOAPDiscardTest.java (added)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/llom/SOAPDiscardTest.java Wed Dec 17 11:10:32 2008
@@ -0,0 +1,29 @@
+/*
+ * 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.soap.impl.llom;
+
+import org.apache.axiom.om.impl.llom.factory.OMLinkedListImplementation;
+import org.apache.axiom.soap.SOAPDiscardTestBase;
+
+public class SOAPDiscardTest extends SOAPDiscardTestBase {
+    public SOAPDiscardTest() {
+        super(new OMLinkedListImplementation());
+    }
+}

Propchange: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/llom/SOAPDiscardTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/llom/SOAPEnvelopeTest.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/llom/SOAPEnvelopeTest.java?rev=727473&view=auto
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/llom/SOAPEnvelopeTest.java (added)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/llom/SOAPEnvelopeTest.java Wed Dec 17 11:10:32 2008
@@ -0,0 +1,29 @@
+/*
+ * 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.soap.impl.llom;
+
+import org.apache.axiom.om.impl.llom.factory.OMLinkedListImplementation;
+import org.apache.axiom.soap.SOAPEnvelopeTestBase;
+
+public class SOAPEnvelopeTest extends SOAPEnvelopeTestBase {
+    public SOAPEnvelopeTest() {
+        super(new OMLinkedListImplementation());
+    }
+}

Propchange: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/llom/SOAPEnvelopeTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/llom/SOAPFaultCodeTest.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/llom/SOAPFaultCodeTest.java?rev=727473&view=auto
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/llom/SOAPFaultCodeTest.java (added)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/llom/SOAPFaultCodeTest.java Wed Dec 17 11:10:32 2008
@@ -0,0 +1,29 @@
+/*
+ * 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.soap.impl.llom;
+
+import org.apache.axiom.om.impl.llom.factory.OMLinkedListImplementation;
+import org.apache.axiom.soap.SOAPFaultCodeTestBase;
+
+public class SOAPFaultCodeTest extends SOAPFaultCodeTestBase {
+    public SOAPFaultCodeTest() {
+        super(new OMLinkedListImplementation());
+    }
+}

Propchange: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/impl/llom/SOAPFaultCodeTest.java
------------------------------------------------------------------------------
    svn:eol-style = native