You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2005/09/15 21:07:03 UTC

svn commit: r289289 [132/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...

Modified: webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultSubCodeTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultSubCodeTest.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultSubCodeTest.java (original)
+++ webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultSubCodeTest.java Thu Sep 15 11:52:11 2005
@@ -1,181 +1,181 @@
-/*
- * 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 SOAPFaultSubCodeTest extends SOAPFaultSubCodeTestCase {
-
-    public SOAPFaultSubCodeTest(String testName) {
-        super(testName);
-    }
-
-    protected void setUp() throws Exception {
-        super.setUp();
-    }
-
-    //SOAP Fault SubCode(In Fault Code) Test (Programaticaly Created)
-    public void testSetValueInFaultCode() {
-        soap12FaultSubCodeInCode.setValue(
-                soap12Factory.createSOAPFaultValue(soap12FaultSubCodeInCode));
-        assertFalse(
-                "SOAP 1.2 Subcode Test In Fault Code : - After calling setValue method, getValue method returns null",
-                soap12FaultSubCodeInCode.getValue() == null);
-        try {
-            soap12FaultSubCodeInCode.setValue(
-                    soap12Factory.createSOAPFaultValue(soap12FaultCode));
-        } catch (SOAPProcessingException e) {
-            fail(
-                    "SOAP 1.2 SOAPFaultSubCode Test In FaultCode : - FaultValue whose parent is FaultCode should not be set in to FaultSubCode, as a child");
-        }
-    }
-
-    public void testGetValueInFaultCode() {
-        assertTrue(
-                "After creating SOAP12FaultSubCode In Fault Code, it has a FaultValue",
-                soap12FaultSubCodeInCode.getValue() == null);
-        soap12FaultSubCodeInCode.setValue(
-                soap12Factory.createSOAPFaultValue(soap12FaultSubCodeInCode));
-        assertFalse(
-                "SOAP 1.2 SOAPFaultSubCode Test In FaultCode : - After calling setValue method, getValue method returns null",
-                soap12FaultSubCodeInCode.getValue() == null);
-    }
-
-    public void testsetSubCodeInFaultCode() {
-        soap12FaultSubCodeInCode.setSubCode(
-                soap12Factory.createSOAPFaultSubCode(soap12FaultSubCodeInCode));
-        assertFalse(
-                "SOAP 1.2 Subcode Test In Fault Code : - After calling setSubCode method, getSubCode method returns null",
-                soap12FaultSubCodeInCode.getSubCode() == null);
-        try {
-            soap12FaultSubCodeInCode.setSubCode(
-                    soap12Factory.createSOAPFaultSubCode(soap12FaultCode));
-        } catch (SOAPProcessingException e) {
-            fail(
-                    "SOAP 1.2 SOAPFaultSubCode Test In FaultCode : - FaultSubCode whose parent is FaultCode should not be set in to FaultSubCode, as a child");
-        }
-    }
-
-    public void testGetSubCodeInFaultCode() {
-        //soap12FaultSubCodeInCode has a SubCode because a SubCode was created in setUp method of super class
-//        assertTrue("After creating SOAP12FaultSubCode In Fault Code, it has a FaultSubCode",soap12FaultSubCodeInCode.getSubCode() == null);
-        soap12FaultSubCodeInCode.setSubCode(
-                soap12Factory.createSOAPFaultSubCode(soap12FaultSubCodeInCode));
-        assertFalse(
-                "SOAP 1.2 SOAPFaultSubCode Test In FaultCode : - After calling setSubCode method, getSubCode method returns null",
-                soap12FaultSubCodeInCode.getSubCode() == null);
-    }
-
-    //SOAP Fault SubCode(In Fault SubCode) Test (Programaticaly Created)
-    public void testSetValueInFaultSubCode() {
-        soap12FaultSubCodeInSubCode.setValue(
-                soap12Factory.createSOAPFaultValue(soap12FaultSubCodeInSubCode));
-        assertFalse(
-                "SOAP 1.2 Subcode Test In Fault SubCode : - After calling setValue method, getValue method returns null",
-                soap12FaultSubCodeInSubCode.getValue() == null);
-        try {
-            soap12FaultSubCodeInSubCode.setValue(
-                    soap12Factory.createSOAPFaultValue(soap12FaultCode));
-        } catch (SOAPProcessingException e) {
-            fail(
-                    "SOAP 1.2 SOAPFaultSubCode Test In FaultCode : - FaultValue whose parent is FaultCode should not be set in to FaultSubCode, as a child");
-        }
-    }
-
-    public void testGetValueInFaultSubCode() {
-        assertTrue(
-                "After creating SOAP12FaultSubCode In Fault SubCode, it has a Fault Value",
-                soap12FaultSubCodeInSubCode.getValue() == null);
-        soap12FaultSubCodeInSubCode.setValue(
-                soap12Factory.createSOAPFaultValue(soap12FaultSubCodeInSubCode));
-        assertFalse(
-                "SOAP 1.2 SOAPFaultSubCode Test In FaultSubCode : - After calling setValue method, getValue method returns null",
-                soap12FaultSubCodeInSubCode.getValue() == null);
-    }
-
-    public void testsetSubCodeInFaultSubCode() {
-        soap12FaultSubCodeInSubCode.setSubCode(
-                soap12Factory.createSOAPFaultSubCode(
-                        soap12FaultSubCodeInSubCode));
-        assertFalse(
-                "SOAP 1.2 Subcode Test In Fault SubCode : - After calling setSubCode method, getSubCode method returns null",
-                soap12FaultSubCodeInSubCode.getSubCode() == null);
-        try {
-            soap12FaultSubCodeInSubCode.setSubCode(
-                    soap12Factory.createSOAPFaultSubCode(soap12FaultCode));
-        } catch (SOAPProcessingException e) {
-            fail(
-                    "SOAP 1.2 SOAPFaultSubCode Test In FaultSubCode : - FaultSubCode whose parent is FaultCode should not be set in to FaultSubCode, as a child");
-        }
-    }
-
-    public void testGetSubCodeInFaultSubCode() {
-        assertTrue(
-                "After creating SOAP12FaultSubCode In Fault SubCode, it has a FaultSubCode",
-                soap12FaultSubCodeInSubCode.getSubCode() == null);
-        soap12FaultSubCodeInSubCode.setSubCode(
-                soap12Factory.createSOAPFaultSubCode(
-                        soap12FaultSubCodeInSubCode));
-        assertFalse(
-                "SOAP 1.2 SOAPFaultSubCode Test In FaultSubCode : - After calling setSubCode method, getSubCode method returns null",
-                soap12FaultSubCodeInSubCode.getSubCode() == null);
-    }
-
-    //SOAP Fault SubCode(In Fault Code) Test (With Parser)
-    public void testGetValueInFaultCodeWithParser() {
-        assertFalse(
-                "SOAP 1.2 SOAPFaultSubCode Test In FaultCode With Parser : - getValue method returns null",
-                soap12FaultSubCodeInFaultCodeWithParser.getValue() == null);
-        assertTrue(
-                "SOAP 1.2 SOAPFaultSubCode Test In FaultCode With Parser : - Value text mismatch",
-                soap12FaultSubCodeInFaultCodeWithParser.getValue().getText()
-                .equals("m:MessageTimeout In First SubCode"));
-    }
-
-    public void testGetSubCodeInFaultCodeWithParser() {
-        assertFalse(
-                "SOAP 1.2 SOAPFaultSubCode Test In FaultCode With Parser : - getSubCode method returns null",
-                soap12FaultSubCodeInFaultCodeWithParser.getSubCode() == null);
-        assertTrue(
-                "SOAP 1.2 SOAPFaultSubCode Test In FaultCode With Parser : - SubCode local name mismatch",
-                soap12FaultSubCodeInFaultCodeWithParser.getSubCode()
-                .getLocalName()
-                .equals(SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME));
-    }
-
-    //SOAP Fault SubCode(In Fault SubCode) Test (With Parser)
-    public void testGetValueInFaultSubCodeWithParser() {
-        assertFalse(
-                "SOAP 1.2 SOAPFaultSubCode Test In FaultSubCode With Parser : - getValue method returns null",
-                soap12FaultSubCodeInSubCodeWithParser.getValue() == null);
-        assertTrue(
-                "SOAP 1.2 SOAPFaultSubCode Test In FaultSubCode With Parser : - Value text mismatch",
-                soap12FaultSubCodeInSubCodeWithParser.getValue().getText()
-                .equals("m:MessageTimeout In Second SubCode"));
-    }
-
-    public void testGetSubCodeInFaultSubCodeWithParser() {
-        assertFalse(
-                "SOAP 1.2 SOAPFaultSubCode Test In FaultSubCode With Parser : - getSubCode method returns null",
-                soap12FaultSubCodeInSubCodeWithParser.getSubCode() == null);
-        assertTrue(
-                "SOAP 1.2 SOAPFaultSubCode Test In FaultSubCode With Parser : - SubCode local name mismatch",
-                soap12FaultSubCodeInSubCodeWithParser.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 SOAPFaultSubCodeTest extends SOAPFaultSubCodeTestCase {
+
+    public SOAPFaultSubCodeTest(String testName) {
+        super(testName);
+    }
+
+    protected void setUp() throws Exception {
+        super.setUp();
+    }
+
+    //SOAP Fault SubCode(In Fault Code) Test (Programaticaly Created)
+    public void testSetValueInFaultCode() {
+        soap12FaultSubCodeInCode.setValue(
+                soap12Factory.createSOAPFaultValue(soap12FaultSubCodeInCode));
+        assertFalse(
+                "SOAP 1.2 Subcode Test In Fault Code : - After calling setValue method, getValue method returns null",
+                soap12FaultSubCodeInCode.getValue() == null);
+        try {
+            soap12FaultSubCodeInCode.setValue(
+                    soap12Factory.createSOAPFaultValue(soap12FaultCode));
+        } catch (SOAPProcessingException e) {
+            fail(
+                    "SOAP 1.2 SOAPFaultSubCode Test In FaultCode : - FaultValue whose parent is FaultCode should not be set in to FaultSubCode, as a child");
+        }
+    }
+
+    public void testGetValueInFaultCode() {
+        assertTrue(
+                "After creating SOAP12FaultSubCode In Fault Code, it has a FaultValue",
+                soap12FaultSubCodeInCode.getValue() == null);
+        soap12FaultSubCodeInCode.setValue(
+                soap12Factory.createSOAPFaultValue(soap12FaultSubCodeInCode));
+        assertFalse(
+                "SOAP 1.2 SOAPFaultSubCode Test In FaultCode : - After calling setValue method, getValue method returns null",
+                soap12FaultSubCodeInCode.getValue() == null);
+    }
+
+    public void testsetSubCodeInFaultCode() {
+        soap12FaultSubCodeInCode.setSubCode(
+                soap12Factory.createSOAPFaultSubCode(soap12FaultSubCodeInCode));
+        assertFalse(
+                "SOAP 1.2 Subcode Test In Fault Code : - After calling setSubCode method, getSubCode method returns null",
+                soap12FaultSubCodeInCode.getSubCode() == null);
+        try {
+            soap12FaultSubCodeInCode.setSubCode(
+                    soap12Factory.createSOAPFaultSubCode(soap12FaultCode));
+        } catch (SOAPProcessingException e) {
+            fail(
+                    "SOAP 1.2 SOAPFaultSubCode Test In FaultCode : - FaultSubCode whose parent is FaultCode should not be set in to FaultSubCode, as a child");
+        }
+    }
+
+    public void testGetSubCodeInFaultCode() {
+        //soap12FaultSubCodeInCode has a SubCode because a SubCode was created in setUp method of super class
+//        assertTrue("After creating SOAP12FaultSubCode In Fault Code, it has a FaultSubCode",soap12FaultSubCodeInCode.getSubCode() == null);
+        soap12FaultSubCodeInCode.setSubCode(
+                soap12Factory.createSOAPFaultSubCode(soap12FaultSubCodeInCode));
+        assertFalse(
+                "SOAP 1.2 SOAPFaultSubCode Test In FaultCode : - After calling setSubCode method, getSubCode method returns null",
+                soap12FaultSubCodeInCode.getSubCode() == null);
+    }
+
+    //SOAP Fault SubCode(In Fault SubCode) Test (Programaticaly Created)
+    public void testSetValueInFaultSubCode() {
+        soap12FaultSubCodeInSubCode.setValue(
+                soap12Factory.createSOAPFaultValue(soap12FaultSubCodeInSubCode));
+        assertFalse(
+                "SOAP 1.2 Subcode Test In Fault SubCode : - After calling setValue method, getValue method returns null",
+                soap12FaultSubCodeInSubCode.getValue() == null);
+        try {
+            soap12FaultSubCodeInSubCode.setValue(
+                    soap12Factory.createSOAPFaultValue(soap12FaultCode));
+        } catch (SOAPProcessingException e) {
+            fail(
+                    "SOAP 1.2 SOAPFaultSubCode Test In FaultCode : - FaultValue whose parent is FaultCode should not be set in to FaultSubCode, as a child");
+        }
+    }
+
+    public void testGetValueInFaultSubCode() {
+        assertTrue(
+                "After creating SOAP12FaultSubCode In Fault SubCode, it has a Fault Value",
+                soap12FaultSubCodeInSubCode.getValue() == null);
+        soap12FaultSubCodeInSubCode.setValue(
+                soap12Factory.createSOAPFaultValue(soap12FaultSubCodeInSubCode));
+        assertFalse(
+                "SOAP 1.2 SOAPFaultSubCode Test In FaultSubCode : - After calling setValue method, getValue method returns null",
+                soap12FaultSubCodeInSubCode.getValue() == null);
+    }
+
+    public void testsetSubCodeInFaultSubCode() {
+        soap12FaultSubCodeInSubCode.setSubCode(
+                soap12Factory.createSOAPFaultSubCode(
+                        soap12FaultSubCodeInSubCode));
+        assertFalse(
+                "SOAP 1.2 Subcode Test In Fault SubCode : - After calling setSubCode method, getSubCode method returns null",
+                soap12FaultSubCodeInSubCode.getSubCode() == null);
+        try {
+            soap12FaultSubCodeInSubCode.setSubCode(
+                    soap12Factory.createSOAPFaultSubCode(soap12FaultCode));
+        } catch (SOAPProcessingException e) {
+            fail(
+                    "SOAP 1.2 SOAPFaultSubCode Test In FaultSubCode : - FaultSubCode whose parent is FaultCode should not be set in to FaultSubCode, as a child");
+        }
+    }
+
+    public void testGetSubCodeInFaultSubCode() {
+        assertTrue(
+                "After creating SOAP12FaultSubCode In Fault SubCode, it has a FaultSubCode",
+                soap12FaultSubCodeInSubCode.getSubCode() == null);
+        soap12FaultSubCodeInSubCode.setSubCode(
+                soap12Factory.createSOAPFaultSubCode(
+                        soap12FaultSubCodeInSubCode));
+        assertFalse(
+                "SOAP 1.2 SOAPFaultSubCode Test In FaultSubCode : - After calling setSubCode method, getSubCode method returns null",
+                soap12FaultSubCodeInSubCode.getSubCode() == null);
+    }
+
+    //SOAP Fault SubCode(In Fault Code) Test (With Parser)
+    public void testGetValueInFaultCodeWithParser() {
+        assertFalse(
+                "SOAP 1.2 SOAPFaultSubCode Test In FaultCode With Parser : - getValue method returns null",
+                soap12FaultSubCodeInFaultCodeWithParser.getValue() == null);
+        assertTrue(
+                "SOAP 1.2 SOAPFaultSubCode Test In FaultCode With Parser : - Value text mismatch",
+                soap12FaultSubCodeInFaultCodeWithParser.getValue().getText()
+                .equals("m:MessageTimeout In First SubCode"));
+    }
+
+    public void testGetSubCodeInFaultCodeWithParser() {
+        assertFalse(
+                "SOAP 1.2 SOAPFaultSubCode Test In FaultCode With Parser : - getSubCode method returns null",
+                soap12FaultSubCodeInFaultCodeWithParser.getSubCode() == null);
+        assertTrue(
+                "SOAP 1.2 SOAPFaultSubCode Test In FaultCode With Parser : - SubCode local name mismatch",
+                soap12FaultSubCodeInFaultCodeWithParser.getSubCode()
+                .getLocalName()
+                .equals(SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME));
+    }
+
+    //SOAP Fault SubCode(In Fault SubCode) Test (With Parser)
+    public void testGetValueInFaultSubCodeWithParser() {
+        assertFalse(
+                "SOAP 1.2 SOAPFaultSubCode Test In FaultSubCode With Parser : - getValue method returns null",
+                soap12FaultSubCodeInSubCodeWithParser.getValue() == null);
+        assertTrue(
+                "SOAP 1.2 SOAPFaultSubCode Test In FaultSubCode With Parser : - Value text mismatch",
+                soap12FaultSubCodeInSubCodeWithParser.getValue().getText()
+                .equals("m:MessageTimeout In Second SubCode"));
+    }
+
+    public void testGetSubCodeInFaultSubCodeWithParser() {
+        assertFalse(
+                "SOAP 1.2 SOAPFaultSubCode Test In FaultSubCode With Parser : - getSubCode method returns null",
+                soap12FaultSubCodeInSubCodeWithParser.getSubCode() == null);
+        assertTrue(
+                "SOAP 1.2 SOAPFaultSubCode Test In FaultSubCode With Parser : - SubCode local name mismatch",
+                soap12FaultSubCodeInSubCodeWithParser.getSubCode()
+                .getLocalName()
+                .equals(SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME));
+    }
+}

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

Modified: webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultSubCodeTestCase.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultSubCodeTestCase.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultSubCodeTestCase.java (original)
+++ webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultSubCodeTestCase.java Thu Sep 15 11:52:11 2005
@@ -1,62 +1,62 @@
-/*
- * 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 SOAPFaultSubCodeTestCase extends SOAPFaultCodeTestCase {
-    protected SOAPFaultValue soap11FaultValue;
-    protected SOAPFaultValue soap12FaultValueInFaultCode;
-    protected SOAPFaultSubCode soap12FaultSubCodeInCode;
-
-    protected SOAPFaultValue soap12FaultValueInFaultSubCode;
-    protected SOAPFaultSubCode soap12FaultSubCodeInSubCode;
-
-    protected SOAPFaultValue soap11FaultValueWithParser;
-    protected SOAPFaultValue soap12FaultValueInFaultCodeWithParser;
-    protected SOAPFaultSubCode soap12FaultSubCodeInFaultCodeWithParser;
-
-    protected SOAPFaultValue soap12FaultValueInFaultSubCodeWithParser;
-    protected SOAPFaultSubCode soap12FaultSubCodeInSubCodeWithParser;
-
-    public SOAPFaultSubCodeTestCase(String testName) {
-        super(testName);
-    }
-
-    protected void setUp() throws Exception {
-        super.setUp();
-        soap11FaultValue = soap11Factory.createSOAPFaultValue(soap11FaultCode);
-
-        soap12FaultValueInFaultCode =
-                soap12Factory.createSOAPFaultValue(soap12FaultCode);
-        soap12FaultSubCodeInCode =
-                soap12Factory.createSOAPFaultSubCode(soap12FaultCode);
-
-
-        soap12FaultSubCodeInSubCode =
-                soap12Factory.createSOAPFaultSubCode(soap12FaultSubCodeInCode);
-
-        soap11FaultValueWithParser = soap11FaultCodeWithParser.getValue();
-        soap12FaultValueInFaultCodeWithParser =
-                soap12FaultCodeWithParser.getValue();
-        soap12FaultSubCodeInFaultCodeWithParser =
-                soap12FaultCodeWithParser.getSubCode();
-
-        soap12FaultValueInFaultSubCodeWithParser =
-                soap12FaultSubCodeInFaultCodeWithParser.getValue();
-        soap12FaultSubCodeInSubCodeWithParser =
-                soap12FaultSubCodeInFaultCodeWithParser.getSubCode();
-    }
-}
+/*
+ * 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 SOAPFaultSubCodeTestCase extends SOAPFaultCodeTestCase {
+    protected SOAPFaultValue soap11FaultValue;
+    protected SOAPFaultValue soap12FaultValueInFaultCode;
+    protected SOAPFaultSubCode soap12FaultSubCodeInCode;
+
+    protected SOAPFaultValue soap12FaultValueInFaultSubCode;
+    protected SOAPFaultSubCode soap12FaultSubCodeInSubCode;
+
+    protected SOAPFaultValue soap11FaultValueWithParser;
+    protected SOAPFaultValue soap12FaultValueInFaultCodeWithParser;
+    protected SOAPFaultSubCode soap12FaultSubCodeInFaultCodeWithParser;
+
+    protected SOAPFaultValue soap12FaultValueInFaultSubCodeWithParser;
+    protected SOAPFaultSubCode soap12FaultSubCodeInSubCodeWithParser;
+
+    public SOAPFaultSubCodeTestCase(String testName) {
+        super(testName);
+    }
+
+    protected void setUp() throws Exception {
+        super.setUp();
+        soap11FaultValue = soap11Factory.createSOAPFaultValue(soap11FaultCode);
+
+        soap12FaultValueInFaultCode =
+                soap12Factory.createSOAPFaultValue(soap12FaultCode);
+        soap12FaultSubCodeInCode =
+                soap12Factory.createSOAPFaultSubCode(soap12FaultCode);
+
+
+        soap12FaultSubCodeInSubCode =
+                soap12Factory.createSOAPFaultSubCode(soap12FaultSubCodeInCode);
+
+        soap11FaultValueWithParser = soap11FaultCodeWithParser.getValue();
+        soap12FaultValueInFaultCodeWithParser =
+                soap12FaultCodeWithParser.getValue();
+        soap12FaultSubCodeInFaultCodeWithParser =
+                soap12FaultCodeWithParser.getSubCode();
+
+        soap12FaultValueInFaultSubCodeWithParser =
+                soap12FaultSubCodeInFaultCodeWithParser.getValue();
+        soap12FaultSubCodeInSubCodeWithParser =
+                soap12FaultSubCodeInFaultCodeWithParser.getSubCode();
+    }
+}

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

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

Modified: webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultTestCase.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultTestCase.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultTestCase.java (original)
+++ webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultTestCase.java Thu Sep 15 11:52:11 2005
@@ -1,42 +1,42 @@
-/*
- * 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.OMAbstractFactory;
-
-public class SOAPFaultTestCase extends SOAPBodyTestCase {
-    protected SOAPFault soap11Fault;
-    protected SOAPFault soap12Fault;
-    protected SOAPFault soap11FaultWithParser;
-    protected SOAPFault soap12FaultWithParser;
-
-    public SOAPFaultTestCase(String testName) {
-        super(testName);
-    }
-
-    protected void setUp() throws Exception {
-        super.setUp();
-        soap11Fault =
-                OMAbstractFactory.getSOAP11Factory().createSOAPFault(
-                        soap11Body);
-        soap12Fault =
-                OMAbstractFactory.getSOAP12Factory().createSOAPFault(
-                        soap12Body);
-        soap11FaultWithParser = soap11BodyWithParser.getFault();
-        soap12FaultWithParser = soap12BodyWithParser.getFault();
-    }
-}
+/*
+ * 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.OMAbstractFactory;
+
+public class SOAPFaultTestCase extends SOAPBodyTestCase {
+    protected SOAPFault soap11Fault;
+    protected SOAPFault soap12Fault;
+    protected SOAPFault soap11FaultWithParser;
+    protected SOAPFault soap12FaultWithParser;
+
+    public SOAPFaultTestCase(String testName) {
+        super(testName);
+    }
+
+    protected void setUp() throws Exception {
+        super.setUp();
+        soap11Fault =
+                OMAbstractFactory.getSOAP11Factory().createSOAPFault(
+                        soap11Body);
+        soap12Fault =
+                OMAbstractFactory.getSOAP12Factory().createSOAPFault(
+                        soap12Body);
+        soap11FaultWithParser = soap11BodyWithParser.getFault();
+        soap12FaultWithParser = soap12BodyWithParser.getFault();
+    }
+}

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

Modified: webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultTextTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultTextTest.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultTextTest.java (original)
+++ webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultTextTest.java Thu Sep 15 11:52:11 2005
@@ -1,177 +1,177 @@
-/*
- * 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.OMAttribute;
-
-public class SOAPFaultTextTest extends SOAPFaultReasonTestCase {
-    protected SOAPFaultText soap11FaultText;
-    protected SOAPFaultText soap12FaultText;
-    protected SOAPFaultText soap11FaultTextWithParser;
-    protected SOAPFaultText soap12FaultTextWithParser;
-
-    public SOAPFaultTextTest(String testName) {
-        super(testName);
-    }
-
-    protected void setUp() throws Exception {
-        super.setUp();
-        soap11FaultText = soap11Factory.createSOAPFaultText(soap11FaultReason);
-        soap12FaultText = soap12Factory.createSOAPFaultText(soap12FaultReason);
-        soap11FaultTextWithParser = soap11FaultReasonWithParser.getSOAPText();
-        soap12FaultTextWithParser = soap12FaultReasonWithParser.getSOAPText();
-    }
-
-    //SOAP 1.1 Fault Text Test (Programaticaly Created)
-    public void testSOAP11SetLang() {
-        soap11FaultText.setLang("en");
-        assertTrue(
-                "SOAP 1.1 Fault Text Test : - After calling setLang method, Lang attribute value mismatch",
-                soap11FaultText.getLang().equals("en"));
-        OMAttribute langAttribute = (OMAttribute) soap11FaultText.getAttributes()
-                .next();
-        assertTrue(
-                "SOAP 1.1 Fault Text Test : - After calling setLang method, Lang attribute local name mismaatch",
-                langAttribute.getLocalName().equals(
-                        SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_LOCAL_NAME));
-        assertTrue(
-                "SOAP 1.1 Fault Text Test : - After calling setLang method, Lang attribute namespace prefix mismatch",
-                langAttribute.getNamespace().getPrefix().equals(
-                        SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_NS_PREFIX));
-        assertTrue(
-                "SOAP 1.1 Fault Text Test : - After calling setLang method, Lang attribute namespace uri mismatch",
-                langAttribute.getNamespace().getName().equals(
-                        SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_NS_URI));
-    }
-
-    public void testSOAP11GetLang() {
-
-
-        assertNull(
-                "SOAP 1.1 Fault Text Test : - After creating SOAPFaultText, it has a Lnag attribute",
-                soap11FaultText.getLang());
-
-        soap11FaultText.setLang("en");
-        assertTrue(
-                "SOAP 1.1 Fault Text Test : - After calling setLang method, Lang attribute value mismatch",
-                soap11FaultText.getLang().equals("en"));
-    }
-
-    public void testSOAP11SetText() {
-        soap11FaultText.setText("This is only a test");
-        assertTrue(
-                "SOAP 1.1 Fault Text Test : - After calling setText method, getText method return incorrect string",
-                soap11FaultText.getText().equals("This is only a test"));
-    }
-
-    public void testSOAP11GetText() {
-        assertTrue(
-                "SOAP 1.1 Fault Text Test : - After creating SOAPFaultText, it has a text",
-                soap11FaultText.getText().equals(""));
-        soap11FaultText.setText("This is only a test");
-        assertTrue(
-                "SOAP 1.1 Fault Text Test : - After calling setText method, getText method return incorrect string",
-                soap11FaultText.getText().equals("This is only a test"));
-    }
-
-    //SOAP 1.2 Fault Text Test (Programaticaly Created)
-    public void testSOAP12SetLang() {
-        soap12FaultText.setLang("en");
-        assertTrue(
-                "SOAP 1.2 Fault Text Test : - After calling setLang method, Lang attribute value mismatch",
-                soap12FaultText.getLang().equals("en"));
-        OMAttribute langAttribute = (OMAttribute) soap12FaultText.getAttributes()
-                .next();
-        assertTrue(
-                "SOAP 1.2 Fault Text Test : - After calling setLang method, Lang attribute local name mismaatch",
-                langAttribute.getLocalName().equals(
-                        SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_LOCAL_NAME));
-        assertTrue(
-                "SOAP 1.2 Fault Text Test : - After calling setLang method, Lang attribute namespace prefix mismatch",
-                langAttribute.getNamespace().getPrefix().equals(
-                        SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_NS_PREFIX));
-        assertTrue(
-                "SOAP 1.2 Fault Text Test : - After calling setLang method, Lang attribute namespace uri mismatch",
-                langAttribute.getNamespace().getName().equals(
-                        SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_NS_URI));
-    }
-
-    public void testSOAP12GetLang() {
-
-        assertNull(
-                "SOAP 1.2 Fault Text Test : - After creating SOAPFaultText, it has a Lnag attribute",
-                soap12FaultText.getLang());
-
-        soap12FaultText.setLang("en");
-        assertTrue(
-                "SOAP 1.2 Fault Text Test : - After calling setLang method, Lang attribute value mismatch",
-                soap12FaultText.getLang().equals("en"));
-    }
-
-    public void testSOAP12SetText() {
-        soap12FaultText.setText("This is only a test");
-        assertTrue(
-                "SOAP 1.2 Fault Text Test : - After calling setText method, getText method return incorrect string",
-                soap12FaultText.getText().equals("This is only a test"));
-    }
-
-    public void testSOAP12GetText() {
-        assertTrue(
-                "SOAP 1.2 Fault Text Test : - After creating SOAPFaultText, it has a text",
-                soap12FaultText.getText().equals(""));
-        soap12FaultText.setText("This is only a test");
-        assertTrue(
-                "SOAP 1.2 Fault Text Test : - After calling setText method, getText method return incorrect string",
-                soap12FaultText.getText().equals("This is only a test"));
-    }
-
-    //SOAP 1.1 Fault Text Test (With Parser)
-    public void testSOAP11GetTextWithParser() {
-        assertTrue(
-                "SOAP 1.1 Fault Text Test With Parser : - getText method returns incorrect string",
-                soap11FaultTextWithParser.getText().trim().equals("Sender Timeout"));
-    }
-
-    //SOAP 1.2 Fault Text Test (With Parser)
-    public void testSOAP12GetLangWithParser() {
-        assertTrue(
-                "SOAP 1.2 Fault Text Test With Parser : - getLang method returns incorrect string",
-                soap12FaultTextWithParser.getLang().equals("en"));
-        OMAttribute langAttribute = (OMAttribute) soap12FaultTextWithParser.getAttributes()
-                .next();
-        assertTrue(
-                "SOAP 1.2 Fault Text Test With Parser : - Lang attribute local name mismaatch",
-                langAttribute.getLocalName().equals(
-                        SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_LOCAL_NAME));
-        assertTrue(
-                "SOAP 1.2 Fault Text Test With Parser : - Lang attribute namespace prefix mismatch",
-                langAttribute.getNamespace().getPrefix().equals(
-                        SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_NS_PREFIX));
-        assertTrue(
-                "SOAP 1.2 Fault Text Test With Parser : - Lang attribute namespace uri mismatch",
-                langAttribute.getNamespace().getName().equals(
-                        SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_NS_URI));
-    }
-
-    public void testSOAP12GetTextWithParser() {
-    	
-        assertTrue(
-                "SOAP 1.2 Fault Text Test With Parser : - getText method returns incorrect string",
-                soap12FaultTextWithParser.getText().equals("Sender Timeout"));
-        													
-    }
-}
+/*
+ * 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.OMAttribute;
+
+public class SOAPFaultTextTest extends SOAPFaultReasonTestCase {
+    protected SOAPFaultText soap11FaultText;
+    protected SOAPFaultText soap12FaultText;
+    protected SOAPFaultText soap11FaultTextWithParser;
+    protected SOAPFaultText soap12FaultTextWithParser;
+
+    public SOAPFaultTextTest(String testName) {
+        super(testName);
+    }
+
+    protected void setUp() throws Exception {
+        super.setUp();
+        soap11FaultText = soap11Factory.createSOAPFaultText(soap11FaultReason);
+        soap12FaultText = soap12Factory.createSOAPFaultText(soap12FaultReason);
+        soap11FaultTextWithParser = soap11FaultReasonWithParser.getSOAPText();
+        soap12FaultTextWithParser = soap12FaultReasonWithParser.getSOAPText();
+    }
+
+    //SOAP 1.1 Fault Text Test (Programaticaly Created)
+    public void testSOAP11SetLang() {
+        soap11FaultText.setLang("en");
+        assertTrue(
+                "SOAP 1.1 Fault Text Test : - After calling setLang method, Lang attribute value mismatch",
+                soap11FaultText.getLang().equals("en"));
+        OMAttribute langAttribute = (OMAttribute) soap11FaultText.getAttributes()
+                .next();
+        assertTrue(
+                "SOAP 1.1 Fault Text Test : - After calling setLang method, Lang attribute local name mismaatch",
+                langAttribute.getLocalName().equals(
+                        SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_LOCAL_NAME));
+        assertTrue(
+                "SOAP 1.1 Fault Text Test : - After calling setLang method, Lang attribute namespace prefix mismatch",
+                langAttribute.getNamespace().getPrefix().equals(
+                        SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_NS_PREFIX));
+        assertTrue(
+                "SOAP 1.1 Fault Text Test : - After calling setLang method, Lang attribute namespace uri mismatch",
+                langAttribute.getNamespace().getName().equals(
+                        SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_NS_URI));
+    }
+
+    public void testSOAP11GetLang() {
+
+
+        assertNull(
+                "SOAP 1.1 Fault Text Test : - After creating SOAPFaultText, it has a Lnag attribute",
+                soap11FaultText.getLang());
+
+        soap11FaultText.setLang("en");
+        assertTrue(
+                "SOAP 1.1 Fault Text Test : - After calling setLang method, Lang attribute value mismatch",
+                soap11FaultText.getLang().equals("en"));
+    }
+
+    public void testSOAP11SetText() {
+        soap11FaultText.setText("This is only a test");
+        assertTrue(
+                "SOAP 1.1 Fault Text Test : - After calling setText method, getText method return incorrect string",
+                soap11FaultText.getText().equals("This is only a test"));
+    }
+
+    public void testSOAP11GetText() {
+        assertTrue(
+                "SOAP 1.1 Fault Text Test : - After creating SOAPFaultText, it has a text",
+                soap11FaultText.getText().equals(""));
+        soap11FaultText.setText("This is only a test");
+        assertTrue(
+                "SOAP 1.1 Fault Text Test : - After calling setText method, getText method return incorrect string",
+                soap11FaultText.getText().equals("This is only a test"));
+    }
+
+    //SOAP 1.2 Fault Text Test (Programaticaly Created)
+    public void testSOAP12SetLang() {
+        soap12FaultText.setLang("en");
+        assertTrue(
+                "SOAP 1.2 Fault Text Test : - After calling setLang method, Lang attribute value mismatch",
+                soap12FaultText.getLang().equals("en"));
+        OMAttribute langAttribute = (OMAttribute) soap12FaultText.getAttributes()
+                .next();
+        assertTrue(
+                "SOAP 1.2 Fault Text Test : - After calling setLang method, Lang attribute local name mismaatch",
+                langAttribute.getLocalName().equals(
+                        SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_LOCAL_NAME));
+        assertTrue(
+                "SOAP 1.2 Fault Text Test : - After calling setLang method, Lang attribute namespace prefix mismatch",
+                langAttribute.getNamespace().getPrefix().equals(
+                        SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_NS_PREFIX));
+        assertTrue(
+                "SOAP 1.2 Fault Text Test : - After calling setLang method, Lang attribute namespace uri mismatch",
+                langAttribute.getNamespace().getName().equals(
+                        SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_NS_URI));
+    }
+
+    public void testSOAP12GetLang() {
+
+        assertNull(
+                "SOAP 1.2 Fault Text Test : - After creating SOAPFaultText, it has a Lnag attribute",
+                soap12FaultText.getLang());
+
+        soap12FaultText.setLang("en");
+        assertTrue(
+                "SOAP 1.2 Fault Text Test : - After calling setLang method, Lang attribute value mismatch",
+                soap12FaultText.getLang().equals("en"));
+    }
+
+    public void testSOAP12SetText() {
+        soap12FaultText.setText("This is only a test");
+        assertTrue(
+                "SOAP 1.2 Fault Text Test : - After calling setText method, getText method return incorrect string",
+                soap12FaultText.getText().equals("This is only a test"));
+    }
+
+    public void testSOAP12GetText() {
+        assertTrue(
+                "SOAP 1.2 Fault Text Test : - After creating SOAPFaultText, it has a text",
+                soap12FaultText.getText().equals(""));
+        soap12FaultText.setText("This is only a test");
+        assertTrue(
+                "SOAP 1.2 Fault Text Test : - After calling setText method, getText method return incorrect string",
+                soap12FaultText.getText().equals("This is only a test"));
+    }
+
+    //SOAP 1.1 Fault Text Test (With Parser)
+    public void testSOAP11GetTextWithParser() {
+        assertTrue(
+                "SOAP 1.1 Fault Text Test With Parser : - getText method returns incorrect string",
+                soap11FaultTextWithParser.getText().trim().equals("Sender Timeout"));
+    }
+
+    //SOAP 1.2 Fault Text Test (With Parser)
+    public void testSOAP12GetLangWithParser() {
+        assertTrue(
+                "SOAP 1.2 Fault Text Test With Parser : - getLang method returns incorrect string",
+                soap12FaultTextWithParser.getLang().equals("en"));
+        OMAttribute langAttribute = (OMAttribute) soap12FaultTextWithParser.getAttributes()
+                .next();
+        assertTrue(
+                "SOAP 1.2 Fault Text Test With Parser : - Lang attribute local name mismaatch",
+                langAttribute.getLocalName().equals(
+                        SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_LOCAL_NAME));
+        assertTrue(
+                "SOAP 1.2 Fault Text Test With Parser : - Lang attribute namespace prefix mismatch",
+                langAttribute.getNamespace().getPrefix().equals(
+                        SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_NS_PREFIX));
+        assertTrue(
+                "SOAP 1.2 Fault Text Test With Parser : - Lang attribute namespace uri mismatch",
+                langAttribute.getNamespace().getName().equals(
+                        SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_NS_URI));
+    }
+
+    public void testSOAP12GetTextWithParser() {
+    	
+        assertTrue(
+                "SOAP 1.2 Fault Text Test With Parser : - getText method returns incorrect string",
+                soap12FaultTextWithParser.getText().equals("Sender Timeout"));
+        													
+    }
+}

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

Modified: webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultValueTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultValueTest.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultValueTest.java (original)
+++ webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultValueTest.java Thu Sep 15 11:52:11 2005
@@ -1,118 +1,118 @@
-/*
- * 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 SOAPFaultValueTest extends SOAPFaultSubCodeTestCase {
-
-    public SOAPFaultValueTest(String testName) {
-        super(testName);
-    }
-
-    protected void setUp() throws Exception {
-        super.setUp();
-        soap12FaultValueInFaultSubCode =
-                soap12Factory.createSOAPFaultValue(soap12FaultSubCodeInCode);
-    }
-
-    //SOAP 1.1 Fault Value Test (Programaticaly Created)
-    public void testSOAP11setText() {
-        soap11FaultValue.setText("This is only Test");
-        assertTrue("SOAP 1.1 Fault Value Test : - value text mismatch",
-                soap11FaultValue.getText().equals("This is only Test"));
-    }
-
-    public void testSOAP11GetText() {
-        assertTrue(
-                "SOAP 1.1 Fault Value Test : - After creating Fault Value, it has a text",
-                soap11FaultValue.getText().equals(""));
-        soap11FaultValue.setText("This is only Test");
-        assertFalse(
-                "SOAP 1.1 Fault Value Test : - After calling setText method, getText method returns null",
-                soap11FaultValue.getText().equals(""));
-        assertTrue("SOAP 1.1 Fault Value Test : - value text mismatch",
-                soap11FaultValue.getText().equals("This is only Test"));
-    }
-
-    //SOAP 1.2 Fault Value(In Fault Code) Test (Programaticaly Created)
-    public void testSOAP12setTextInFaultCode() {
-        soap12FaultValueInFaultCode.setText("This is only Test");
-        assertTrue(
-                "SOAP 1.2 Fault Value Test in Fault Code : - value text mismatch",
-                soap12FaultValueInFaultCode.getText().equals(
-                        "This is only Test"));
-    }
-
-    public void testSOAP12GetTextInFaultCode() {
-        assertTrue(
-                "SOAP 1.2 Fault Value Test in Fault Code : - After creating Fault Value, it has a text",
-                soap12FaultValueInFaultCode.getText().equals(""));
-        soap12FaultValueInFaultCode.setText("This is only Test");
-        assertFalse(
-                "SOAP 1.2 Fault Value Test in Fault Code : - After calling setText method, getText method returns null",
-                soap12FaultValueInFaultCode.getText().equals(""));
-        assertTrue(
-                "SOAP 1.2 Fault Value Test in Fault Code : - value text mismatch",
-                soap12FaultValueInFaultCode.getText().equals(
-                        "This is only Test"));
-    }
-
-    //SOAP 1.2 Fault Value(In Fault SubCode) Test (Programaticaly Created)
-    public void testSOAP12setTextInFaultSubCode() {
-        soap12FaultValueInFaultSubCode.setText("This is only Test");
-        assertTrue(
-                "SOAP 1.2 Fault Value Test in Fault SubCode : - value text mismatch",
-                soap12FaultValueInFaultSubCode.getText().equals(
-                        "This is only Test"));
-    }
-
-    public void testSOAP12GetTextInFaultSubCode() {
-        assertTrue(
-                "SOAP 1.2 Fault Value Test in Fault SubCode : - After creating Fault Value, it has a text",
-                soap12FaultValueInFaultSubCode.getText().equals(""));
-        soap12FaultValueInFaultSubCode.setText("This is only Test");
-        assertFalse(
-                "SOAP 1.2 Fault Value Test in Fault SubCode : - After calling setText method, getText method returns null",
-                soap12FaultValueInFaultSubCode.getText().equals(""));
-        assertTrue(
-                "SOAP 1.2 Fault Value Test in Fault SubCode : - value text mismatch",
-                soap12FaultValueInFaultSubCode.getText().equals(
-                        "This is only Test"));
-    }
-
-    //SOAP 1.1 Fault Value Test (With Parser)
-    public void testSOAP11GetTextWithParser() {
-        assertTrue(
-                "SOAP 1.1 Fault Value Test with parser : - value text mismatch",
-                soap11FaultValueWithParser.getText().trim().equals("env:Sender"));
-    }
-
-    //SOAP 1.2 Fault Value(In Fault Code) Test (With Parser)
-    public void testSOAP12setTextWithParserInFaultCode() {
-        assertTrue(
-                "SOAP 1.2 Fault Value Test with parser in Fault Code : - value text mismatch",
-                soap12FaultValueInFaultCodeWithParser.getText().equals(
-                        "env:Sender"));
-    }
-
-    //SOAP 1.2 Fault Value(In Fault SubCode) Test (With Parser)
-    public void testSOAP12setTextWithParserInFaultSubCode() {
-        assertTrue(
-                "SOAP 1.2 Fault Value Test with parser in Fault SubCode : - value text mismatch",
-                soap12FaultValueInFaultSubCodeWithParser.getText().equals(
-                        "m:MessageTimeout In First SubCode"));
-    }
-}
+/*
+ * 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 SOAPFaultValueTest extends SOAPFaultSubCodeTestCase {
+
+    public SOAPFaultValueTest(String testName) {
+        super(testName);
+    }
+
+    protected void setUp() throws Exception {
+        super.setUp();
+        soap12FaultValueInFaultSubCode =
+                soap12Factory.createSOAPFaultValue(soap12FaultSubCodeInCode);
+    }
+
+    //SOAP 1.1 Fault Value Test (Programaticaly Created)
+    public void testSOAP11setText() {
+        soap11FaultValue.setText("This is only Test");
+        assertTrue("SOAP 1.1 Fault Value Test : - value text mismatch",
+                soap11FaultValue.getText().equals("This is only Test"));
+    }
+
+    public void testSOAP11GetText() {
+        assertTrue(
+                "SOAP 1.1 Fault Value Test : - After creating Fault Value, it has a text",
+                soap11FaultValue.getText().equals(""));
+        soap11FaultValue.setText("This is only Test");
+        assertFalse(
+                "SOAP 1.1 Fault Value Test : - After calling setText method, getText method returns null",
+                soap11FaultValue.getText().equals(""));
+        assertTrue("SOAP 1.1 Fault Value Test : - value text mismatch",
+                soap11FaultValue.getText().equals("This is only Test"));
+    }
+
+    //SOAP 1.2 Fault Value(In Fault Code) Test (Programaticaly Created)
+    public void testSOAP12setTextInFaultCode() {
+        soap12FaultValueInFaultCode.setText("This is only Test");
+        assertTrue(
+                "SOAP 1.2 Fault Value Test in Fault Code : - value text mismatch",
+                soap12FaultValueInFaultCode.getText().equals(
+                        "This is only Test"));
+    }
+
+    public void testSOAP12GetTextInFaultCode() {
+        assertTrue(
+                "SOAP 1.2 Fault Value Test in Fault Code : - After creating Fault Value, it has a text",
+                soap12FaultValueInFaultCode.getText().equals(""));
+        soap12FaultValueInFaultCode.setText("This is only Test");
+        assertFalse(
+                "SOAP 1.2 Fault Value Test in Fault Code : - After calling setText method, getText method returns null",
+                soap12FaultValueInFaultCode.getText().equals(""));
+        assertTrue(
+                "SOAP 1.2 Fault Value Test in Fault Code : - value text mismatch",
+                soap12FaultValueInFaultCode.getText().equals(
+                        "This is only Test"));
+    }
+
+    //SOAP 1.2 Fault Value(In Fault SubCode) Test (Programaticaly Created)
+    public void testSOAP12setTextInFaultSubCode() {
+        soap12FaultValueInFaultSubCode.setText("This is only Test");
+        assertTrue(
+                "SOAP 1.2 Fault Value Test in Fault SubCode : - value text mismatch",
+                soap12FaultValueInFaultSubCode.getText().equals(
+                        "This is only Test"));
+    }
+
+    public void testSOAP12GetTextInFaultSubCode() {
+        assertTrue(
+                "SOAP 1.2 Fault Value Test in Fault SubCode : - After creating Fault Value, it has a text",
+                soap12FaultValueInFaultSubCode.getText().equals(""));
+        soap12FaultValueInFaultSubCode.setText("This is only Test");
+        assertFalse(
+                "SOAP 1.2 Fault Value Test in Fault SubCode : - After calling setText method, getText method returns null",
+                soap12FaultValueInFaultSubCode.getText().equals(""));
+        assertTrue(
+                "SOAP 1.2 Fault Value Test in Fault SubCode : - value text mismatch",
+                soap12FaultValueInFaultSubCode.getText().equals(
+                        "This is only Test"));
+    }
+
+    //SOAP 1.1 Fault Value Test (With Parser)
+    public void testSOAP11GetTextWithParser() {
+        assertTrue(
+                "SOAP 1.1 Fault Value Test with parser : - value text mismatch",
+                soap11FaultValueWithParser.getText().trim().equals("env:Sender"));
+    }
+
+    //SOAP 1.2 Fault Value(In Fault Code) Test (With Parser)
+    public void testSOAP12setTextWithParserInFaultCode() {
+        assertTrue(
+                "SOAP 1.2 Fault Value Test with parser in Fault Code : - value text mismatch",
+                soap12FaultValueInFaultCodeWithParser.getText().equals(
+                        "env:Sender"));
+    }
+
+    //SOAP 1.2 Fault Value(In Fault SubCode) Test (With Parser)
+    public void testSOAP12setTextWithParserInFaultSubCode() {
+        assertTrue(
+                "SOAP 1.2 Fault Value Test with parser in Fault SubCode : - value text mismatch",
+                soap12FaultValueInFaultSubCodeWithParser.getText().equals(
+                        "m:MessageTimeout In First SubCode"));
+    }
+}

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

Modified: webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPHeaderBlockTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPHeaderBlockTest.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPHeaderBlockTest.java (original)
+++ webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPHeaderBlockTest.java Thu Sep 15 11:52:11 2005
@@ -1,238 +1,238 @@
-/*
- * 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 java.util.Iterator;
-
-public class SOAPHeaderBlockTest extends SOAPHeaderTestCase {
-    protected SOAPHeaderBlock soap11HeaderBlock;
-    protected SOAPHeaderBlock soap12HeaderBlock;
-    protected SOAPHeaderBlock soap11HeaderBlock1WithParser;
-    protected SOAPHeaderBlock soap12HeaderBlock1WithParser;
-    protected SOAPHeaderBlock soap11HeaderBlock2WithParser;
-    protected SOAPHeaderBlock soap12HeaderBlock2WithParser;
-    protected SOAPHeaderBlock soap11HeaderBlock3WithParser;
-    protected SOAPHeaderBlock soap12HeaderBlock3WithParser;
-
-    public SOAPHeaderBlockTest(String testName) {
-        super(testName);
-    }
-
-    protected void setUp() throws Exception {
-        super.setUp();
-        soap11HeaderBlock =
-                soap11Factory.createSOAPHeaderBlock("testHeaderBlock",
-                        namespace,
-                        soap11Header);
-        soap12HeaderBlock =
-                soap12Factory.createSOAPHeaderBlock("testHeaderBlock",
-                        namespace,
-                        soap12Header);
-        Iterator iterator = soap11HeaderWithParser.examineAllHeaderBlocks();
-        iterator.next();
-        soap11HeaderBlock1WithParser = (SOAPHeaderBlock) iterator.next();
-        iterator.next();
-        soap11HeaderBlock2WithParser = (SOAPHeaderBlock) iterator.next();
-        iterator.next();
-        soap11HeaderBlock3WithParser = (SOAPHeaderBlock) iterator.next();
-
-        iterator = soap12HeaderWithParser.examineAllHeaderBlocks();
-        iterator.next();
-        soap12HeaderBlock1WithParser = (SOAPHeaderBlock) iterator.next();
-        iterator.next();
-        soap12HeaderBlock2WithParser = (SOAPHeaderBlock) iterator.next();
-        iterator.next();
-        soap12HeaderBlock3WithParser = (SOAPHeaderBlock) iterator.next();
-    }
-
-    //SOAP 1.1 SOAPHeaderBlock Test (Programaticaly Created)
-    public void testSOAP11SetRole() {
-        soap11HeaderBlock.setRole(
-                "http://schemas.xmlsoap.org/soap/envelope/actor/next");
-        assertTrue(
-                "SOAP 1.1 HeaderBlock Test : - After calling setRole method, getRole method returns incorrect role value",
-                soap11HeaderBlock.getRole().equals(
-                        "http://schemas.xmlsoap.org/soap/envelope/actor/next"));
-        try {
-            soap11HeaderBlock.setRole("Any Value");
-        } catch (Exception e) {
-            fail(
-                    "SOAP 1.1 HeaderBlock Test : - role value can not be set to any value");
-        }
-    }
-
-    public void testSOAP11GetRole() {
-        assertTrue(
-                "SOAP 1.1 HeaderBlock Test : - After creating SOAPHeaderBlock, it has a role",
-                soap11HeaderBlock.getRole() == null);
-        soap11HeaderBlock.setRole(
-                "http://schemas.xmlsoap.org/soap/envelope/actor/next");
-        assertTrue(
-                "SOAP 1.1 HeaderBlock Test : - After calling setRole method, getRole method returns incorrect role value",
-                soap11HeaderBlock.getRole().equals(
-                        "http://schemas.xmlsoap.org/soap/envelope/actor/next"));
-    }
-
-    public void testSOAP11SetMustUnderstand() {
-        soap11HeaderBlock.setMustUnderstand(true);
-        assertTrue(
-                "SOAP 1.1 HeaderBlock Test : - After setting MustUnderstand true calling setMustUnderstand method , getMustUnderstand method returns false",
-                soap11HeaderBlock.getMustUnderstand());
-        soap11HeaderBlock.setMustUnderstand(false);
-        assertFalse(
-                "SOAP 1.1 HeaderBlock Test : - After setting MustUnderstand false calling setMustUnderstand method , getMustUnderstand method returns true",
-                soap11HeaderBlock.getMustUnderstand());
-        soap11HeaderBlock.setMustUnderstand("1");
-        assertTrue(
-                "SOAP 1.1 HeaderBlock Test : - After setting MustUnderstand \"1\" calling setMustUnderstand method , getMustUnderstand method returns false",
-                soap11HeaderBlock.getMustUnderstand());
-        soap11HeaderBlock.setMustUnderstand("0");
-        assertFalse(
-                "SOAP 1.1 HeaderBlock Test : - After setting MustUnderstand \"0\" calling setMustUnderstand method , getMustUnderstand method returns true",
-                soap11HeaderBlock.getMustUnderstand());
-        try {
-            soap11HeaderBlock.setMustUnderstand("true");
-        } catch (Exception e) {
-            fail(
-                    "SOAP 1.1 HeaderBlock Test : - MustUnderstatnd value can not be set to any value rather than 1 or 0");
-        }
-    }
-
-    public void testSOAP11GetMustUnderstand() {
-        assertFalse(
-                "SOAP 1.1 HeaderBlock Test : - After creating SOAPHeaderBlock, default MustUnderstand value true",
-                soap11HeaderBlock.getMustUnderstand());
-        soap11HeaderBlock.setMustUnderstand(true);
-        assertTrue(
-                "SOAP 1.1 HeaderBlock Test : - After setting MustUnderstand true calling setMustUnderstand method , getMustUnderstand method returns false",
-                soap11HeaderBlock.getMustUnderstand());
-    }
-
-    //SOAP 1.2 SOAPHeaderBlock Test (Programaticaly Created)
-    public void testSOAP12SetRole() {
-        soap12HeaderBlock.setRole(
-                "http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver");
-        assertTrue(
-                "SOAP 1.2 HeaderBlock Test : - After calling setRole method, getRole method returns incorrect role value",
-                soap12HeaderBlock.getRole().equals(
-                        "http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver"));
-        try {
-            soap12HeaderBlock.setRole("Any Value");
-        } catch (Exception e) {
-            fail(
-                    "SOAP 1.2 HeaderBlock Test : - role value can not be set to any value");
-        }
-    }
-
-    public void testSOAP12GetRole() {
-        assertTrue(
-                "SOAP 1.2 HeaderBlock Test : - After creating SOAPHeaderBlock, it has a role",
-                soap12HeaderBlock.getRole() == null);
-        soap12HeaderBlock.setRole(
-                "http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver");
-        assertTrue(
-                "SOAP 1.2 HeaderBlock Test : - After calling setRole method, getRole method returns incorrect role value",
-                soap12HeaderBlock.getRole().equals(
-                        "http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver"));
-    }
-
-    public void testSOAP12SetMustUnderstand() {
-        soap12HeaderBlock.setMustUnderstand(true);
-        assertTrue(
-                "SOAP 1.2 HeaderBlock Test : - After setting MustUnderstand true calling setMustUnderstand method , getMustUnderstand method returns false",
-                soap12HeaderBlock.getMustUnderstand());
-        soap12HeaderBlock.setMustUnderstand(false);
-        assertFalse(
-                "SOAP 1.2 HeaderBlock Test : - After setting MustUnderstand false calling setMustUnderstand method , getMustUnderstand method returns true",
-                soap12HeaderBlock.getMustUnderstand());
-        soap12HeaderBlock.setMustUnderstand("true");
-        assertTrue(
-                "SOAP 1.2 HeaderBlock Test : - After setting MustUnderstand \"true\" calling setMustUnderstand method , getMustUnderstand method returns false",
-                soap12HeaderBlock.getMustUnderstand());
-        soap12HeaderBlock.setMustUnderstand("false");
-        assertFalse(
-                "SOAP 1.2 HeaderBlock Test : - After setting MustUnderstand \"false\" calling setMustUnderstand method , getMustUnderstand method returns true",
-                soap12HeaderBlock.getMustUnderstand());
-        soap12HeaderBlock.setMustUnderstand("1");
-        assertTrue(
-                "SOAP 1.2 HeaderBlock Test : - After setting MustUnderstand \"1\" calling setMustUnderstand method , getMustUnderstand method returns false",
-                soap12HeaderBlock.getMustUnderstand());
-        soap12HeaderBlock.setMustUnderstand("0");
-        assertFalse(
-                "SOAP 1.2 HeaderBlock Test : - After setting MustUnderstand \"0\" calling setMustUnderstand method , getMustUnderstand method returns true",
-                soap12HeaderBlock.getMustUnderstand());
-        try {
-            soap12HeaderBlock.setMustUnderstand("otherValue");
-            fail(
-                    "SOAP 1.2 HeaderBlock Test : - MustUnderstatnd value can not be set to any value rather than 1 , 0 , true , false");
-
-        } catch (Exception e) {
-            assertTrue(true);
-        }
-    }
-
-    public void testSOAP12GetMustUnderstand() {
-        assertFalse(
-                "SOAP 1.2 HeaderBlock Test : - After creating SOAPHeaderBlock, default MustUnderstand value true",
-                soap12HeaderBlock.getMustUnderstand());
-        soap12HeaderBlock.setMustUnderstand(true);
-        assertTrue(
-                "SOAP 1.2 HeaderBlock Test : - After setting MustUnderstand true calling setMustUnderstand method , getMustUnderstand method returns false",
-                soap12HeaderBlock.getMustUnderstand());
-    }
-
-    //SOAP 1.1 SOAPHeaderBlock Test (With Parser)
-    public void testSOAP11GetRoleWithParser() {
-        assertTrue(
-                "SOAP 1.1 HeaderBlock Test Wiht Parser : - getRole method returns incorrect role value",
-                soap11HeaderBlock1WithParser.getRole().equals(
-                        "http://schemas.xmlsoap.org/soap/actor/next"));
-    }
-
-    public void testSOAP11GetMustUnderstandWithParser() {
-        assertTrue(
-                "SOAP 1.1 HeaderBlock Test Wiht Parser : - getMustUnderstatnd method returns incorrect value",
-                soap11HeaderBlock2WithParser.getMustUnderstand());
-        assertFalse(
-                "SOAP 1.1 HeaderBlock Test Wiht Parser : - getMustUnderstatnd method returns incorrect value",
-                soap11HeaderBlock3WithParser.getMustUnderstand());
-
-    }
-
-    //SOAP 1.2 SOAPHeaderBlock Test (With Parser)
-    public void testSOAP12GetRoleWithParser() {
-        assertTrue(
-                "SOAP 1.2 HeaderBlock Test Wiht Parser : - getRole method returns incorrect role value",
-                soap12HeaderBlock1WithParser.getRole().equals(
-                        "http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver"));
-    }
-
-    public void testSOAP12GetMustUnderstandWithParser() {
-        assertTrue(
-                "SOAP 1.2 HeaderBlock Test Wiht Parser : - getMustUnderstatnd method returns incorrect value",
-                soap12HeaderBlock1WithParser.getMustUnderstand());
-        assertFalse(
-                "SOAP 1.2 HeaderBlock Test Wiht Parser : - getMustUnderstatnd method returns incorrect value",
-                soap12HeaderBlock2WithParser.getMustUnderstand());
-        try {
-            soap12HeaderBlock3WithParser.getMustUnderstand();
-        } catch (Exception e) {
-            fail(
-                    "SOAP 1.2 HeaderBlock Test Wiht Parser : - getMustUnderstatnd method should returns exception when mustunderstand value is incorrect");
-        }
-    }
-}
+/*
+ * 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 java.util.Iterator;
+
+public class SOAPHeaderBlockTest extends SOAPHeaderTestCase {
+    protected SOAPHeaderBlock soap11HeaderBlock;
+    protected SOAPHeaderBlock soap12HeaderBlock;
+    protected SOAPHeaderBlock soap11HeaderBlock1WithParser;
+    protected SOAPHeaderBlock soap12HeaderBlock1WithParser;
+    protected SOAPHeaderBlock soap11HeaderBlock2WithParser;
+    protected SOAPHeaderBlock soap12HeaderBlock2WithParser;
+    protected SOAPHeaderBlock soap11HeaderBlock3WithParser;
+    protected SOAPHeaderBlock soap12HeaderBlock3WithParser;
+
+    public SOAPHeaderBlockTest(String testName) {
+        super(testName);
+    }
+
+    protected void setUp() throws Exception {
+        super.setUp();
+        soap11HeaderBlock =
+                soap11Factory.createSOAPHeaderBlock("testHeaderBlock",
+                        namespace,
+                        soap11Header);
+        soap12HeaderBlock =
+                soap12Factory.createSOAPHeaderBlock("testHeaderBlock",
+                        namespace,
+                        soap12Header);
+        Iterator iterator = soap11HeaderWithParser.examineAllHeaderBlocks();
+        iterator.next();
+        soap11HeaderBlock1WithParser = (SOAPHeaderBlock) iterator.next();
+        iterator.next();
+        soap11HeaderBlock2WithParser = (SOAPHeaderBlock) iterator.next();
+        iterator.next();
+        soap11HeaderBlock3WithParser = (SOAPHeaderBlock) iterator.next();
+
+        iterator = soap12HeaderWithParser.examineAllHeaderBlocks();
+        iterator.next();
+        soap12HeaderBlock1WithParser = (SOAPHeaderBlock) iterator.next();
+        iterator.next();
+        soap12HeaderBlock2WithParser = (SOAPHeaderBlock) iterator.next();
+        iterator.next();
+        soap12HeaderBlock3WithParser = (SOAPHeaderBlock) iterator.next();
+    }
+
+    //SOAP 1.1 SOAPHeaderBlock Test (Programaticaly Created)
+    public void testSOAP11SetRole() {
+        soap11HeaderBlock.setRole(
+                "http://schemas.xmlsoap.org/soap/envelope/actor/next");
+        assertTrue(
+                "SOAP 1.1 HeaderBlock Test : - After calling setRole method, getRole method returns incorrect role value",
+                soap11HeaderBlock.getRole().equals(
+                        "http://schemas.xmlsoap.org/soap/envelope/actor/next"));
+        try {
+            soap11HeaderBlock.setRole("Any Value");
+        } catch (Exception e) {
+            fail(
+                    "SOAP 1.1 HeaderBlock Test : - role value can not be set to any value");
+        }
+    }
+
+    public void testSOAP11GetRole() {
+        assertTrue(
+                "SOAP 1.1 HeaderBlock Test : - After creating SOAPHeaderBlock, it has a role",
+                soap11HeaderBlock.getRole() == null);
+        soap11HeaderBlock.setRole(
+                "http://schemas.xmlsoap.org/soap/envelope/actor/next");
+        assertTrue(
+                "SOAP 1.1 HeaderBlock Test : - After calling setRole method, getRole method returns incorrect role value",
+                soap11HeaderBlock.getRole().equals(
+                        "http://schemas.xmlsoap.org/soap/envelope/actor/next"));
+    }
+
+    public void testSOAP11SetMustUnderstand() {
+        soap11HeaderBlock.setMustUnderstand(true);
+        assertTrue(
+                "SOAP 1.1 HeaderBlock Test : - After setting MustUnderstand true calling setMustUnderstand method , getMustUnderstand method returns false",
+                soap11HeaderBlock.getMustUnderstand());
+        soap11HeaderBlock.setMustUnderstand(false);
+        assertFalse(
+                "SOAP 1.1 HeaderBlock Test : - After setting MustUnderstand false calling setMustUnderstand method , getMustUnderstand method returns true",
+                soap11HeaderBlock.getMustUnderstand());
+        soap11HeaderBlock.setMustUnderstand("1");
+        assertTrue(
+                "SOAP 1.1 HeaderBlock Test : - After setting MustUnderstand \"1\" calling setMustUnderstand method , getMustUnderstand method returns false",
+                soap11HeaderBlock.getMustUnderstand());
+        soap11HeaderBlock.setMustUnderstand("0");
+        assertFalse(
+                "SOAP 1.1 HeaderBlock Test : - After setting MustUnderstand \"0\" calling setMustUnderstand method , getMustUnderstand method returns true",
+                soap11HeaderBlock.getMustUnderstand());
+        try {
+            soap11HeaderBlock.setMustUnderstand("true");
+        } catch (Exception e) {
+            fail(
+                    "SOAP 1.1 HeaderBlock Test : - MustUnderstatnd value can not be set to any value rather than 1 or 0");
+        }
+    }
+
+    public void testSOAP11GetMustUnderstand() {
+        assertFalse(
+                "SOAP 1.1 HeaderBlock Test : - After creating SOAPHeaderBlock, default MustUnderstand value true",
+                soap11HeaderBlock.getMustUnderstand());
+        soap11HeaderBlock.setMustUnderstand(true);
+        assertTrue(
+                "SOAP 1.1 HeaderBlock Test : - After setting MustUnderstand true calling setMustUnderstand method , getMustUnderstand method returns false",
+                soap11HeaderBlock.getMustUnderstand());
+    }
+
+    //SOAP 1.2 SOAPHeaderBlock Test (Programaticaly Created)
+    public void testSOAP12SetRole() {
+        soap12HeaderBlock.setRole(
+                "http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver");
+        assertTrue(
+                "SOAP 1.2 HeaderBlock Test : - After calling setRole method, getRole method returns incorrect role value",
+                soap12HeaderBlock.getRole().equals(
+                        "http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver"));
+        try {
+            soap12HeaderBlock.setRole("Any Value");
+        } catch (Exception e) {
+            fail(
+                    "SOAP 1.2 HeaderBlock Test : - role value can not be set to any value");
+        }
+    }
+
+    public void testSOAP12GetRole() {
+        assertTrue(
+                "SOAP 1.2 HeaderBlock Test : - After creating SOAPHeaderBlock, it has a role",
+                soap12HeaderBlock.getRole() == null);
+        soap12HeaderBlock.setRole(
+                "http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver");
+        assertTrue(
+                "SOAP 1.2 HeaderBlock Test : - After calling setRole method, getRole method returns incorrect role value",
+                soap12HeaderBlock.getRole().equals(
+                        "http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver"));
+    }
+
+    public void testSOAP12SetMustUnderstand() {
+        soap12HeaderBlock.setMustUnderstand(true);
+        assertTrue(
+                "SOAP 1.2 HeaderBlock Test : - After setting MustUnderstand true calling setMustUnderstand method , getMustUnderstand method returns false",
+                soap12HeaderBlock.getMustUnderstand());
+        soap12HeaderBlock.setMustUnderstand(false);
+        assertFalse(
+                "SOAP 1.2 HeaderBlock Test : - After setting MustUnderstand false calling setMustUnderstand method , getMustUnderstand method returns true",
+                soap12HeaderBlock.getMustUnderstand());
+        soap12HeaderBlock.setMustUnderstand("true");
+        assertTrue(
+                "SOAP 1.2 HeaderBlock Test : - After setting MustUnderstand \"true\" calling setMustUnderstand method , getMustUnderstand method returns false",
+                soap12HeaderBlock.getMustUnderstand());
+        soap12HeaderBlock.setMustUnderstand("false");
+        assertFalse(
+                "SOAP 1.2 HeaderBlock Test : - After setting MustUnderstand \"false\" calling setMustUnderstand method , getMustUnderstand method returns true",
+                soap12HeaderBlock.getMustUnderstand());
+        soap12HeaderBlock.setMustUnderstand("1");
+        assertTrue(
+                "SOAP 1.2 HeaderBlock Test : - After setting MustUnderstand \"1\" calling setMustUnderstand method , getMustUnderstand method returns false",
+                soap12HeaderBlock.getMustUnderstand());
+        soap12HeaderBlock.setMustUnderstand("0");
+        assertFalse(
+                "SOAP 1.2 HeaderBlock Test : - After setting MustUnderstand \"0\" calling setMustUnderstand method , getMustUnderstand method returns true",
+                soap12HeaderBlock.getMustUnderstand());
+        try {
+            soap12HeaderBlock.setMustUnderstand("otherValue");
+            fail(
+                    "SOAP 1.2 HeaderBlock Test : - MustUnderstatnd value can not be set to any value rather than 1 , 0 , true , false");
+
+        } catch (Exception e) {
+            assertTrue(true);
+        }
+    }
+
+    public void testSOAP12GetMustUnderstand() {
+        assertFalse(
+                "SOAP 1.2 HeaderBlock Test : - After creating SOAPHeaderBlock, default MustUnderstand value true",
+                soap12HeaderBlock.getMustUnderstand());
+        soap12HeaderBlock.setMustUnderstand(true);
+        assertTrue(
+                "SOAP 1.2 HeaderBlock Test : - After setting MustUnderstand true calling setMustUnderstand method , getMustUnderstand method returns false",
+                soap12HeaderBlock.getMustUnderstand());
+    }
+
+    //SOAP 1.1 SOAPHeaderBlock Test (With Parser)
+    public void testSOAP11GetRoleWithParser() {
+        assertTrue(
+                "SOAP 1.1 HeaderBlock Test Wiht Parser : - getRole method returns incorrect role value",
+                soap11HeaderBlock1WithParser.getRole().equals(
+                        "http://schemas.xmlsoap.org/soap/actor/next"));
+    }
+
+    public void testSOAP11GetMustUnderstandWithParser() {
+        assertTrue(
+                "SOAP 1.1 HeaderBlock Test Wiht Parser : - getMustUnderstatnd method returns incorrect value",
+                soap11HeaderBlock2WithParser.getMustUnderstand());
+        assertFalse(
+                "SOAP 1.1 HeaderBlock Test Wiht Parser : - getMustUnderstatnd method returns incorrect value",
+                soap11HeaderBlock3WithParser.getMustUnderstand());
+
+    }
+
+    //SOAP 1.2 SOAPHeaderBlock Test (With Parser)
+    public void testSOAP12GetRoleWithParser() {
+        assertTrue(
+                "SOAP 1.2 HeaderBlock Test Wiht Parser : - getRole method returns incorrect role value",
+                soap12HeaderBlock1WithParser.getRole().equals(
+                        "http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver"));
+    }
+
+    public void testSOAP12GetMustUnderstandWithParser() {
+        assertTrue(
+                "SOAP 1.2 HeaderBlock Test Wiht Parser : - getMustUnderstatnd method returns incorrect value",
+                soap12HeaderBlock1WithParser.getMustUnderstand());
+        assertFalse(
+                "SOAP 1.2 HeaderBlock Test Wiht Parser : - getMustUnderstatnd method returns incorrect value",
+                soap12HeaderBlock2WithParser.getMustUnderstand());
+        try {
+            soap12HeaderBlock3WithParser.getMustUnderstand();
+        } catch (Exception e) {
+            fail(
+                    "SOAP 1.2 HeaderBlock Test Wiht Parser : - getMustUnderstatnd method should returns exception when mustunderstand value is incorrect");
+        }
+    }
+}

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