axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r289289 [131/134] - in /webservices/axis2/trunk/java: ./ etc/ modules/addressing/ modules/addressing/src/META-INF/ modules/addressing/src/org/apache/axis2/handlers/addressing/ modules/addressing/test-resources/ modules/addressing/test/org/a...
Date Thu, 15 Sep 2005 19:07:03 GMT
Modified: webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPBodyTestCase.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPBodyTestCase.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPBodyTestCase.java (original)
+++ webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPBodyTestCase.java Thu Sep 15 11:52:11 2005
@@ -1,40 +1,40 @@
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.axis2.soap;
-
-public class SOAPBodyTestCase extends SOAPTestCase {
-    protected SOAPBody soap11Body;
-    protected SOAPBody soap12Body;
-
-    protected SOAPBody soap11BodyWithParser;
-    protected SOAPBody soap12BodyWithParser;
-
-    public SOAPBodyTestCase(String testName) {
-        super(testName);
-
-    }
-
-    protected void setUp() throws Exception {
-        super.setUp();
-        soap11Body = soap11Factory.createSOAPBody(soap11Envelope);
-        soap12Body = soap12Factory.createSOAPBody(soap12Envelope);
-
-        soap11BodyWithParser = soap11EnvelopeWithParser.getBody();
-        soap12BodyWithParser = soap12EnvelopeWithParser.getBody();
-    }
-
-}
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.axis2.soap;
+
+public class SOAPBodyTestCase extends SOAPTestCase {
+    protected SOAPBody soap11Body;
+    protected SOAPBody soap12Body;
+
+    protected SOAPBody soap11BodyWithParser;
+    protected SOAPBody soap12BodyWithParser;
+
+    public SOAPBodyTestCase(String testName) {
+        super(testName);
+
+    }
+
+    protected void setUp() throws Exception {
+        super.setUp();
+        soap11Body = soap11Factory.createSOAPBody(soap11Envelope);
+        soap12Body = soap12Factory.createSOAPBody(soap12Envelope);
+
+        soap11BodyWithParser = soap11EnvelopeWithParser.getBody();
+        soap12BodyWithParser = soap12EnvelopeWithParser.getBody();
+    }
+
+}

Propchange: webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPBodyTestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPEnvelopeTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPEnvelopeTest.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPEnvelopeTest.java (original)
+++ webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPEnvelopeTest.java Thu Sep 15 11:52:11 2005
@@ -1,110 +1,110 @@
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.axis2.soap;
-
-import org.apache.axis2.soap.impl.llom.SOAPConstants;
-
-public class SOAPEnvelopeTest extends SOAPTestCase {
-    protected SOAPEnvelope soap11Envelope;
-    protected SOAPEnvelope soap12Envelope;
-
-    public SOAPEnvelopeTest(String testName) {
-        super(testName);
-        soap11Envelope = soap11Factory.getDefaultEnvelope();
-        // Toss in a header to make sure the SOAPHeader gets set up
-        soap11Envelope.addHeader("http://ns", "dummy");
-        soap12Envelope = soap12Factory.getDefaultEnvelope();
-        // Toss in a header to make sure the SOAPHeader gets set up
-        soap12Envelope.addHeader("http://ns", "dummy");
-    }
-
-    //SOAP 1.1 Envelope Test (Programaticaly Created)-----------------------------------------------
-    public void testSOAP11GetHeader() {
-        SOAPHeader header = soap11Envelope.getHeader();
-        assertTrue("SOAP 1.1 Header Test : - Header local name mismatch",
-                header.getLocalName().equals(SOAPConstants.HEADER_LOCAL_NAME));
-        assertTrue("SOAP 1.1 Header Test : - Header namespace mismatch",
-                header.getNamespace().getName().equals(
-                        SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI));
-    }
-
-    public void testSOAP11GetBody() {
-        SOAPBody body = soap11Envelope.getBody();
-        assertTrue("SOAP 1.1 Body Test : - Body local name mismatch",
-                body.getLocalName().equals(SOAPConstants.BODY_LOCAL_NAME));
-        assertTrue("SOAP 1.1 Body Test : - Body namespace mismatch",
-                body.getNamespace().getName().equals(
-                        SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI));
-    }
-
-    //SOAP 1.2 Envelope Test (Programaticaly Created)-------------------------------------------------
-    public void testSOAP12GetHeader() {
-        SOAPHeader header = soap12Envelope.getHeader();
-        assertTrue("SOAP 1.2 Header Test : - Header local name mismatch",
-                header.getLocalName().equals(SOAPConstants.HEADER_LOCAL_NAME));
-        assertTrue("SOAP 1.2 Header Test : - Header namespace mismatch",
-                header.getNamespace().getName().equals(
-                        SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
-    }
-
-    public void testSOAP12GetBody() {
-        SOAPBody body = soap12Envelope.getBody();
-        assertTrue("SOAP 1.2 Body Test : - Body local name mismatch",
-                body.getLocalName().equals(SOAPConstants.BODY_LOCAL_NAME));
-        assertTrue("SOAP 1.2 Body Test : - Body namespace mismatch",
-                body.getNamespace().getName().equals(
-                        SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
-    }
-
-    //SOAP 1.1 Envelope Test (With Parser)-----------------------------------------------------------------
-    public void testSOAP11GetHeaderWithParser() {
-        SOAPHeader header = soap11EnvelopeWithParser.getHeader();
-        assertTrue("SOAP 1.1 Header Test : - Header local name mismatch",
-                header.getLocalName().equals(SOAPConstants.HEADER_LOCAL_NAME));
-        assertTrue("SOAP 1.1 Header Test : - Header namespace mismatch",
-                header.getNamespace().getName().equals(
-                        SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI));
-    }
-
-    public void testSOAP11GetBodyWithParser() {
-        SOAPBody body = soap11EnvelopeWithParser.getBody();
-        assertTrue("SOAP 1.1 Body Test : - Body local name mismatch",
-                body.getLocalName().equals(SOAPConstants.BODY_LOCAL_NAME));
-        assertTrue("SOAP 1.1 Body Test : - Body namespace mismatch",
-                body.getNamespace().getName().equals(
-                        SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI));
-    }
-
-    //SOAP 1.2 Envelope Test (With Parser)--------------------------------------------------------------------
-    public void testSOAP12GetHeaderWithParser() {
-        SOAPHeader header = soap12EnvelopeWithParser.getHeader();
-        assertTrue("SOAP 1.2 Header Test : - Header local name mismatch",
-                header.getLocalName().equals(SOAPConstants.HEADER_LOCAL_NAME));
-        assertTrue("SOAP 1.2 Header Test : - Header namespace mismatch",
-                header.getNamespace().getName().equals(
-                        SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
-    }
-
-    public void testSOAP12GetBodyWithParser() {
-        SOAPBody body = soap12EnvelopeWithParser.getBody();
-        assertTrue("SOAP 1.2 Body Test : - Body local name mismatch",
-                body.getLocalName().equals(SOAPConstants.BODY_LOCAL_NAME));
-        assertTrue("SOAP 1.2 Body Test : - Body namespace mismatch",
-                body.getNamespace().getName().equals(
-                        SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
-    }
-}
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.axis2.soap;
+
+import org.apache.axis2.soap.impl.llom.SOAPConstants;
+
+public class SOAPEnvelopeTest extends SOAPTestCase {
+    protected SOAPEnvelope soap11Envelope;
+    protected SOAPEnvelope soap12Envelope;
+
+    public SOAPEnvelopeTest(String testName) {
+        super(testName);
+        soap11Envelope = soap11Factory.getDefaultEnvelope();
+        // Toss in a header to make sure the SOAPHeader gets set up
+        soap11Envelope.addHeader("http://ns", "dummy");
+        soap12Envelope = soap12Factory.getDefaultEnvelope();
+        // Toss in a header to make sure the SOAPHeader gets set up
+        soap12Envelope.addHeader("http://ns", "dummy");
+    }
+
+    //SOAP 1.1 Envelope Test (Programaticaly Created)-----------------------------------------------
+    public void testSOAP11GetHeader() {
+        SOAPHeader header = soap11Envelope.getHeader();
+        assertTrue("SOAP 1.1 Header Test : - Header local name mismatch",
+                header.getLocalName().equals(SOAPConstants.HEADER_LOCAL_NAME));
+        assertTrue("SOAP 1.1 Header Test : - Header namespace mismatch",
+                header.getNamespace().getName().equals(
+                        SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+    }
+
+    public void testSOAP11GetBody() {
+        SOAPBody body = soap11Envelope.getBody();
+        assertTrue("SOAP 1.1 Body Test : - Body local name mismatch",
+                body.getLocalName().equals(SOAPConstants.BODY_LOCAL_NAME));
+        assertTrue("SOAP 1.1 Body Test : - Body namespace mismatch",
+                body.getNamespace().getName().equals(
+                        SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+    }
+
+    //SOAP 1.2 Envelope Test (Programaticaly Created)-------------------------------------------------
+    public void testSOAP12GetHeader() {
+        SOAPHeader header = soap12Envelope.getHeader();
+        assertTrue("SOAP 1.2 Header Test : - Header local name mismatch",
+                header.getLocalName().equals(SOAPConstants.HEADER_LOCAL_NAME));
+        assertTrue("SOAP 1.2 Header Test : - Header namespace mismatch",
+                header.getNamespace().getName().equals(
+                        SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+    }
+
+    public void testSOAP12GetBody() {
+        SOAPBody body = soap12Envelope.getBody();
+        assertTrue("SOAP 1.2 Body Test : - Body local name mismatch",
+                body.getLocalName().equals(SOAPConstants.BODY_LOCAL_NAME));
+        assertTrue("SOAP 1.2 Body Test : - Body namespace mismatch",
+                body.getNamespace().getName().equals(
+                        SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+    }
+
+    //SOAP 1.1 Envelope Test (With Parser)-----------------------------------------------------------------
+    public void testSOAP11GetHeaderWithParser() {
+        SOAPHeader header = soap11EnvelopeWithParser.getHeader();
+        assertTrue("SOAP 1.1 Header Test : - Header local name mismatch",
+                header.getLocalName().equals(SOAPConstants.HEADER_LOCAL_NAME));
+        assertTrue("SOAP 1.1 Header Test : - Header namespace mismatch",
+                header.getNamespace().getName().equals(
+                        SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+    }
+
+    public void testSOAP11GetBodyWithParser() {
+        SOAPBody body = soap11EnvelopeWithParser.getBody();
+        assertTrue("SOAP 1.1 Body Test : - Body local name mismatch",
+                body.getLocalName().equals(SOAPConstants.BODY_LOCAL_NAME));
+        assertTrue("SOAP 1.1 Body Test : - Body namespace mismatch",
+                body.getNamespace().getName().equals(
+                        SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+    }
+
+    //SOAP 1.2 Envelope Test (With Parser)--------------------------------------------------------------------
+    public void testSOAP12GetHeaderWithParser() {
+        SOAPHeader header = soap12EnvelopeWithParser.getHeader();
+        assertTrue("SOAP 1.2 Header Test : - Header local name mismatch",
+                header.getLocalName().equals(SOAPConstants.HEADER_LOCAL_NAME));
+        assertTrue("SOAP 1.2 Header Test : - Header namespace mismatch",
+                header.getNamespace().getName().equals(
+                        SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+    }
+
+    public void testSOAP12GetBodyWithParser() {
+        SOAPBody body = soap12EnvelopeWithParser.getBody();
+        assertTrue("SOAP 1.2 Body Test : - Body local name mismatch",
+                body.getLocalName().equals(SOAPConstants.BODY_LOCAL_NAME));
+        assertTrue("SOAP 1.2 Body Test : - Body namespace mismatch",
+                body.getNamespace().getName().equals(
+                        SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+    }
+}

Propchange: webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPEnvelopeTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultCodeTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultCodeTest.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultCodeTest.java (original)
+++ webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultCodeTest.java Thu Sep 15 11:52:11 2005
@@ -1,164 +1,164 @@
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.axis2.soap;
-
-import org.apache.axis2.soap.impl.llom.SOAPProcessingException;
-
-public class SOAPFaultCodeTest extends SOAPFaultCodeTestCase {
-
-    public SOAPFaultCodeTest(String testName) {
-        super(testName);
-    }
-
-    protected void setUp() throws Exception {
-        super.setUp();
-    }
-
-    //SOAP 1.1 Fault Code Test (Programaticaly Created)
-    public void testSOAP11SetValue() {
-        soap11FaultCode.setValue(
-                soap11Factory.createSOAPFaultValue(soap11FaultCode));
-        assertFalse(
-                "SOAP 1.1 Fault Code Test :- After calling setValue method, getValue method returns null",
-                soap11FaultCode.getValue() == null);
-        try {
-            soap11FaultCode.setValue(
-                    soap12Factory.createSOAPFaultValue(soap12FaultCode));
-            fail("SOAP12FaultValue should not be inserted to SOAP11FaultCode");
-        } catch (SOAPProcessingException e) {
-            assertTrue(true);
-        }
-
-    }
-
-    public void testSOAP11GetValue() {
-        assertTrue(
-                "SOAP 1.1 Fault Code Test :- After creating soapfaultcode, it has a value",
-                soap11FaultCode.getValue() == null);
-        soap11FaultCode.setValue(
-                soap11Factory.createSOAPFaultValue(soap11FaultCode));
-        assertFalse(
-                "SOAP 1.1 Fault Code Test :- After calling setValue method, getValue method returns null",
-                soap11FaultCode.getValue() == null);
-    }
-
-    //SOAP 1.2 Fault Code Test (Programaticaly Created)
-    public void testSOAP12SetValue() {
-        soap12FaultCode.setValue(
-                soap12Factory.createSOAPFaultValue(soap12FaultCode));
-        assertFalse(
-                "SOAP 1.2 Fault Code Test :- After calling setValue method, getValue method returns null",
-                soap12FaultCode.getValue() == null);
-        try {
-            soap12FaultCode.setValue(
-                    soap11Factory.createSOAPFaultValue(soap11FaultCode));
-            fail("SOAP11FaultValue should not be inserted to SOAP12FaultCode");
-        } catch (SOAPProcessingException e) {
-            assertTrue(true);
-        }
-
-        try {
-            soap12FaultCode.setValue(
-                    soap12Factory.createSOAPFaultValue(
-                            soap12Factory.createSOAPFaultSubCode(
-                                    soap12FaultCode)));
-        } catch (Exception e) {
-            fail(
-                    "SOAP 1.2 Fault Code Test :- When calling setValue method, parent of value element mismatch");
-        }
-    }
-
-    public void testSOAP12GetValue() {
-        assertTrue(
-                "SOAP 1.2 Fault Code Test :- After creating soapfaultcode, it has a value",
-                soap12FaultCode.getValue() == null);
-        soap12FaultCode.setValue(
-                soap12Factory.createSOAPFaultValue(soap12FaultCode));
-        assertFalse(
-                "SOAP 1.2 Fault Code Test :- After calling setValue method, getValue method returns null",
-                soap12FaultCode.getValue() == null);
-    }
-
-    public void testSOAP12SetSubCode() {
-        soap12FaultCode.setSubCode(
-                soap12Factory.createSOAPFaultSubCode(soap12FaultCode));
-        assertFalse(
-                "SOAP 1.2 Fault Code Test :- After calling setSubCode method, getSubCode method returns null",
-                soap12FaultCode.getSubCode() == null);
-        try {
-            soap12FaultCode.setSubCode(
-                    soap11Factory.createSOAPFaultSubCode(soap11FaultCode));
-            fail(
-                    "SOAP11FaultSubCode should not be inserted to SOAP12FaultCode");
-        } catch (SOAPProcessingException e) {
-            assertTrue(true);
-        }
-
-        try {
-            soap12FaultCode.setSubCode(
-                    soap12Factory.createSOAPFaultSubCode(
-                            soap12Factory.createSOAPFaultSubCode(
-                                    soap12FaultCode)));
-        } catch (Exception e) {
-            fail(
-                    "SOAP 1.2 Fault Code Test :- When calling setSubCode method, parent of subcode element mismatch");
-        }
-    }
-
-    public void testSOAP12GetSubCode() {
-        assertTrue(
-                "SOAP 1.2 Fault Code Test :- After creating soapfaultcode, it has a subcode",
-                soap12FaultCode.getSubCode() == null);
-        soap12FaultCode.setSubCode(
-                soap12Factory.createSOAPFaultSubCode(soap12FaultCode));
-        assertFalse(
-                "SOAP 1.2 Fault Code Test :- After calling setSubCode method, getSubCode method returns null",
-                soap12FaultCode.getSubCode() == null);
-    }
-
-    //SOAP 1.1 Fault Code Test (With Parser)
-    public void testSOAP11GetValueWithParser() {
-        assertFalse(
-                "SOAP 1.1 Fault Code Test with parser : - getValue method returns null",
-                soap11FaultCodeWithParser.getValue() == null);
-        assertTrue(
-                "SOAP 1.1 Fault Code Test with parser : - Value local name mismatch",
-                soap11FaultCodeWithParser.getValue().getLocalName().equals(
-                        SOAP12Constants.SOAP_FAULT_VALUE_LOCAL_NAME));
-    }
-
-    //SOAP 1.2 Fault Code Test (With Parser)
-    public void testSOAP12GetValueWithParser() {
-        assertFalse(
-                "SOAP 1.2 Fault Code Test with parser : - getValue method returns null",
-                soap12FaultCodeWithParser.getValue() == null);
-        assertTrue(
-                "SOAP 1.2 Fault Code Test with parser : - Value local name mismatch",
-                soap12FaultCodeWithParser.getValue().getLocalName().equals(
-                        SOAP12Constants.SOAP_FAULT_VALUE_LOCAL_NAME));
-    }
-
-    public void testSOAP12GetSubCodeWithParser() {
-        assertFalse(
-                "SOAP 1.2 Fault Code Test with parser :- getSubCode method returns null",
-                soap12FaultCodeWithParser.getSubCode() == null);
-        assertTrue(
-                "SOAP 1.2 Fault Code Test with parser : - subcode local name mismatch",
-                soap12FaultCodeWithParser.getSubCode().getLocalName().equals(
-                        SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME));
-    }
-}
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.axis2.soap;
+
+import org.apache.axis2.soap.impl.llom.SOAPProcessingException;
+
+public class SOAPFaultCodeTest extends SOAPFaultCodeTestCase {
+
+    public SOAPFaultCodeTest(String testName) {
+        super(testName);
+    }
+
+    protected void setUp() throws Exception {
+        super.setUp();
+    }
+
+    //SOAP 1.1 Fault Code Test (Programaticaly Created)
+    public void testSOAP11SetValue() {
+        soap11FaultCode.setValue(
+                soap11Factory.createSOAPFaultValue(soap11FaultCode));
+        assertFalse(
+                "SOAP 1.1 Fault Code Test :- After calling setValue method, getValue method returns null",
+                soap11FaultCode.getValue() == null);
+        try {
+            soap11FaultCode.setValue(
+                    soap12Factory.createSOAPFaultValue(soap12FaultCode));
+            fail("SOAP12FaultValue should not be inserted to SOAP11FaultCode");
+        } catch (SOAPProcessingException e) {
+            assertTrue(true);
+        }
+
+    }
+
+    public void testSOAP11GetValue() {
+        assertTrue(
+                "SOAP 1.1 Fault Code Test :- After creating soapfaultcode, it has a value",
+                soap11FaultCode.getValue() == null);
+        soap11FaultCode.setValue(
+                soap11Factory.createSOAPFaultValue(soap11FaultCode));
+        assertFalse(
+                "SOAP 1.1 Fault Code Test :- After calling setValue method, getValue method returns null",
+                soap11FaultCode.getValue() == null);
+    }
+
+    //SOAP 1.2 Fault Code Test (Programaticaly Created)
+    public void testSOAP12SetValue() {
+        soap12FaultCode.setValue(
+                soap12Factory.createSOAPFaultValue(soap12FaultCode));
+        assertFalse(
+                "SOAP 1.2 Fault Code Test :- After calling setValue method, getValue method returns null",
+                soap12FaultCode.getValue() == null);
+        try {
+            soap12FaultCode.setValue(
+                    soap11Factory.createSOAPFaultValue(soap11FaultCode));
+            fail("SOAP11FaultValue should not be inserted to SOAP12FaultCode");
+        } catch (SOAPProcessingException e) {
+            assertTrue(true);
+        }
+
+        try {
+            soap12FaultCode.setValue(
+                    soap12Factory.createSOAPFaultValue(
+                            soap12Factory.createSOAPFaultSubCode(
+                                    soap12FaultCode)));
+        } catch (Exception e) {
+            fail(
+                    "SOAP 1.2 Fault Code Test :- When calling setValue method, parent of value element mismatch");
+        }
+    }
+
+    public void testSOAP12GetValue() {
+        assertTrue(
+                "SOAP 1.2 Fault Code Test :- After creating soapfaultcode, it has a value",
+                soap12FaultCode.getValue() == null);
+        soap12FaultCode.setValue(
+                soap12Factory.createSOAPFaultValue(soap12FaultCode));
+        assertFalse(
+                "SOAP 1.2 Fault Code Test :- After calling setValue method, getValue method returns null",
+                soap12FaultCode.getValue() == null);
+    }
+
+    public void testSOAP12SetSubCode() {
+        soap12FaultCode.setSubCode(
+                soap12Factory.createSOAPFaultSubCode(soap12FaultCode));
+        assertFalse(
+                "SOAP 1.2 Fault Code Test :- After calling setSubCode method, getSubCode method returns null",
+                soap12FaultCode.getSubCode() == null);
+        try {
+            soap12FaultCode.setSubCode(
+                    soap11Factory.createSOAPFaultSubCode(soap11FaultCode));
+            fail(
+                    "SOAP11FaultSubCode should not be inserted to SOAP12FaultCode");
+        } catch (SOAPProcessingException e) {
+            assertTrue(true);
+        }
+
+        try {
+            soap12FaultCode.setSubCode(
+                    soap12Factory.createSOAPFaultSubCode(
+                            soap12Factory.createSOAPFaultSubCode(
+                                    soap12FaultCode)));
+        } catch (Exception e) {
+            fail(
+                    "SOAP 1.2 Fault Code Test :- When calling setSubCode method, parent of subcode element mismatch");
+        }
+    }
+
+    public void testSOAP12GetSubCode() {
+        assertTrue(
+                "SOAP 1.2 Fault Code Test :- After creating soapfaultcode, it has a subcode",
+                soap12FaultCode.getSubCode() == null);
+        soap12FaultCode.setSubCode(
+                soap12Factory.createSOAPFaultSubCode(soap12FaultCode));
+        assertFalse(
+                "SOAP 1.2 Fault Code Test :- After calling setSubCode method, getSubCode method returns null",
+                soap12FaultCode.getSubCode() == null);
+    }
+
+    //SOAP 1.1 Fault Code Test (With Parser)
+    public void testSOAP11GetValueWithParser() {
+        assertFalse(
+                "SOAP 1.1 Fault Code Test with parser : - getValue method returns null",
+                soap11FaultCodeWithParser.getValue() == null);
+        assertTrue(
+                "SOAP 1.1 Fault Code Test with parser : - Value local name mismatch",
+                soap11FaultCodeWithParser.getValue().getLocalName().equals(
+                        SOAP12Constants.SOAP_FAULT_VALUE_LOCAL_NAME));
+    }
+
+    //SOAP 1.2 Fault Code Test (With Parser)
+    public void testSOAP12GetValueWithParser() {
+        assertFalse(
+                "SOAP 1.2 Fault Code Test with parser : - getValue method returns null",
+                soap12FaultCodeWithParser.getValue() == null);
+        assertTrue(
+                "SOAP 1.2 Fault Code Test with parser : - Value local name mismatch",
+                soap12FaultCodeWithParser.getValue().getLocalName().equals(
+                        SOAP12Constants.SOAP_FAULT_VALUE_LOCAL_NAME));
+    }
+
+    public void testSOAP12GetSubCodeWithParser() {
+        assertFalse(
+                "SOAP 1.2 Fault Code Test with parser :- getSubCode method returns null",
+                soap12FaultCodeWithParser.getSubCode() == null);
+        assertTrue(
+                "SOAP 1.2 Fault Code Test with parser : - subcode local name mismatch",
+                soap12FaultCodeWithParser.getSubCode().getLocalName().equals(
+                        SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME));
+    }
+}

Propchange: webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultCodeTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultCodeTestCase.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultCodeTestCase.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultCodeTestCase.java (original)
+++ webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultCodeTestCase.java Thu Sep 15 11:52:11 2005
@@ -1,41 +1,41 @@
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.axis2.soap;
-
-public class SOAPFaultCodeTestCase extends SOAPFaultTestCase {
-
-    protected SOAPFaultCode soap11FaultCode;
-    protected SOAPFaultCode soap12FaultCode;
-
-    protected SOAPFaultCode soap11FaultCodeWithParser;
-    protected SOAPFaultCode soap12FaultCodeWithParser;
-
-    public SOAPFaultCodeTestCase(String testName) {
-        super(testName);
-    }
-
-    protected void setUp() throws Exception {
-        super.setUp();
-
-        soap11FaultCode = soap11Factory.createSOAPFaultCode(soap11Fault);
-        soap12FaultCode = soap12Factory.createSOAPFaultCode(soap12Fault);
-
-        soap11FaultCodeWithParser = soap11FaultWithParser.getCode();
-        soap12FaultCodeWithParser = soap12FaultWithParser.getCode();
-    }
-
-}
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.axis2.soap;
+
+public class SOAPFaultCodeTestCase extends SOAPFaultTestCase {
+
+    protected SOAPFaultCode soap11FaultCode;
+    protected SOAPFaultCode soap12FaultCode;
+
+    protected SOAPFaultCode soap11FaultCodeWithParser;
+    protected SOAPFaultCode soap12FaultCodeWithParser;
+
+    public SOAPFaultCodeTestCase(String testName) {
+        super(testName);
+    }
+
+    protected void setUp() throws Exception {
+        super.setUp();
+
+        soap11FaultCode = soap11Factory.createSOAPFaultCode(soap11Fault);
+        soap12FaultCode = soap12Factory.createSOAPFaultCode(soap12Fault);
+
+        soap11FaultCodeWithParser = soap11FaultWithParser.getCode();
+        soap12FaultCodeWithParser = soap12FaultWithParser.getCode();
+    }
+
+}

Propchange: webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultCodeTestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultDetailTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultDetailTest.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultDetailTest.java (original)
+++ webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultDetailTest.java Thu Sep 15 11:52:11 2005
@@ -1,223 +1,223 @@
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.axis2.soap;
-
-import org.apache.axis2.om.OMElement;
-import org.apache.axis2.om.OMNamespace;
-import org.apache.axis2.om.OMText;
-
-import java.util.Iterator;
-
-public class SOAPFaultDetailTest extends SOAPFaultTestCase {
-    protected SOAPFaultDetail soap11FaultDetail;
-    protected SOAPFaultDetail soap12FaultDetail;
-    protected SOAPFaultDetail soap11FaultDetailWithParser;
-    protected SOAPFaultDetail soap12FaultDetailWithParser;
-    protected OMNamespace omNamespace;
-
-    public SOAPFaultDetailTest(String testName) {
-        super(testName);
-        omNamespace =
-                omFactory.createOMNamespace("http://www.test.org", "test");
-    }
-
-    protected void setUp() throws Exception {
-        super.setUp();
-        soap11FaultDetail = soap11Factory.createSOAPFaultDetail(soap11Fault);
-        soap12FaultDetail = soap12Factory.createSOAPFaultDetail(soap12Fault);
-        soap11FaultDetailWithParser = soap11FaultWithParser.getDetail();
-        soap12FaultDetailWithParser = soap12FaultWithParser.getDetail();
-    }
-
-    //SOAP 1.1 Fault Detail Test (Programaticaly Created)
-    public void testSOAP11AddDetailEntry() {
-        soap11FaultDetail.addDetailEntry(
-                omFactory.createOMElement("DetailEntry1", omNamespace));
-        soap11FaultDetail.addDetailEntry(
-                omFactory.createOMElement("DetailEntry2", omNamespace));
-        Iterator iterator = soap11FaultDetail.getAllDetailEntries();
-        OMElement detailEntry1 = (OMElement) iterator.next();
-        assertFalse(
-                "SOAP 1.1 Fault Detail Test : - After calling addDetailEntry method twice, getAllDetailEntries method returns empty iterator",
-                detailEntry1 == null);
-        assertTrue(
-                "SOAP 1.1 Fault Detail Test : - detailEntry1 local name mismatch",
-                detailEntry1.getLocalName().equals("DetailEntry1"));
-        assertTrue(
-                "SOAP 1.1 Fault Detail Test : - detailEntry1 namespace uri mismatch",
-                detailEntry1.getNamespace().getName().equals(
-                        "http://www.test.org"));
-        OMElement detailEntry2 = (OMElement) iterator.next();
-        assertFalse(
-                "SOAP 1.1 Fault Detail Test : - After calling addDetailEntry method twice, getAllDetailEntries method returns an iterator with only one object",
-                detailEntry2 == null);
-        assertTrue(
-                "SOAP 1.1 Fault Detail Test : - detailEntry2 local name mismatch",
-                detailEntry2.getLocalName().equals("DetailEntry2"));
-        assertTrue(
-                "SOAP 1.1 Fault Detail Test : - detailEntry2 namespace uri mismatch",
-                detailEntry2.getNamespace().getName().equals(
-                        "http://www.test.org"));
-        assertTrue(
-                "SOAP 1.1 Fault Detail Test : - After calling addDetailEntry method twice, getAllDetailEntries method returns an iterator with three objects",
-                iterator.next() == null);
-    }
-
-    public void testSOAP11GetAllDetailEntries() {
-        Iterator iterator = soap11FaultDetail.getAllDetailEntries();
-        assertTrue(
-                "SOAP 1.1 Fault Detail Test : - After creating SOAP11FaultDetail element, it has DetailEntries",
-                iterator.next() == null);
-        soap11FaultDetail.addDetailEntry(
-                omFactory.createOMElement("DetailEntry", omNamespace));
-        iterator = soap11FaultDetail.getAllDetailEntries();
-        OMElement detailEntry = (OMElement) iterator.next();
-        assertFalse(
-                "SOAP 1.1 Fault Detail Test : - After calling addDetailEntry method, getAllDetailEntries method returns empty iterator",
-                detailEntry == null);
-        assertTrue(
-                "SOAP 1.1 Fault Detail Test : - detailEntry local name mismatch",
-                detailEntry.getLocalName().equals("DetailEntry"));
-        assertTrue(
-                "SOAP 1.1 Fault Detail Test : - detailEntry namespace uri mismatch",
-                detailEntry.getNamespace().getName().equals(
-                        "http://www.test.org"));
-        assertTrue(
-                "SOAP 1.1 Fault Detail Test : - After calling addDetailEntry method once, getAllDetailEntries method returns an iterator with two objects",
-                iterator.next() == null);
-    }
-
-    //SOAP 1.2 Fault Detail Test (Programaticaly Created)
-    public void testSOAP12AddDetailEntry() {
-        soap12FaultDetail.addDetailEntry(
-                omFactory.createOMElement("DetailEntry1", omNamespace));
-        soap12FaultDetail.addDetailEntry(
-                omFactory.createOMElement("DetailEntry2", omNamespace));
-        Iterator iterator = soap12FaultDetail.getAllDetailEntries();
-        OMElement detailEntry1 = (OMElement) iterator.next();
-        assertFalse(
-                "SOAP 1.2 Fault Detail Test : - After calling addDetailEntry method twice, getAllDetailEntries method returns empty iterator",
-                detailEntry1 == null);
-        assertTrue(
-                "SOAP 1.2 Fault Detail Test : - detailEntry1 local name mismatch",
-                detailEntry1.getLocalName().equals("DetailEntry1"));
-        assertTrue(
-                "SOAP 1.2 Fault Detail Test : - detailEntry1 namespace uri mismatch",
-                detailEntry1.getNamespace().getName().equals(
-                        "http://www.test.org"));
-        OMElement detailEntry2 = (OMElement) iterator.next();
-        assertFalse(
-                "SOAP 1.2 Fault Detail Test : - After calling addDetailEntry method twice, getAllDetailEntries method returns an iterator with only one object",
-                detailEntry2 == null);
-        assertTrue(
-                "SOAP 1.2 Fault Detail Test : - detailEntry2 local name mismatch",
-                detailEntry2.getLocalName().equals("DetailEntry2"));
-        assertTrue(
-                "SOAP 1.2 Fault Detail Test : - detailEntry2 namespace uri mismatch",
-                detailEntry2.getNamespace().getName().equals(
-                        "http://www.test.org"));
-        assertTrue(
-                "SOAP 1.2 Fault Detail Test : - After calling addDetailEntry method twice, getAllDetailEntries method returns an iterator with three objects",
-                iterator.next() == null);
-    }
-
-    public void testSOAP12GetAllDetailEntries() {
-        Iterator iterator = soap12FaultDetail.getAllDetailEntries();
-        assertTrue(
-                "SOAP 1.2 Fault Detail Test : - After creating SOAP11FaultDetail element, it has DetailEntries",
-                iterator.next() == null);
-        soap12FaultDetail.addDetailEntry(
-                omFactory.createOMElement("DetailEntry", omNamespace));
-        iterator = soap12FaultDetail.getAllDetailEntries();
-        OMElement detailEntry = (OMElement) iterator.next();
-        assertFalse(
-                "SOAP 1.2 Fault Detail Test : - After calling addDetailEntry method, getAllDetailEntries method returns empty iterator",
-                detailEntry == null);
-        assertTrue(
-                "SOAP 1.2 Fault Detail Test : - detailEntry local name mismatch",
-                detailEntry.getLocalName().equals("DetailEntry"));
-        assertTrue(
-                "SOAP 1.2 Fault Detail Test : - detailEntry namespace uri mismatch",
-                detailEntry.getNamespace().getName().equals(
-                        "http://www.test.org"));
-        assertTrue(
-                "SOAP 1.2 Fault Detail Test : - After calling addDetailEntry method once, getAllDetailEntries method returns an iterator with two objects",
-                iterator.next() == null);
-    }
-
-    //SOAP 1.1 Fault Detail Test (With Parser)
-    public void testSOAP11GetAllDetailEntriesWithParser() {
-        Iterator iterator = soap11FaultDetailWithParser.getAllDetailEntries();
-        OMText textEntry = (OMText) iterator.next();
-        assertFalse(
-                "SOAP 1.1 Fault Detail Test With Parser : - getAllDetailEntries method returns empty iterator",
-                textEntry == null);
-        assertTrue(
-                "SOAP 1.1 Fault Detail Test With Parser : - text value mismatch",
-                textEntry.getText().trim().equals("Details of error"));
-        OMElement detailEntry1 = (OMElement) iterator.next();
-        assertFalse(
-                "SOAP 1.1 Fault Detail Test With Parser : - getAllDetailEntries method returns an itrator without detail entries",
-                detailEntry1 == null);
-        assertTrue(
-                "SOAP 1.1 Fault Detail Test With Parser : - detailEntry1 localname mismatch",
-                detailEntry1.getLocalName().equals("MaxTime"));
-        iterator.next();
-        OMElement detailEntry2 = (OMElement) iterator.next();
-        assertFalse(
-                "SOAP 1.1 Fault Detail Test With Parser : - getAllDetailEntries method returns an itrator with only one detail entries",
-                detailEntry2 == null);
-        assertTrue(
-                "SOAP 1.1 Fault Detail Test With Parser : - detailEntry2 localname mismatch",
-                detailEntry2.getLocalName().equals("AveTime"));
-        iterator.next();
-        assertTrue(
-                "SOAP 1.1 Fault Detail Test With Parser : - getAllDetailEntries method returns an itrator with more than two detail entries",
-                iterator.next() == null);
-    }
-
-    //SOAP 1.2 Fault Detail Test (With Parser)
-    public void testSOAP12GetAllDetailEntriesWithParser() {
-        Iterator iterator = soap12FaultDetailWithParser.getAllDetailEntries();
-        OMText textEntry = (OMText) iterator.next();
-        assertFalse(
-                "SOAP 1.2 Fault Detail Test With Parser : - getAllDetailEntries method returns empty iterator",
-                textEntry == null);
-        assertTrue(
-                "SOAP 1.2 Fault Detail Test With Parser : - text value mismatch",
-                textEntry.getText().trim().equals("Details of error"));
-        OMElement detailEntry1 = (OMElement) iterator.next();
-        assertFalse(
-                "SOAP 1.2 Fault Detail Test With Parser : - getAllDetailEntries method returns an itrator without detail entries",
-                detailEntry1 == null);
-        assertTrue(
-                "SOAP 1.2 Fault Detail Test With Parser : - detailEntry1 localname mismatch",
-                detailEntry1.getLocalName().equals("MaxTime"));
-        iterator.next();
-        OMElement detailEntry2 = (OMElement) iterator.next();
-        assertFalse(
-                "SOAP 1.2 Fault Detail Test With Parser : - getAllDetailEntries method returns an itrator with only one detail entries",
-                detailEntry2 == null);
-        assertTrue(
-                "SOAP 1.2 Fault Detail Test With Parser : - detailEntry2 localname mismatch",
-                detailEntry2.getLocalName().equals("AveTime"));
-        iterator.next();
-        assertTrue(
-                "SOAP 1.2 Fault Detail Test With Parser : - getAllDetailEntries method returns an itrator with more than two detail entries",
-                iterator.next() == null);
-    }
-}
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.axis2.soap;
+
+import org.apache.axis2.om.OMElement;
+import org.apache.axis2.om.OMNamespace;
+import org.apache.axis2.om.OMText;
+
+import java.util.Iterator;
+
+public class SOAPFaultDetailTest extends SOAPFaultTestCase {
+    protected SOAPFaultDetail soap11FaultDetail;
+    protected SOAPFaultDetail soap12FaultDetail;
+    protected SOAPFaultDetail soap11FaultDetailWithParser;
+    protected SOAPFaultDetail soap12FaultDetailWithParser;
+    protected OMNamespace omNamespace;
+
+    public SOAPFaultDetailTest(String testName) {
+        super(testName);
+        omNamespace =
+                omFactory.createOMNamespace("http://www.test.org", "test");
+    }
+
+    protected void setUp() throws Exception {
+        super.setUp();
+        soap11FaultDetail = soap11Factory.createSOAPFaultDetail(soap11Fault);
+        soap12FaultDetail = soap12Factory.createSOAPFaultDetail(soap12Fault);
+        soap11FaultDetailWithParser = soap11FaultWithParser.getDetail();
+        soap12FaultDetailWithParser = soap12FaultWithParser.getDetail();
+    }
+
+    //SOAP 1.1 Fault Detail Test (Programaticaly Created)
+    public void testSOAP11AddDetailEntry() {
+        soap11FaultDetail.addDetailEntry(
+                omFactory.createOMElement("DetailEntry1", omNamespace));
+        soap11FaultDetail.addDetailEntry(
+                omFactory.createOMElement("DetailEntry2", omNamespace));
+        Iterator iterator = soap11FaultDetail.getAllDetailEntries();
+        OMElement detailEntry1 = (OMElement) iterator.next();
+        assertFalse(
+                "SOAP 1.1 Fault Detail Test : - After calling addDetailEntry method twice, getAllDetailEntries method returns empty iterator",
+                detailEntry1 == null);
+        assertTrue(
+                "SOAP 1.1 Fault Detail Test : - detailEntry1 local name mismatch",
+                detailEntry1.getLocalName().equals("DetailEntry1"));
+        assertTrue(
+                "SOAP 1.1 Fault Detail Test : - detailEntry1 namespace uri mismatch",
+                detailEntry1.getNamespace().getName().equals(
+                        "http://www.test.org"));
+        OMElement detailEntry2 = (OMElement) iterator.next();
+        assertFalse(
+                "SOAP 1.1 Fault Detail Test : - After calling addDetailEntry method twice, getAllDetailEntries method returns an iterator with only one object",
+                detailEntry2 == null);
+        assertTrue(
+                "SOAP 1.1 Fault Detail Test : - detailEntry2 local name mismatch",
+                detailEntry2.getLocalName().equals("DetailEntry2"));
+        assertTrue(
+                "SOAP 1.1 Fault Detail Test : - detailEntry2 namespace uri mismatch",
+                detailEntry2.getNamespace().getName().equals(
+                        "http://www.test.org"));
+        assertTrue(
+                "SOAP 1.1 Fault Detail Test : - After calling addDetailEntry method twice, getAllDetailEntries method returns an iterator with three objects",
+                iterator.next() == null);
+    }
+
+    public void testSOAP11GetAllDetailEntries() {
+        Iterator iterator = soap11FaultDetail.getAllDetailEntries();
+        assertTrue(
+                "SOAP 1.1 Fault Detail Test : - After creating SOAP11FaultDetail element, it has DetailEntries",
+                iterator.next() == null);
+        soap11FaultDetail.addDetailEntry(
+                omFactory.createOMElement("DetailEntry", omNamespace));
+        iterator = soap11FaultDetail.getAllDetailEntries();
+        OMElement detailEntry = (OMElement) iterator.next();
+        assertFalse(
+                "SOAP 1.1 Fault Detail Test : - After calling addDetailEntry method, getAllDetailEntries method returns empty iterator",
+                detailEntry == null);
+        assertTrue(
+                "SOAP 1.1 Fault Detail Test : - detailEntry local name mismatch",
+                detailEntry.getLocalName().equals("DetailEntry"));
+        assertTrue(
+                "SOAP 1.1 Fault Detail Test : - detailEntry namespace uri mismatch",
+                detailEntry.getNamespace().getName().equals(
+                        "http://www.test.org"));
+        assertTrue(
+                "SOAP 1.1 Fault Detail Test : - After calling addDetailEntry method once, getAllDetailEntries method returns an iterator with two objects",
+                iterator.next() == null);
+    }
+
+    //SOAP 1.2 Fault Detail Test (Programaticaly Created)
+    public void testSOAP12AddDetailEntry() {
+        soap12FaultDetail.addDetailEntry(
+                omFactory.createOMElement("DetailEntry1", omNamespace));
+        soap12FaultDetail.addDetailEntry(
+                omFactory.createOMElement("DetailEntry2", omNamespace));
+        Iterator iterator = soap12FaultDetail.getAllDetailEntries();
+        OMElement detailEntry1 = (OMElement) iterator.next();
+        assertFalse(
+                "SOAP 1.2 Fault Detail Test : - After calling addDetailEntry method twice, getAllDetailEntries method returns empty iterator",
+                detailEntry1 == null);
+        assertTrue(
+                "SOAP 1.2 Fault Detail Test : - detailEntry1 local name mismatch",
+                detailEntry1.getLocalName().equals("DetailEntry1"));
+        assertTrue(
+                "SOAP 1.2 Fault Detail Test : - detailEntry1 namespace uri mismatch",
+                detailEntry1.getNamespace().getName().equals(
+                        "http://www.test.org"));
+        OMElement detailEntry2 = (OMElement) iterator.next();
+        assertFalse(
+                "SOAP 1.2 Fault Detail Test : - After calling addDetailEntry method twice, getAllDetailEntries method returns an iterator with only one object",
+                detailEntry2 == null);
+        assertTrue(
+                "SOAP 1.2 Fault Detail Test : - detailEntry2 local name mismatch",
+                detailEntry2.getLocalName().equals("DetailEntry2"));
+        assertTrue(
+                "SOAP 1.2 Fault Detail Test : - detailEntry2 namespace uri mismatch",
+                detailEntry2.getNamespace().getName().equals(
+                        "http://www.test.org"));
+        assertTrue(
+                "SOAP 1.2 Fault Detail Test : - After calling addDetailEntry method twice, getAllDetailEntries method returns an iterator with three objects",
+                iterator.next() == null);
+    }
+
+    public void testSOAP12GetAllDetailEntries() {
+        Iterator iterator = soap12FaultDetail.getAllDetailEntries();
+        assertTrue(
+                "SOAP 1.2 Fault Detail Test : - After creating SOAP11FaultDetail element, it has DetailEntries",
+                iterator.next() == null);
+        soap12FaultDetail.addDetailEntry(
+                omFactory.createOMElement("DetailEntry", omNamespace));
+        iterator = soap12FaultDetail.getAllDetailEntries();
+        OMElement detailEntry = (OMElement) iterator.next();
+        assertFalse(
+                "SOAP 1.2 Fault Detail Test : - After calling addDetailEntry method, getAllDetailEntries method returns empty iterator",
+                detailEntry == null);
+        assertTrue(
+                "SOAP 1.2 Fault Detail Test : - detailEntry local name mismatch",
+                detailEntry.getLocalName().equals("DetailEntry"));
+        assertTrue(
+                "SOAP 1.2 Fault Detail Test : - detailEntry namespace uri mismatch",
+                detailEntry.getNamespace().getName().equals(
+                        "http://www.test.org"));
+        assertTrue(
+                "SOAP 1.2 Fault Detail Test : - After calling addDetailEntry method once, getAllDetailEntries method returns an iterator with two objects",
+                iterator.next() == null);
+    }
+
+    //SOAP 1.1 Fault Detail Test (With Parser)
+    public void testSOAP11GetAllDetailEntriesWithParser() {
+        Iterator iterator = soap11FaultDetailWithParser.getAllDetailEntries();
+        OMText textEntry = (OMText) iterator.next();
+        assertFalse(
+                "SOAP 1.1 Fault Detail Test With Parser : - getAllDetailEntries method returns empty iterator",
+                textEntry == null);
+        assertTrue(
+                "SOAP 1.1 Fault Detail Test With Parser : - text value mismatch",
+                textEntry.getText().trim().equals("Details of error"));
+        OMElement detailEntry1 = (OMElement) iterator.next();
+        assertFalse(
+                "SOAP 1.1 Fault Detail Test With Parser : - getAllDetailEntries method returns an itrator without detail entries",
+                detailEntry1 == null);
+        assertTrue(
+                "SOAP 1.1 Fault Detail Test With Parser : - detailEntry1 localname mismatch",
+                detailEntry1.getLocalName().equals("MaxTime"));
+        iterator.next();
+        OMElement detailEntry2 = (OMElement) iterator.next();
+        assertFalse(
+                "SOAP 1.1 Fault Detail Test With Parser : - getAllDetailEntries method returns an itrator with only one detail entries",
+                detailEntry2 == null);
+        assertTrue(
+                "SOAP 1.1 Fault Detail Test With Parser : - detailEntry2 localname mismatch",
+                detailEntry2.getLocalName().equals("AveTime"));
+        iterator.next();
+        assertTrue(
+                "SOAP 1.1 Fault Detail Test With Parser : - getAllDetailEntries method returns an itrator with more than two detail entries",
+                iterator.next() == null);
+    }
+
+    //SOAP 1.2 Fault Detail Test (With Parser)
+    public void testSOAP12GetAllDetailEntriesWithParser() {
+        Iterator iterator = soap12FaultDetailWithParser.getAllDetailEntries();
+        OMText textEntry = (OMText) iterator.next();
+        assertFalse(
+                "SOAP 1.2 Fault Detail Test With Parser : - getAllDetailEntries method returns empty iterator",
+                textEntry == null);
+        assertTrue(
+                "SOAP 1.2 Fault Detail Test With Parser : - text value mismatch",
+                textEntry.getText().trim().equals("Details of error"));
+        OMElement detailEntry1 = (OMElement) iterator.next();
+        assertFalse(
+                "SOAP 1.2 Fault Detail Test With Parser : - getAllDetailEntries method returns an itrator without detail entries",
+                detailEntry1 == null);
+        assertTrue(
+                "SOAP 1.2 Fault Detail Test With Parser : - detailEntry1 localname mismatch",
+                detailEntry1.getLocalName().equals("MaxTime"));
+        iterator.next();
+        OMElement detailEntry2 = (OMElement) iterator.next();
+        assertFalse(
+                "SOAP 1.2 Fault Detail Test With Parser : - getAllDetailEntries method returns an itrator with only one detail entries",
+                detailEntry2 == null);
+        assertTrue(
+                "SOAP 1.2 Fault Detail Test With Parser : - detailEntry2 localname mismatch",
+                detailEntry2.getLocalName().equals("AveTime"));
+        iterator.next();
+        assertTrue(
+                "SOAP 1.2 Fault Detail Test With Parser : - getAllDetailEntries method returns an itrator with more than two detail entries",
+                iterator.next() == null);
+    }
+}

Propchange: webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultDetailTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultNodeTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultNodeTest.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultNodeTest.java (original)
+++ webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultNodeTest.java Thu Sep 15 11:52:11 2005
@@ -1,78 +1,78 @@
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.axis2.soap;
-
-public class SOAPFaultNodeTest extends SOAPFaultTestCase {
-    protected SOAPFaultNode soap11FaultNode;
-    protected SOAPFaultNode soap12FaultNode;
-    protected SOAPFaultNode soap12FaultNodeWithParser;
-
-    public SOAPFaultNodeTest(String testName) {
-        super(testName);
-    }
-
-    protected void setUp() throws Exception {
-        super.setUp();
-        soap11FaultNode = soap11Factory.createSOAPFaultNode(soap11Fault);
-        soap12FaultNode = soap12Factory.createSOAPFaultNode(soap12Fault);
-        soap12FaultNodeWithParser = soap12FaultWithParser.getNode();
-    }
-
-    //SOAP 1.1 Fault Node Test (Programaticaly Created)
-    public void testSOAP11SetNodeValue() {
-        soap11FaultNode.setNodeValue("This is only a test");
-        assertTrue(
-                "SOAP 1.1 Fault Node Test : - After calling setNodeValue method, getNodeValue method returns incorrect value",
-                soap11FaultNode.getNodeValue().equals("This is only a test"));
-    }
-
-    public void testSOAP11GetNodeValue() {
-        assertTrue(
-                "SOAP 1.1 Fault Node Test : - After creating SOAPFaultNode, it has a value",
-                soap11FaultNode.getNodeValue().equals(""));
-        soap11FaultNode.setNodeValue("This is only a test");
-        assertTrue(
-                "SOAP 1.1 Fault Node Test : - After calling setNodeValue method, getNodeValue method returns incorrect value",
-                soap11FaultNode.getNodeValue().equals("This is only a test"));
-    }
-
-    //SOAP 1.2 Fault Node Test (Programaticaly Created)
-    public void testSOAP12SetNodeValue() {
-        soap12FaultNode.setNodeValue("This is only a test");
-        assertTrue(
-                "SOAP 1.2 Fault Node Test : - After calling setNodeValue method, getNodeValue method returns incorrect value",
-                soap12FaultNode.getNodeValue().equals("This is only a test"));
-    }
-
-    public void testSOAP12GetNodeValue() {
-        assertTrue(
-                "SOAP 1.2 Fault Node Test : - After creating SOAPFaultNode, it has a value",
-                soap12FaultNode.getNodeValue().equals(""));
-        soap12FaultNode.setNodeValue("This is only a test");
-        assertTrue(
-                "SOAP 1.2 Fault Node Test : - After calling setNodeValue method, getNodeValue method returns incorrect value",
-                soap12FaultNode.getNodeValue().equals("This is only a test"));
-    }
-
-    //SOAP 1.2 Fault Node Test (With Parser)
-    public void testSOAP12GetNodeValueWithParser() {
-        assertTrue(
-                "SOAP 1.2 Fault Node Test With Parser : - getNodeValue method returns incorrect value",
-                soap12FaultNodeWithParser.getNodeValue().trim().equals(
-                        "http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver"));
-    }
-}
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.axis2.soap;
+
+public class SOAPFaultNodeTest extends SOAPFaultTestCase {
+    protected SOAPFaultNode soap11FaultNode;
+    protected SOAPFaultNode soap12FaultNode;
+    protected SOAPFaultNode soap12FaultNodeWithParser;
+
+    public SOAPFaultNodeTest(String testName) {
+        super(testName);
+    }
+
+    protected void setUp() throws Exception {
+        super.setUp();
+        soap11FaultNode = soap11Factory.createSOAPFaultNode(soap11Fault);
+        soap12FaultNode = soap12Factory.createSOAPFaultNode(soap12Fault);
+        soap12FaultNodeWithParser = soap12FaultWithParser.getNode();
+    }
+
+    //SOAP 1.1 Fault Node Test (Programaticaly Created)
+    public void testSOAP11SetNodeValue() {
+        soap11FaultNode.setNodeValue("This is only a test");
+        assertTrue(
+                "SOAP 1.1 Fault Node Test : - After calling setNodeValue method, getNodeValue method returns incorrect value",
+                soap11FaultNode.getNodeValue().equals("This is only a test"));
+    }
+
+    public void testSOAP11GetNodeValue() {
+        assertTrue(
+                "SOAP 1.1 Fault Node Test : - After creating SOAPFaultNode, it has a value",
+                soap11FaultNode.getNodeValue().equals(""));
+        soap11FaultNode.setNodeValue("This is only a test");
+        assertTrue(
+                "SOAP 1.1 Fault Node Test : - After calling setNodeValue method, getNodeValue method returns incorrect value",
+                soap11FaultNode.getNodeValue().equals("This is only a test"));
+    }
+
+    //SOAP 1.2 Fault Node Test (Programaticaly Created)
+    public void testSOAP12SetNodeValue() {
+        soap12FaultNode.setNodeValue("This is only a test");
+        assertTrue(
+                "SOAP 1.2 Fault Node Test : - After calling setNodeValue method, getNodeValue method returns incorrect value",
+                soap12FaultNode.getNodeValue().equals("This is only a test"));
+    }
+
+    public void testSOAP12GetNodeValue() {
+        assertTrue(
+                "SOAP 1.2 Fault Node Test : - After creating SOAPFaultNode, it has a value",
+                soap12FaultNode.getNodeValue().equals(""));
+        soap12FaultNode.setNodeValue("This is only a test");
+        assertTrue(
+                "SOAP 1.2 Fault Node Test : - After calling setNodeValue method, getNodeValue method returns incorrect value",
+                soap12FaultNode.getNodeValue().equals("This is only a test"));
+    }
+
+    //SOAP 1.2 Fault Node Test (With Parser)
+    public void testSOAP12GetNodeValueWithParser() {
+        assertTrue(
+                "SOAP 1.2 Fault Node Test With Parser : - getNodeValue method returns incorrect value",
+                soap12FaultNodeWithParser.getNodeValue().trim().equals(
+                        "http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver"));
+    }
+}

Propchange: webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultNodeTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultReasonTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultReasonTest.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultReasonTest.java (original)
+++ webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultReasonTest.java Thu Sep 15 11:52:11 2005
@@ -1,97 +1,97 @@
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.axis2.soap;
-
-public class SOAPFaultReasonTest extends SOAPFaultReasonTestCase {
-
-    public SOAPFaultReasonTest(String testName) {
-        super(testName);
-    }
-
-    protected void setUp() throws Exception {
-        super.setUp();
-    }
-
-    //SOAP 1.1 Fault Reason Test (Programaticaly Created)
-    public void testSOAP11SetSOAPText() {
-        soap11FaultReason.setSOAPText(
-                soap11Factory.createSOAPFaultText(soap11FaultReason));
-        assertFalse(
-                "SOAP 1.1 FaultReason Test : - After calling setSOAPText, getSOAPText returns null",
-                soap11FaultReason.getSOAPText() == null);
-        try {
-            soap11FaultReason.setSOAPText(
-                    soap12Factory.createSOAPFaultText(soap12FaultReason));
-            fail("SOAP12FaultText should not be added to SOAP11FaultReason");
-
-        } catch (Exception e) {
-            assertTrue(true);
-        }
-    }
-
-    public void testSOAP11GetSOAPText() {
-        assertTrue(
-                "SOAP 1.1 FaultReason Test : - After creating SOAP11FaultReason, it has a SOAPFaultText",
-                soap11FaultReason.getSOAPText() == null);
-        soap11FaultReason.setSOAPText(
-                soap11Factory.createSOAPFaultText(soap11FaultReason));
-        assertFalse(
-                "SOAP 1.1 FaultReason Test : - After calling setSOAPText, getSOAPText returns null",
-                soap11FaultReason.getSOAPText() == null);
-    }
-
-    //SOAP 1.2 Fault Reason Test (Programaticaly Created)
-    public void testSOAP12SetSOAPText() {
-        soap12FaultReason.setSOAPText(
-                soap12Factory.createSOAPFaultText(soap12FaultReason));
-        assertFalse(
-                "SOAP 1.2 FaultReason Test : - After calling setSOAPText, getSOAPText returns null",
-                soap12FaultReason.getSOAPText() == null);
-        try {
-            soap12FaultReason.setSOAPText(
-                    soap11Factory.createSOAPFaultText(soap11FaultReason));
-            fail("SOAP11FaultText should not be added to SOAP12FaultReason");
-        } catch (Exception e) {
-            assertTrue(true);
-        }
-    }
-
-    public void testSOAP12GetSOAPText() {
-        assertTrue(
-                "SOAP 1.2 FaultReason Test : - After creating SOAP12FaultReason, it has a SOAPFaultText",
-                soap12FaultReason.getSOAPText() == null);
-        soap12FaultReason.setSOAPText(
-                soap12Factory.createSOAPFaultText(soap12FaultReason));
-        assertFalse(
-                "SOAP 1.2 FaultReason Test : - After calling setSOAPText, getSOAPText returns null",
-                soap12FaultReason.getSOAPText() == null);
-    }
-
-    //SOAP 1.1 Fault Reason Test (With Parser)
-    public void testSOAP11GetSOAPTextWithParser() {
-        assertFalse(
-                "SOAP 1.1 FaultReason Test With Parser : - getSOAPText method returns null",
-                soap11FaultReasonWithParser.getSOAPText() == null);
-    }
-
-    //SOAP 1.2 Fault Reason Test (With Parser)
-    public void testSOAP12GetSOAPTextWithParser() {
-        assertFalse(
-                "SOAP 1.2 FaultReason Test With Parser : - getSOAPText method returns null",
-                soap12FaultReasonWithParser.getSOAPText() == null);
-    }
-}
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.axis2.soap;
+
+public class SOAPFaultReasonTest extends SOAPFaultReasonTestCase {
+
+    public SOAPFaultReasonTest(String testName) {
+        super(testName);
+    }
+
+    protected void setUp() throws Exception {
+        super.setUp();
+    }
+
+    //SOAP 1.1 Fault Reason Test (Programaticaly Created)
+    public void testSOAP11SetSOAPText() {
+        soap11FaultReason.setSOAPText(
+                soap11Factory.createSOAPFaultText(soap11FaultReason));
+        assertFalse(
+                "SOAP 1.1 FaultReason Test : - After calling setSOAPText, getSOAPText returns null",
+                soap11FaultReason.getSOAPText() == null);
+        try {
+            soap11FaultReason.setSOAPText(
+                    soap12Factory.createSOAPFaultText(soap12FaultReason));
+            fail("SOAP12FaultText should not be added to SOAP11FaultReason");
+
+        } catch (Exception e) {
+            assertTrue(true);
+        }
+    }
+
+    public void testSOAP11GetSOAPText() {
+        assertTrue(
+                "SOAP 1.1 FaultReason Test : - After creating SOAP11FaultReason, it has a SOAPFaultText",
+                soap11FaultReason.getSOAPText() == null);
+        soap11FaultReason.setSOAPText(
+                soap11Factory.createSOAPFaultText(soap11FaultReason));
+        assertFalse(
+                "SOAP 1.1 FaultReason Test : - After calling setSOAPText, getSOAPText returns null",
+                soap11FaultReason.getSOAPText() == null);
+    }
+
+    //SOAP 1.2 Fault Reason Test (Programaticaly Created)
+    public void testSOAP12SetSOAPText() {
+        soap12FaultReason.setSOAPText(
+                soap12Factory.createSOAPFaultText(soap12FaultReason));
+        assertFalse(
+                "SOAP 1.2 FaultReason Test : - After calling setSOAPText, getSOAPText returns null",
+                soap12FaultReason.getSOAPText() == null);
+        try {
+            soap12FaultReason.setSOAPText(
+                    soap11Factory.createSOAPFaultText(soap11FaultReason));
+            fail("SOAP11FaultText should not be added to SOAP12FaultReason");
+        } catch (Exception e) {
+            assertTrue(true);
+        }
+    }
+
+    public void testSOAP12GetSOAPText() {
+        assertTrue(
+                "SOAP 1.2 FaultReason Test : - After creating SOAP12FaultReason, it has a SOAPFaultText",
+                soap12FaultReason.getSOAPText() == null);
+        soap12FaultReason.setSOAPText(
+                soap12Factory.createSOAPFaultText(soap12FaultReason));
+        assertFalse(
+                "SOAP 1.2 FaultReason Test : - After calling setSOAPText, getSOAPText returns null",
+                soap12FaultReason.getSOAPText() == null);
+    }
+
+    //SOAP 1.1 Fault Reason Test (With Parser)
+    public void testSOAP11GetSOAPTextWithParser() {
+        assertFalse(
+                "SOAP 1.1 FaultReason Test With Parser : - getSOAPText method returns null",
+                soap11FaultReasonWithParser.getSOAPText() == null);
+    }
+
+    //SOAP 1.2 Fault Reason Test (With Parser)
+    public void testSOAP12GetSOAPTextWithParser() {
+        assertFalse(
+                "SOAP 1.2 FaultReason Test With Parser : - getSOAPText method returns null",
+                soap12FaultReasonWithParser.getSOAPText() == null);
+    }
+}

Propchange: webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultReasonTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultReasonTestCase.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultReasonTestCase.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultReasonTestCase.java (original)
+++ webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultReasonTestCase.java Thu Sep 15 11:52:11 2005
@@ -1,38 +1,38 @@
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.axis2.soap;
-
-public class SOAPFaultReasonTestCase extends SOAPFaultTestCase {
-
-    protected SOAPFaultReason soap11FaultReason;
-    protected SOAPFaultReason soap12FaultReason;
-    protected SOAPFaultReason soap11FaultReasonWithParser;
-    protected SOAPFaultReason soap12FaultReasonWithParser;
-
-    public SOAPFaultReasonTestCase(String testName) {
-        super(testName);
-    }
-
-    protected void setUp() throws Exception {
-        super.setUp();
-        soap11FaultReason = soap11Factory.createSOAPFaultReason(soap11Fault);
-        soap12FaultReason = soap12Factory.createSOAPFaultReason(soap12Fault);
-        soap11FaultReasonWithParser = soap11FaultWithParser.getReason();
-        soap12FaultReasonWithParser = soap12FaultWithParser.getReason();
-    }
-
-}
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.axis2.soap;
+
+public class SOAPFaultReasonTestCase extends SOAPFaultTestCase {
+
+    protected SOAPFaultReason soap11FaultReason;
+    protected SOAPFaultReason soap12FaultReason;
+    protected SOAPFaultReason soap11FaultReasonWithParser;
+    protected SOAPFaultReason soap12FaultReasonWithParser;
+
+    public SOAPFaultReasonTestCase(String testName) {
+        super(testName);
+    }
+
+    protected void setUp() throws Exception {
+        super.setUp();
+        soap11FaultReason = soap11Factory.createSOAPFaultReason(soap11Fault);
+        soap12FaultReason = soap12Factory.createSOAPFaultReason(soap12Fault);
+        soap11FaultReasonWithParser = soap11FaultWithParser.getReason();
+        soap12FaultReasonWithParser = soap12FaultWithParser.getReason();
+    }
+
+}

Propchange: webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultReasonTestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultRoleTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultRoleTest.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultRoleTest.java (original)
+++ webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultRoleTest.java Thu Sep 15 11:52:11 2005
@@ -1,89 +1,89 @@
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.axis2.soap;
-
-public class SOAPFaultRoleTest extends SOAPFaultTestCase {
-
-    protected SOAPFaultRole soap11FaultRole;
-    protected SOAPFaultRole soap12FaultRole;
-    protected SOAPFaultRole soap11FaultRoleWithParser;
-    protected SOAPFaultRole soap12FaultRoleWithParser;
-
-    public SOAPFaultRoleTest(String testName) {
-        super(testName);
-    }
-
-    protected void setUp() throws Exception {
-        super.setUp();
-        soap11FaultRole = soap11Factory.createSOAPFaultRole(soap11Fault);
-        soap12FaultRole = soap12Factory.createSOAPFaultRole(soap12Fault);
-        soap11FaultRoleWithParser = soap11FaultWithParser.getRole();
-        soap12FaultRoleWithParser = soap12FaultWithParser.getRole();
-    }
-
-    //SOAP 1.1 Fault Role Test (Programaticaly Created)
-    public void testSOAP11SetRoleValue() {
-        soap11FaultRole.setRoleValue("This is only a test");
-        assertTrue(
-                "SOAP 1.1 Fault Role Test : - After calling setRoleValue method, getRoleValue method returns incorrect value",
-                soap11FaultRole.getRoleValue().trim().equals("This is only a test"));
-    }
-
-    public void testSOAP11GetRoleValue() {
-        assertTrue(
-                "SOAP 1.1 Fault Role Test : - After creating SOAPFaultRole, it has a value",
-                soap11FaultRole.getRoleValue().equals(""));
-        soap11FaultRole.setRoleValue("This is only a test");
-        assertTrue(
-                "SOAP 1.1 Fault Role Test : - After calling setRoleValue method, getRoleValue method returns incorrect value",
-                soap11FaultRole.getRoleValue().trim().equals("This is only a test"));
-    }
-
-    //SOAP 1.2 Fault Role Test (Programaticaly Created)
-    public void testSOAP12SetRoleValue() {
-        soap12FaultRole.setRoleValue("This is only a test");
-        assertTrue(
-                "SOAP 1.2 Fault Role Test : - After calling setRoleValue method, getRoleValue method returns incorrect value",
-                soap12FaultRole.getRoleValue().trim().equals("This is only a test"));
-    }
-
-    public void testSOAP12GetRoleValue() {
-        assertTrue(
-                "SOAP 1.2 Fault Role Test : - After creating SOAPFaultRole, it has a value",
-                soap12FaultRole.getRoleValue().trim().equals(""));
-        soap12FaultRole.setRoleValue("This is only a test");
-        assertTrue(
-                "SOAP 1.2 Fault Role Test : - After calling setRoleValue method, getRoleValue method returns incorrect value",
-                soap12FaultRole.getRoleValue().trim().equals("This is only a test"));
-    }
-
-    //SOAP 1.1 Fault Role Test (With Parser)
-    public void testSOAP11GetRoleValueWithParser() {
-        assertTrue(
-                "SOAP 1.1 Fault Role Test With Parser : - getRoleValue method returns incorrect value",
-                soap11FaultRoleWithParser.getRoleValue().trim().equals(
-                        "http://schemas.xmlsoap.org/soap/envelope/actor/ultimateReceiver"));
-    }
-
-    //SOAP 1.2 Fault Role Test (With Parser)
-    public void testSOAP12GetRoleValueWithParser() {
-        assertTrue(
-                "SOAP 1.2 Fault Role Test With Parser : - getRoleValue method returns incorrect value",
-                soap12FaultRoleWithParser.getRoleValue().trim().equals(
-                        "ultimateReceiver"));
-    }
-}
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.axis2.soap;
+
+public class SOAPFaultRoleTest extends SOAPFaultTestCase {
+
+    protected SOAPFaultRole soap11FaultRole;
+    protected SOAPFaultRole soap12FaultRole;
+    protected SOAPFaultRole soap11FaultRoleWithParser;
+    protected SOAPFaultRole soap12FaultRoleWithParser;
+
+    public SOAPFaultRoleTest(String testName) {
+        super(testName);
+    }
+
+    protected void setUp() throws Exception {
+        super.setUp();
+        soap11FaultRole = soap11Factory.createSOAPFaultRole(soap11Fault);
+        soap12FaultRole = soap12Factory.createSOAPFaultRole(soap12Fault);
+        soap11FaultRoleWithParser = soap11FaultWithParser.getRole();
+        soap12FaultRoleWithParser = soap12FaultWithParser.getRole();
+    }
+
+    //SOAP 1.1 Fault Role Test (Programaticaly Created)
+    public void testSOAP11SetRoleValue() {
+        soap11FaultRole.setRoleValue("This is only a test");
+        assertTrue(
+                "SOAP 1.1 Fault Role Test : - After calling setRoleValue method, getRoleValue method returns incorrect value",
+                soap11FaultRole.getRoleValue().trim().equals("This is only a test"));
+    }
+
+    public void testSOAP11GetRoleValue() {
+        assertTrue(
+                "SOAP 1.1 Fault Role Test : - After creating SOAPFaultRole, it has a value",
+                soap11FaultRole.getRoleValue().equals(""));
+        soap11FaultRole.setRoleValue("This is only a test");
+        assertTrue(
+                "SOAP 1.1 Fault Role Test : - After calling setRoleValue method, getRoleValue method returns incorrect value",
+                soap11FaultRole.getRoleValue().trim().equals("This is only a test"));
+    }
+
+    //SOAP 1.2 Fault Role Test (Programaticaly Created)
+    public void testSOAP12SetRoleValue() {
+        soap12FaultRole.setRoleValue("This is only a test");
+        assertTrue(
+                "SOAP 1.2 Fault Role Test : - After calling setRoleValue method, getRoleValue method returns incorrect value",
+                soap12FaultRole.getRoleValue().trim().equals("This is only a test"));
+    }
+
+    public void testSOAP12GetRoleValue() {
+        assertTrue(
+                "SOAP 1.2 Fault Role Test : - After creating SOAPFaultRole, it has a value",
+                soap12FaultRole.getRoleValue().trim().equals(""));
+        soap12FaultRole.setRoleValue("This is only a test");
+        assertTrue(
+                "SOAP 1.2 Fault Role Test : - After calling setRoleValue method, getRoleValue method returns incorrect value",
+                soap12FaultRole.getRoleValue().trim().equals("This is only a test"));
+    }
+
+    //SOAP 1.1 Fault Role Test (With Parser)
+    public void testSOAP11GetRoleValueWithParser() {
+        assertTrue(
+                "SOAP 1.1 Fault Role Test With Parser : - getRoleValue method returns incorrect value",
+                soap11FaultRoleWithParser.getRoleValue().trim().equals(
+                        "http://schemas.xmlsoap.org/soap/envelope/actor/ultimateReceiver"));
+    }
+
+    //SOAP 1.2 Fault Role Test (With Parser)
+    public void testSOAP12GetRoleValueWithParser() {
+        assertTrue(
+                "SOAP 1.2 Fault Role Test With Parser : - getRoleValue method returns incorrect value",
+                soap12FaultRoleWithParser.getRoleValue().trim().equals(
+                        "ultimateReceiver"));
+    }
+}

Propchange: webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultRoleTest.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message