axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdani...@apache.org
Subject svn commit: r210165 [20/20] - in /webservices/axis/trunk/java/modules: addressing/src/org/apache/axis2/handlers/addressing/ addressing/test/org/apache/axis2/handlers/addressing/ addressing/test/org/apache/axis2/handlers/util/ core/src/org/apache/axis2/...
Date Mon, 11 Jul 2005 17:49:08 GMT
Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPHeaderTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPHeaderTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPHeaderTest.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPHeaderTest.java Mon Jul 11 10:48:55 2005
@@ -36,30 +36,54 @@
         soap11Header.addHeaderBlock("echoOk2", namespace);
         Iterator iterator = soap11Header.getChildren();
         SOAPHeaderBlock headerBlock1 = (SOAPHeaderBlock) iterator.next();
-        assertFalse("SOAP 1.1 Header Test : - After calling addHeaderBlock method twice, getChildren method returns empty iterator", headerBlock1 == null);
-        assertTrue("SOAP 1.1 Header Test : - HeaderBlock1 local name mismatch", headerBlock1.getLocalName().equals("echoOk1"));
-        assertTrue("SOAP 1.1 Header Test : - HeaderBlock1 namespace uri mismatch", headerBlock1.getNamespace().getName().equals("http://www.example.org"));
+        assertFalse(
+                "SOAP 1.1 Header Test : - After calling addHeaderBlock method twice, getChildren method returns empty iterator",
+                headerBlock1 == null);
+        assertTrue("SOAP 1.1 Header Test : - HeaderBlock1 local name mismatch",
+                headerBlock1.getLocalName().equals("echoOk1"));
+        assertTrue(
+                "SOAP 1.1 Header Test : - HeaderBlock1 namespace uri mismatch",
+                headerBlock1.getNamespace().getName().equals(
+                        "http://www.example.org"));
 
         SOAPHeaderBlock headerBlock2 = (SOAPHeaderBlock) iterator.next();
-        assertFalse("SOAP 1.1 Header Test : - After calling addHeaderBlock method twice, getChildren method returns an iterator with only one object", headerBlock2 == null);
-        assertTrue("SOAP 1.1 Header Test : - HeaderBlock2 local name mismatch", headerBlock2.getLocalName().equals("echoOk2"));
-        assertTrue("SOAP 1.1 Header Test : - HeaderBlock2 namespace uri mismatch", headerBlock2.getNamespace().getName().equals("http://www.example.org"));
-
-        assertTrue("SOAP 1.1 Header Test : - After calling addHeaderBlock method twice, getChildren method returns an iterator with more than two object", iterator.next() == null);
+        assertFalse(
+                "SOAP 1.1 Header Test : - After calling addHeaderBlock method twice, getChildren method returns an iterator with only one object",
+                headerBlock2 == null);
+        assertTrue("SOAP 1.1 Header Test : - HeaderBlock2 local name mismatch",
+                headerBlock2.getLocalName().equals("echoOk2"));
+        assertTrue(
+                "SOAP 1.1 Header Test : - HeaderBlock2 namespace uri mismatch",
+                headerBlock2.getNamespace().getName().equals(
+                        "http://www.example.org"));
+
+        assertTrue(
+                "SOAP 1.1 Header Test : - After calling addHeaderBlock method twice, getChildren method returns an iterator with more than two object",
+                iterator.next() == null);
     }
 
     public void testSOAP11ExamineHeaderBlocks() {
-        soap11Header.addHeaderBlock("echoOk1", namespace).setRole("http://schemas.xmlsoap.org/soap/envelope/actor/ultimateReceiver");
+        soap11Header.addHeaderBlock("echoOk1", namespace).setRole(
+                "http://schemas.xmlsoap.org/soap/envelope/actor/ultimateReceiver");
         ;
-        soap11Header.addHeaderBlock("echoOk2", namespace).setRole("http://schemas.xmlsoap.org/soap/envelope/actor/next");
-        Iterator iterator = soap11Header.examineHeaderBlocks("http://schemas.xmlsoap.org/soap/envelope/actor/next");
+        soap11Header.addHeaderBlock("echoOk2", namespace).setRole(
+                "http://schemas.xmlsoap.org/soap/envelope/actor/next");
+        Iterator iterator = soap11Header.examineHeaderBlocks(
+                "http://schemas.xmlsoap.org/soap/envelope/actor/next");
         iterator.hasNext();
         SOAPHeaderBlock headerBlockWithRole1 = (SOAPHeaderBlock) iterator.next();
-        assertTrue("SOAP 1.1 Header Test : - headerBlockWithRole local name mismatch", headerBlockWithRole1.getLocalName().equals("echoOk2"));
-        assertTrue("SOAP 1.1 Header Test : - headerBlockWithRole role value mismatch", headerBlockWithRole1.getRole().equals("http://schemas.xmlsoap.org/soap/envelope/actor/next"));
+        assertTrue(
+                "SOAP 1.1 Header Test : - headerBlockWithRole local name mismatch",
+                headerBlockWithRole1.getLocalName().equals("echoOk2"));
+        assertTrue(
+                "SOAP 1.1 Header Test : - headerBlockWithRole role value mismatch",
+                headerBlockWithRole1.getRole().equals(
+                        "http://schemas.xmlsoap.org/soap/envelope/actor/next"));
 
 
-        assertFalse("SOAP 1.1 Header Test : - header has three headerBlocks with the given role, but examineHeaderBlocks(String role) method returns an iterator with more than three objects", iterator.hasNext());
+        assertFalse(
+                "SOAP 1.1 Header Test : - header has three headerBlocks with the given role, but examineHeaderBlocks(String role) method returns an iterator with more than three objects",
+                iterator.hasNext());
     }
 
 //    public void testSOAP11ExtractHeaderBlocks() {
@@ -74,17 +98,31 @@
         Iterator iterator = soap11Header.examineAllHeaderBlocks();
         iterator.hasNext();
         SOAPHeaderBlock headerBlock1 = (SOAPHeaderBlock) iterator.next();
-        assertFalse("SOAP 1.1 Header Test : - After calling addHeaderBlock method twice, examineAllHeaderBlocks method returns empty iterator", headerBlock1 == null);
-        assertTrue("SOAP 1.1 Header Test : - HeaderBlock1 local name mismatch", headerBlock1.getLocalName().equals("echoOk1"));
-        assertTrue("SOAP 1.1 Header Test : - HeaderBlock1 namespace uri mismatch", headerBlock1.getNamespace().getName().equals("http://www.example.org"));
+        assertFalse(
+                "SOAP 1.1 Header Test : - After calling addHeaderBlock method twice, examineAllHeaderBlocks method returns empty iterator",
+                headerBlock1 == null);
+        assertTrue("SOAP 1.1 Header Test : - HeaderBlock1 local name mismatch",
+                headerBlock1.getLocalName().equals("echoOk1"));
+        assertTrue(
+                "SOAP 1.1 Header Test : - HeaderBlock1 namespace uri mismatch",
+                headerBlock1.getNamespace().getName().equals(
+                        "http://www.example.org"));
 
         iterator.hasNext();
         SOAPHeaderBlock headerBlock2 = (SOAPHeaderBlock) iterator.next();
-        assertFalse("SOAP 1.1 Header Test : - After calling addHeaderBlock method twice, examineAllHeaderBlocks method returns an iterator with only one object", headerBlock2 == null);
-        assertTrue("SOAP 1.1 Header Test : - HeaderBlock2 local name mismatch", headerBlock2.getLocalName().equals("echoOk2"));
-        assertTrue("SOAP 1.1 Header Test : - HeaderBlock2 namespace uri mismatch", headerBlock2.getNamespace().getName().equals("http://www.example.org"));
-
-        assertFalse("SOAP 1.1 Header Test : - After calling addHeaderBlock method twice, examineAllHeaderBlocks method returns an iterator with more than two object", iterator.hasNext());
+        assertFalse(
+                "SOAP 1.1 Header Test : - After calling addHeaderBlock method twice, examineAllHeaderBlocks method returns an iterator with only one object",
+                headerBlock2 == null);
+        assertTrue("SOAP 1.1 Header Test : - HeaderBlock2 local name mismatch",
+                headerBlock2.getLocalName().equals("echoOk2"));
+        assertTrue(
+                "SOAP 1.1 Header Test : - HeaderBlock2 namespace uri mismatch",
+                headerBlock2.getNamespace().getName().equals(
+                        "http://www.example.org"));
+
+        assertFalse(
+                "SOAP 1.1 Header Test : - After calling addHeaderBlock method twice, examineAllHeaderBlocks method returns an iterator with more than two object",
+                iterator.hasNext());
 
     }
 
@@ -95,10 +133,17 @@
 
     public void testSOAP11getHeaderBlocksWithNSURI() {
         soap11Header.addHeaderBlock("echoOk1", namespace);
-        soap11Header.addHeaderBlock("echoOk2", omFactory.createOMNamespace("http://www.test1.org", "test1"));
-        ArrayList arrayList = soap11Header.getHeaderBlocksWithNSURI("http://www.test1.org");
-        assertTrue("SOAP 1.1 Header Test : - getHeaderBlocksWithNSURI returns an arrayList of incorrect size", arrayList.size() == 1);
-        assertTrue("SOAP 1.1 Header Test : - headerBlock of given namespace uri mismatch", ((SOAPHeaderBlock) arrayList.get(0)).getNamespace().getName().equals("http://www.test1.org"));
+        soap11Header.addHeaderBlock("echoOk2",
+                omFactory.createOMNamespace("http://www.test1.org", "test1"));
+        ArrayList arrayList = soap11Header.getHeaderBlocksWithNSURI(
+                "http://www.test1.org");
+        assertTrue(
+                "SOAP 1.1 Header Test : - getHeaderBlocksWithNSURI returns an arrayList of incorrect size",
+                arrayList.size() == 1);
+        assertTrue(
+                "SOAP 1.1 Header Test : - headerBlock of given namespace uri mismatch",
+                ((SOAPHeaderBlock) arrayList.get(0)).getNamespace().getName()
+                .equals("http://www.test1.org"));
     }
 
     //SOAP 1.2 Header Test (Programaticaly Created)----------------------------------------------------------------------------------
@@ -107,48 +152,83 @@
         soap12Header.addHeaderBlock("echoOk2", namespace);
         Iterator iterator = soap12Header.getChildren();
         SOAPHeaderBlock headerBlock1 = (SOAPHeaderBlock) iterator.next();
-        assertFalse("SOAP 1.2 Header Test : - After calling addHeaderBlock method, getChildren method returns empty iterator", headerBlock1 == null);
-        assertTrue("SOAP 1.2 Header Test : - HeaderBlock1 local name mismatch", headerBlock1.getLocalName().equals("echoOk1"));
-        assertTrue("SOAP 1.2 Header Test : - HeaderBlock1 namespace uri mismatch", headerBlock1.getNamespace().getName().equals("http://www.example.org"));
+        assertFalse(
+                "SOAP 1.2 Header Test : - After calling addHeaderBlock method, getChildren method returns empty iterator",
+                headerBlock1 == null);
+        assertTrue("SOAP 1.2 Header Test : - HeaderBlock1 local name mismatch",
+                headerBlock1.getLocalName().equals("echoOk1"));
+        assertTrue(
+                "SOAP 1.2 Header Test : - HeaderBlock1 namespace uri mismatch",
+                headerBlock1.getNamespace().getName().equals(
+                        "http://www.example.org"));
 
         SOAPHeaderBlock headerBlock2 = (SOAPHeaderBlock) iterator.next();
-        assertFalse("SOAP 1.2 Header Test : - After calling addHeaderBlock method, getChildren method returns an iterator with only one object", headerBlock2 == null);
-        assertTrue("SOAP 1.2 Header Test : - HeaderBlock2 local name mismatch", headerBlock2.getLocalName().equals("echoOk2"));
-        assertTrue("SOAP 1.2 Header Test : - HeaderBlock2 namespace uri mismatch", headerBlock2.getNamespace().getName().equals("http://www.example.org"));
-
-        assertTrue("SOAP 1.2 Header Test : - After calling addHeaderBlock method twice, getChildren method returns an iterator with more than two elements", iterator.next() == null);
+        assertFalse(
+                "SOAP 1.2 Header Test : - After calling addHeaderBlock method, getChildren method returns an iterator with only one object",
+                headerBlock2 == null);
+        assertTrue("SOAP 1.2 Header Test : - HeaderBlock2 local name mismatch",
+                headerBlock2.getLocalName().equals("echoOk2"));
+        assertTrue(
+                "SOAP 1.2 Header Test : - HeaderBlock2 namespace uri mismatch",
+                headerBlock2.getNamespace().getName().equals(
+                        "http://www.example.org"));
+
+        assertTrue(
+                "SOAP 1.2 Header Test : - After calling addHeaderBlock method twice, getChildren method returns an iterator with more than two elements",
+                iterator.next() == null);
     }
 
     public void testSOAP12ExamineHeaderBlocks() {
         soap12Header.addHeaderBlock("echoOk1", namespace);
-        soap12Header.addHeaderBlock("echoOk2", namespace).setRole("http://schemas.xmlsoap.org/soap/envelope/actor/ultimateReceiver");
-        Iterator iterator = soap12Header.examineHeaderBlocks("http://schemas.xmlsoap.org/soap/envelope/actor/ultimateReceiver");
+        soap12Header.addHeaderBlock("echoOk2", namespace).setRole(
+                "http://schemas.xmlsoap.org/soap/envelope/actor/ultimateReceiver");
+        Iterator iterator = soap12Header.examineHeaderBlocks(
+                "http://schemas.xmlsoap.org/soap/envelope/actor/ultimateReceiver");
         iterator.hasNext();
         SOAPHeaderBlock headerBlockWithRole = (SOAPHeaderBlock) iterator.next();
-        assertTrue("SOAP 1.2 Header Test : - headerBlockWithRole local name mismatch", headerBlockWithRole.getLocalName().equals("echoOk2"));
-        assertTrue("SOAP 1.2 Header Test : - headerBlockWithRole role value mismatch", headerBlockWithRole.getRole().equals("http://schemas.xmlsoap.org/soap/envelope/actor/ultimateReceiver"));
-
-        assertFalse("SOAP 1.2 Header Test : - header has one headerBlock with role, but examineHeaderBlocks(String role) method returns an iterator with more than one object", iterator.hasNext());
+        assertTrue(
+                "SOAP 1.2 Header Test : - headerBlockWithRole local name mismatch",
+                headerBlockWithRole.getLocalName().equals("echoOk2"));
+        assertTrue(
+                "SOAP 1.2 Header Test : - headerBlockWithRole role value mismatch",
+                headerBlockWithRole.getRole().equals(
+                        "http://schemas.xmlsoap.org/soap/envelope/actor/ultimateReceiver"));
+
+        assertFalse(
+                "SOAP 1.2 Header Test : - header has one headerBlock with role, but examineHeaderBlocks(String role) method returns an iterator with more than one object",
+                iterator.hasNext());
 
     }
 
 
     public void testSOAP12ExamineMustUnderstandHeaderBlocks() {
-        soap12Header.addHeaderBlock("echoOk1", namespace).setRole("http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver");
+        soap12Header.addHeaderBlock("echoOk1", namespace).setRole(
+                "http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver");
 
-        SOAPHeaderBlock headerBlock1 = soap12Header.addHeaderBlock("echoOk2", namespace);
-        headerBlock1.setRole("http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver");
+        SOAPHeaderBlock headerBlock1 = soap12Header.addHeaderBlock("echoOk2",
+                namespace);
+        headerBlock1.setRole(
+                "http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver");
         headerBlock1.setMustUnderstand(true);
 
-        soap12Header.addHeaderBlock("echoOk3", namespace).setMustUnderstand(true);
+        soap12Header.addHeaderBlock("echoOk3", namespace).setMustUnderstand(
+                true);
 
-        Iterator iterator = soap12Header.examineMustUnderstandHeaderBlocks("http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver");
+        Iterator iterator = soap12Header.examineMustUnderstandHeaderBlocks(
+                "http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver");
         iterator.hasNext();
         SOAPHeaderBlock headerBlock = (SOAPHeaderBlock) iterator.next();
-        assertFalse("SOAP 1.2 Header Test : - examineMustUnderstandHeaderBlocks method returns empty iterator", headerBlock == null);
-        assertTrue("SOAP 1.2 Header Test : - HeaderBlock local name mismatch", headerBlock.getLocalName().equals("echoOk2"));
-        assertTrue("SOAP 1.2 Header Test : - HeaderBlock role value mismatch", headerBlock.getRole().equals("http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver"));
-        assertFalse("SOAP 1.2 Header Test : - examineMustUnderstandHeaderBlocks method returns an iterator with more than one object", iterator.hasNext());
+        assertFalse(
+                "SOAP 1.2 Header Test : - examineMustUnderstandHeaderBlocks method returns empty iterator",
+                headerBlock == null);
+        assertTrue("SOAP 1.2 Header Test : - HeaderBlock local name mismatch",
+                headerBlock.getLocalName().equals("echoOk2"));
+        assertTrue("SOAP 1.2 Header Test : - HeaderBlock role value mismatch",
+                headerBlock.getRole().equals(
+                        "http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver"));
+        assertFalse(
+                "SOAP 1.2 Header Test : - examineMustUnderstandHeaderBlocks method returns an iterator with more than one object",
+                iterator.hasNext());
     }
 
     public void testSOAP12ExamineAllHeaderBlocks() {
@@ -157,16 +237,30 @@
         Iterator iterator = soap12Header.examineAllHeaderBlocks();
         iterator.hasNext();
         SOAPHeaderBlock headerBlock1 = (SOAPHeaderBlock) iterator.next();
-        assertFalse("SOAP 1.2 Header Test : - After calling addHeaderBlock method twice, examineAllHeaderBlocks method returns empty iterator", headerBlock1 == null);
-        assertTrue("SOAP 1.2 Header Test : - HeaderBlock1 local name mismatch", headerBlock1.getLocalName().equals("echoOk1"));
-        assertTrue("SOAP 1.2 Header Test : - HeaderBlock1 namespace uri mismatch", headerBlock1.getNamespace().getName().equals("http://www.example.org"));
+        assertFalse(
+                "SOAP 1.2 Header Test : - After calling addHeaderBlock method twice, examineAllHeaderBlocks method returns empty iterator",
+                headerBlock1 == null);
+        assertTrue("SOAP 1.2 Header Test : - HeaderBlock1 local name mismatch",
+                headerBlock1.getLocalName().equals("echoOk1"));
+        assertTrue(
+                "SOAP 1.2 Header Test : - HeaderBlock1 namespace uri mismatch",
+                headerBlock1.getNamespace().getName().equals(
+                        "http://www.example.org"));
 
         SOAPHeaderBlock headerBlock2 = (SOAPHeaderBlock) iterator.next();
-        assertFalse("SOAP 1.2 Header Test : - After calling addHeaderBlock method twice, examineAllHeaderBlocks method returns an iterator with only one object", headerBlock2 == null);
-        assertTrue("SOAP 1.2 Header Test : - HeaderBlock2 local name mismatch", headerBlock2.getLocalName().equals("echoOk2"));
-        assertTrue("SOAP 1.2 Header Test : - HeaderBlock2 namespace uri mismatch", headerBlock2.getNamespace().getName().equals("http://www.example.org"));
-
-        assertFalse("SOAP 1.2 Header Test : - After calling addHeaderBlock method twice, examineAllHeaderBlocks method returns an iterator with more than two object", iterator.hasNext());
+        assertFalse(
+                "SOAP 1.2 Header Test : - After calling addHeaderBlock method twice, examineAllHeaderBlocks method returns an iterator with only one object",
+                headerBlock2 == null);
+        assertTrue("SOAP 1.2 Header Test : - HeaderBlock2 local name mismatch",
+                headerBlock2.getLocalName().equals("echoOk2"));
+        assertTrue(
+                "SOAP 1.2 Header Test : - HeaderBlock2 namespace uri mismatch",
+                headerBlock2.getNamespace().getName().equals(
+                        "http://www.example.org"));
+
+        assertFalse(
+                "SOAP 1.2 Header Test : - After calling addHeaderBlock method twice, examineAllHeaderBlocks method returns an iterator with more than two object",
+                iterator.hasNext());
     }
 //    public void testSOAP12ExtractAllHeaderBlocks() {
 //
@@ -174,108 +268,199 @@
 
     public void testSOAP12getHeaderBlocksWithNSURI() {
         soap12Header.addHeaderBlock("echoOk1", namespace);
-        soap12Header.addHeaderBlock("echoOk2", omFactory.createOMNamespace("http://www.test1.org", "test1"));
-        ArrayList arrayList = soap12Header.getHeaderBlocksWithNSURI("http://www.test1.org");
-        assertTrue("SOAP 1.2 Header Test : - getHeaderBlocksWithNSURI returns an arrayList of incorrect size", arrayList.size() == 1);
-        assertTrue("SOAP 1.2 Header Test : - headerBlock of given namespace uri, mismatch", ((SOAPHeaderBlock) arrayList.get(0)).getNamespace().getName().equals("http://www.test1.org"));
+        soap12Header.addHeaderBlock("echoOk2",
+                omFactory.createOMNamespace("http://www.test1.org", "test1"));
+        ArrayList arrayList = soap12Header.getHeaderBlocksWithNSURI(
+                "http://www.test1.org");
+        assertTrue(
+                "SOAP 1.2 Header Test : - getHeaderBlocksWithNSURI returns an arrayList of incorrect size",
+                arrayList.size() == 1);
+        assertTrue(
+                "SOAP 1.2 Header Test : - headerBlock of given namespace uri, mismatch",
+                ((SOAPHeaderBlock) arrayList.get(0)).getNamespace().getName()
+                .equals("http://www.test1.org"));
     }
 
     //SOAP 1.1 Header Test (With Parser)---------------------------------------------------------------------------------------------
     public void testSOAP11ExamineHeaderBlocksWithParser() {
-        Iterator iterator = soap11HeaderWithParser.examineHeaderBlocks("http://schemas.xmlsoap.org/soap/actor/next");
+        Iterator iterator = soap11HeaderWithParser.examineHeaderBlocks(
+                "http://schemas.xmlsoap.org/soap/actor/next");
         iterator.hasNext();
         SOAPHeaderBlock headerBlock1 = (SOAPHeaderBlock) iterator.next();
-        assertEquals("SOAP 1.1 Header Test With Parser : - headerBlock1 localname mismatch", headerBlock1.getLocalName(), "From");
-        assertTrue("SOAP 1.1 Header Test With Parser : - headerBlock1 role value mismatch", headerBlock1.getRole().equals("http://schemas.xmlsoap.org/soap/actor/next"));
+        assertEquals(
+                "SOAP 1.1 Header Test With Parser : - headerBlock1 localname mismatch",
+                headerBlock1.getLocalName(),
+                "From");
+        assertTrue(
+                "SOAP 1.1 Header Test With Parser : - headerBlock1 role value mismatch",
+                headerBlock1.getRole().equals(
+                        "http://schemas.xmlsoap.org/soap/actor/next"));
         iterator.hasNext();
         SOAPHeaderBlock headerBlock2 = (SOAPHeaderBlock) iterator.next();
-        assertTrue("SOAP 1.1 Header Test With Parser : - headerBlock2 localname mmismatch", headerBlock2.getLocalName().equals("MessageID"));
-        assertTrue("SOAP 1.1 Header Test With Parser : - headerBlock2 role value mmismatch", headerBlock2.getRole().equals("http://schemas.xmlsoap.org/soap/actor/next"));
-
-        assertFalse("SOAP 1.1 Header Test With Parser : - examineHeaderBlocks(String role) method returns an iterator with more than two objects", iterator.hasNext());
+        assertTrue(
+                "SOAP 1.1 Header Test With Parser : - headerBlock2 localname mmismatch",
+                headerBlock2.getLocalName().equals("MessageID"));
+        assertTrue(
+                "SOAP 1.1 Header Test With Parser : - headerBlock2 role value mmismatch",
+                headerBlock2.getRole().equals(
+                        "http://schemas.xmlsoap.org/soap/actor/next"));
+
+        assertFalse(
+                "SOAP 1.1 Header Test With Parser : - examineHeaderBlocks(String role) method returns an iterator with more than two objects",
+                iterator.hasNext());
     }
 
     public void testSOAP11ExamineMustUnderstandHeaderBlocksWithParser() {
-        Iterator iterator = soap11HeaderWithParser.examineMustUnderstandHeaderBlocks("http://schemas.xmlsoap.org/soap/actor/next");
+        Iterator iterator = soap11HeaderWithParser.examineMustUnderstandHeaderBlocks(
+                "http://schemas.xmlsoap.org/soap/actor/next");
         iterator.hasNext();
         SOAPHeaderBlock headerBlock1 = (SOAPHeaderBlock) iterator.next();
-        assertTrue("SOAP 1.1 Header Test With Parser : - headerBlock1 localname mmismatch", headerBlock1.getLocalName().equals("MessageID"));
-        assertTrue("SOAP 1.1 Header Test With Parser : - headerBlock1 role value mmismatch", headerBlock1.getRole().equals("http://schemas.xmlsoap.org/soap/actor/next"));
-
-        assertFalse("SOAP 1.1 Header Test With Parser : - examineMustUnderstandHeaderBlocks(String role) method returns an iterator with more than one objects", iterator.hasNext());
+        assertTrue(
+                "SOAP 1.1 Header Test With Parser : - headerBlock1 localname mmismatch",
+                headerBlock1.getLocalName().equals("MessageID"));
+        assertTrue(
+                "SOAP 1.1 Header Test With Parser : - headerBlock1 role value mmismatch",
+                headerBlock1.getRole().equals(
+                        "http://schemas.xmlsoap.org/soap/actor/next"));
+
+        assertFalse(
+                "SOAP 1.1 Header Test With Parser : - examineMustUnderstandHeaderBlocks(String role) method returns an iterator with more than one objects",
+                iterator.hasNext());
     }
 
     public void testSOAP11ExamineAllHeaderBlocksWithParser() {
         Iterator iterator = soap11HeaderWithParser.examineAllHeaderBlocks();
         iterator.hasNext();
         SOAPHeaderBlock headerBlock1 = (SOAPHeaderBlock) iterator.next();
-        assertTrue("SOAP 1.1 Header Test With Parser : - headerBlock1 localname mmismatch", headerBlock1.getLocalName().equals("From"));
+        assertTrue(
+                "SOAP 1.1 Header Test With Parser : - headerBlock1 localname mmismatch",
+                headerBlock1.getLocalName().equals("From"));
         iterator.hasNext();
         SOAPHeaderBlock headerBlock2 = (SOAPHeaderBlock) iterator.next();
-        assertTrue("SOAP 1.1 Header Test With Parser : - headerBlock1 localname mmismatch", headerBlock2.getLocalName().equals("MessageID"));
+        assertTrue(
+                "SOAP 1.1 Header Test With Parser : - headerBlock1 localname mmismatch",
+                headerBlock2.getLocalName().equals("MessageID"));
         iterator.hasNext();
         SOAPHeaderBlock headerBlock3 = (SOAPHeaderBlock) iterator.next();
-        assertTrue("SOAP 1.1 Header Test With Parser : - headerBlock1 localname mmismatch", headerBlock3.getLocalName().equals("To"));
-
-        assertFalse("SOAP 1.1 Header Test With Parser : - examineAllHeaderBlocks method returns an iterator with more than three objects", iterator.hasNext());
+        assertTrue(
+                "SOAP 1.1 Header Test With Parser : - headerBlock1 localname mmismatch",
+                headerBlock3.getLocalName().equals("To"));
+
+        assertFalse(
+                "SOAP 1.1 Header Test With Parser : - examineAllHeaderBlocks method returns an iterator with more than three objects",
+                iterator.hasNext());
     }
 
     public void testSOAP11getHeaderBlocksWithNSURIWithParser() {
-        ArrayList arrayList = soap11HeaderWithParser.getHeaderBlocksWithNSURI("http://example.org/ts-tests");
-        assertTrue("SOAP 1.1 Header Test With Parser : - getHeaderBlocksWithNSURI returns an arrayList of incorrect size", arrayList.size() == 1);
-        assertTrue("SOAP 1.1 Header Test With Parser : - headerBlock of given namespace uri, local name mismatch", ((SOAPHeaderBlock) arrayList.get(0)).getLocalName().equals("MessageID"));
-        assertTrue("SOAP 1.1 Header Test With Parser : - headerBlock of given namespace uri, mismatch", ((SOAPHeaderBlock) arrayList.get(0)).getNamespace().getName().equals("http://example.org/ts-tests"));
+        ArrayList arrayList = soap11HeaderWithParser.getHeaderBlocksWithNSURI(
+                "http://example.org/ts-tests");
+        assertTrue(
+                "SOAP 1.1 Header Test With Parser : - getHeaderBlocksWithNSURI returns an arrayList of incorrect size",
+                arrayList.size() == 1);
+        assertTrue(
+                "SOAP 1.1 Header Test With Parser : - headerBlock of given namespace uri, local name mismatch",
+                ((SOAPHeaderBlock) arrayList.get(0)).getLocalName().equals(
+                        "MessageID"));
+        assertTrue(
+                "SOAP 1.1 Header Test With Parser : - headerBlock of given namespace uri, mismatch",
+                ((SOAPHeaderBlock) arrayList.get(0)).getNamespace().getName()
+                .equals("http://example.org/ts-tests"));
     }
 
     //SOAP 1.2 Header Test (With Parser)-------------------------------------------------------------------------------------------
     public void testSOAP12ExamineHeaderBlocksWithParser() {
-        Iterator iterator = soap12HeaderWithParser.examineHeaderBlocks("http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver");
+        Iterator iterator = soap12HeaderWithParser.examineHeaderBlocks(
+                "http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver");
         iterator.hasNext();
         SOAPHeaderBlock headerBlock1 = (SOAPHeaderBlock) iterator.next();
-        assertTrue("SOAP 1.2 Header Test With Parser : - headerBlock1 localname mmismatch", headerBlock1.getLocalName().equals("echoOk"));
-        assertTrue("SOAP 1.2 Header Test With Parser : - headerBlock1 role value mmismatch", headerBlock1.getRole().equals("http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver"));
+        assertTrue(
+                "SOAP 1.2 Header Test With Parser : - headerBlock1 localname mmismatch",
+                headerBlock1.getLocalName().equals("echoOk"));
+        assertTrue(
+                "SOAP 1.2 Header Test With Parser : - headerBlock1 role value mmismatch",
+                headerBlock1.getRole().equals(
+                        "http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver"));
         iterator.hasNext();
         SOAPHeaderBlock headerBlock2 = (SOAPHeaderBlock) iterator.next();
-        assertTrue("SOAP 1.2 Header Test With Parser : - headerBlock2 localname mmismatch", headerBlock2.getLocalName().equals("echoOk2"));
-        assertTrue("SOAP 1.2 Header Test With Parser : - headerBlock2 role value mmismatch", headerBlock2.getRole().equals("http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver"));
-
-        assertFalse("SOAP 1.2 Header Test With Parser : - examineHeaderBlocks(String role) method returns an iterator with more than two objects", iterator.hasNext());
+        assertTrue(
+                "SOAP 1.2 Header Test With Parser : - headerBlock2 localname mmismatch",
+                headerBlock2.getLocalName().equals("echoOk2"));
+        assertTrue(
+                "SOAP 1.2 Header Test With Parser : - headerBlock2 role value mmismatch",
+                headerBlock2.getRole().equals(
+                        "http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver"));
+
+        assertFalse(
+                "SOAP 1.2 Header Test With Parser : - examineHeaderBlocks(String role) method returns an iterator with more than two objects",
+                iterator.hasNext());
     }
 
     public void testSOAP12ExamineMustUnderstandHeaderBlocksWithParser() {
-        Iterator iterator = soap12HeaderWithParser.examineMustUnderstandHeaderBlocks("http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver");
+        Iterator iterator = soap12HeaderWithParser.examineMustUnderstandHeaderBlocks(
+                "http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver");
         iterator.hasNext();
         SOAPHeaderBlock headerBlock1 = (SOAPHeaderBlock) iterator.next();
-        assertEquals("SOAP 1.2 Header Test With Parser : - headerBlock localname mmismatch", headerBlock1.getLocalName(), "echoOk");
-        assertEquals("SOAP 1.2 Header Test With Parser : - headerBlock role value mmismatch", headerBlock1.getRole(), "http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver");
+        assertEquals(
+                "SOAP 1.2 Header Test With Parser : - headerBlock localname mmismatch",
+                headerBlock1.getLocalName(),
+                "echoOk");
+        assertEquals(
+                "SOAP 1.2 Header Test With Parser : - headerBlock role value mmismatch",
+                headerBlock1.getRole(),
+                "http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver");
 
         iterator.hasNext();
         SOAPHeaderBlock headerBlock2 = (SOAPHeaderBlock) iterator.next();
-        assertEquals("SOAP 1.2 Header Test With Parser : - headerBlock localname mmismatch", headerBlock2.getLocalName(), "echoOk2");
-        assertEquals("SOAP 1.2 Header Test With Parser : - headerBlock role value mmismatch", headerBlock1.getRole(), "http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver");
-
-        assertFalse("SOAP 1.2 Header Test With Parser : - examineMustUnderstandHeaderBlocks(String role) method returns an iterator with more than one objects", iterator.hasNext());
+        assertEquals(
+                "SOAP 1.2 Header Test With Parser : - headerBlock localname mmismatch",
+                headerBlock2.getLocalName(),
+                "echoOk2");
+        assertEquals(
+                "SOAP 1.2 Header Test With Parser : - headerBlock role value mmismatch",
+                headerBlock1.getRole(),
+                "http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver");
+
+        assertFalse(
+                "SOAP 1.2 Header Test With Parser : - examineMustUnderstandHeaderBlocks(String role) method returns an iterator with more than one objects",
+                iterator.hasNext());
     }
 
     public void testSOAP12ExamineAllHeaderBlocksWithParser() {
         Iterator iterator = soap12HeaderWithParser.examineAllHeaderBlocks();
         iterator.next();
         SOAPHeaderBlock headerBlock1 = (SOAPHeaderBlock) iterator.next();
-        assertTrue("SOAP 1.2 Header Test With Parser : - headerBlock1 localname mmismatch", headerBlock1.getLocalName().equals("echoOk"));
+        assertTrue(
+                "SOAP 1.2 Header Test With Parser : - headerBlock1 localname mmismatch",
+                headerBlock1.getLocalName().equals("echoOk"));
         iterator.next();
         SOAPHeaderBlock headerBlock2 = (SOAPHeaderBlock) iterator.next();
-        assertTrue("SOAP 1.2 Header Test With Parser : - headerBlock1 localname mmismatch", headerBlock2.getLocalName().equals("echoOk1"));
+        assertTrue(
+                "SOAP 1.2 Header Test With Parser : - headerBlock1 localname mmismatch",
+                headerBlock2.getLocalName().equals("echoOk1"));
         iterator.next();
         SOAPHeaderBlock headerBlock3 = (SOAPHeaderBlock) iterator.next();
-        assertTrue("SOAP 1.2 Header Test With Parser : - headerBlock1 localname mmismatch", headerBlock3.getLocalName().equals("echoOk2"));
-
-        assertFalse("SOAP 1.2 Header Test With Parser : - examineAllHeaderBlocks method returns an iterator with more than three objects", iterator.hasNext());
+        assertTrue(
+                "SOAP 1.2 Header Test With Parser : - headerBlock1 localname mmismatch",
+                headerBlock3.getLocalName().equals("echoOk2"));
+
+        assertFalse(
+                "SOAP 1.2 Header Test With Parser : - examineAllHeaderBlocks method returns an iterator with more than three objects",
+                iterator.hasNext());
     }
 
     public void testSOAP12getHeaderBlocksWithNSURIWithParser() {
-        ArrayList arrayList = soap12HeaderWithParser.getHeaderBlocksWithNSURI("http://example.org/ts-tests");
-        assertTrue("SOAP 1.2 Header Test With Parser : - getHeaderBlocksWithNSURI returns an arrayList of incorrect size", arrayList.size() == 1);
-        assertTrue("SOAP 1.2 Header Test With Parser : - headerBlock of given namespace uri, local name mismatch", ((SOAPHeaderBlock) arrayList.get(0)).getLocalName().equals("echoOk"));
-        assertTrue("SOAP 1.2 Header Test With Parser : - headerBlock of given namespace uri, mismatch", ((SOAPHeaderBlock) arrayList.get(0)).getNamespace().getName().equals("http://example.org/ts-tests"));
+        ArrayList arrayList = soap12HeaderWithParser.getHeaderBlocksWithNSURI(
+                "http://example.org/ts-tests");
+        assertTrue(
+                "SOAP 1.2 Header Test With Parser : - getHeaderBlocksWithNSURI returns an arrayList of incorrect size",
+                arrayList.size() == 1);
+        assertTrue(
+                "SOAP 1.2 Header Test With Parser : - headerBlock of given namespace uri, local name mismatch",
+                ((SOAPHeaderBlock) arrayList.get(0)).getLocalName().equals(
+                        "echoOk"));
+        assertTrue(
+                "SOAP 1.2 Header Test With Parser : - headerBlock of given namespace uri, mismatch",
+                ((SOAPHeaderBlock) arrayList.get(0)).getNamespace().getName()
+                .equals("http://example.org/ts-tests"));
     }
 }

Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPHeaderTestCase.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPHeaderTestCase.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPHeaderTestCase.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPHeaderTestCase.java Mon Jul 11 10:48:55 2005
@@ -27,7 +27,8 @@
 
     public SOAPHeaderTestCase(String testName) {
         super(testName);
-        namespace = omFactory.createOMNamespace("http://www.example.org", "test");
+        namespace =
+                omFactory.createOMNamespace("http://www.example.org", "test");
     }
 
     protected void setUp() throws Exception {

Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPTestCase.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPTestCase.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPTestCase.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPTestCase.java Mon Jul 11 10:48:55 2005
@@ -57,14 +57,20 @@
         soap11Envelope = soap11Factory.createSOAPEnvelope();
         soap12Envelope = soap12Factory.createSOAPEnvelope();
 
-        soap11EnvelopeWithParser = (SOAPEnvelope) this.getSOAPBuilder(SOAP11_FILE_NAME).getDocumentElement();
-        soap12EnvelopeWithParser = (SOAPEnvelope) this.getSOAPBuilder(SOAP12_FILE_NAME).getDocumentElement();
+        soap11EnvelopeWithParser =
+                (SOAPEnvelope) this.getSOAPBuilder(SOAP11_FILE_NAME)
+                .getDocumentElement();
+        soap12EnvelopeWithParser =
+                (SOAPEnvelope) this.getSOAPBuilder(SOAP12_FILE_NAME)
+                .getDocumentElement();
     }
 
     protected StAXSOAPModelBuilder getSOAPBuilder(String fileName) {
         XMLStreamReader parser = null;
         try {
-            parser = XMLInputFactory.newInstance().createXMLStreamReader(new FileReader(getTestResourceFile(fileName)));
+            parser =
+                    XMLInputFactory.newInstance().createXMLStreamReader(
+                            new FileReader(getTestResourceFile(fileName)));
         } catch (XMLStreamException e) {
             e.printStackTrace();
         } catch (FileNotFoundException e) {

Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/impl/llom/builder/StAXSOAPModelBuilderTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/impl/llom/builder/StAXSOAPModelBuilderTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/impl/llom/builder/StAXSOAPModelBuilderTest.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/impl/llom/builder/StAXSOAPModelBuilderTest.java Mon Jul 11 10:48:55 2005
@@ -4,7 +4,19 @@
 import org.apache.axis2.om.OMAttribute;
 import org.apache.axis2.om.OMElement;
 import org.apache.axis2.om.OMXMLParserWrapper;
-import org.apache.axis2.soap.*;
+import org.apache.axis2.soap.SOAPBody;
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.SOAPFault;
+import org.apache.axis2.soap.SOAPFaultCode;
+import org.apache.axis2.soap.SOAPFaultDetail;
+import org.apache.axis2.soap.SOAPFaultNode;
+import org.apache.axis2.soap.SOAPFaultReason;
+import org.apache.axis2.soap.SOAPFaultRole;
+import org.apache.axis2.soap.SOAPFaultSubCode;
+import org.apache.axis2.soap.SOAPFaultText;
+import org.apache.axis2.soap.SOAPFaultValue;
+import org.apache.axis2.soap.SOAPHeader;
+import org.apache.axis2.soap.SOAPHeaderBlock;
 import org.apache.axis2.soap.impl.llom.SOAPConstants;
 import org.apache.axis2.soap.impl.llom.soap11.SOAP11Constants;
 import org.apache.axis2.soap.impl.llom.soap12.SOAP12Constants;
@@ -117,246 +129,430 @@
 
 
         try {
-            XMLStreamReader sopa12Parser = XMLInputFactory.newInstance().createXMLStreamReader(new StringReader(soap12Message));
-            OMXMLParserWrapper soap12Builder = new StAXSOAPModelBuilder(sopa12Parser);
+            XMLStreamReader sopa12Parser = XMLInputFactory.newInstance()
+                    .createXMLStreamReader(new StringReader(soap12Message));
+            OMXMLParserWrapper soap12Builder = new StAXSOAPModelBuilder(
+                    sopa12Parser);
             SOAPEnvelope soap12Envelope = (SOAPEnvelope) soap12Builder.getDocumentElement();
 //            soap12Envelope.build();
 //            XMLStreamWriter writer = XMLOutputFactory.newInstance().createXMLStreamWriter(System.out);
 //            soap12Envelope.serialize(writer);
 //		    writer.flush();
 
-            assertTrue("SOAP 1.2 :- envelope local name mismatch", soap12Envelope.getLocalName().equals(SOAPConstants.SOAPENVELOPE_LOCAL_NAME));
-            assertTrue("SOAP 1.2 :- envelope namespace uri mismatch", soap12Envelope.getNamespace().getName().equals(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+            assertTrue("SOAP 1.2 :- envelope local name mismatch",
+                    soap12Envelope.getLocalName().equals(
+                            SOAPConstants.SOAPENVELOPE_LOCAL_NAME));
+            assertTrue("SOAP 1.2 :- envelope namespace uri mismatch",
+                    soap12Envelope.getNamespace().getName().equals(
+                            SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
 
             SOAPHeader header = soap12Envelope.getHeader();
-            assertTrue("SOAP 1.2 :- Header local name mismatch", header.getLocalName().equals(SOAPConstants.HEADER_LOCAL_NAME));
-            assertTrue("SOAP 1.2 :- Header namespace uri mismatch", header.getNamespace().getName().equals(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+            assertTrue("SOAP 1.2 :- Header local name mismatch",
+                    header.getLocalName().equals(
+                            SOAPConstants.HEADER_LOCAL_NAME));
+            assertTrue("SOAP 1.2 :- Header namespace uri mismatch",
+                    header.getNamespace().getName().equals(
+                            SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
 
             SOAPHeaderBlock headerBlock = (SOAPHeaderBlock) header.getFirstElement();
-            assertTrue("SOAP 1.2 :- Header block name mismatch", headerBlock.getLocalName().equals("echoOk"));
-            assertTrue("SOAP 1.2 :- Header block name space uri mismatch", headerBlock.getNamespace().getName().equals("http://example.org/ts-tests"));
-            assertTrue("SOAP 1.2 :- Headaer block text mismatch", headerBlock.getText().equals("foo"));
+            assertTrue("SOAP 1.2 :- Header block name mismatch",
+                    headerBlock.getLocalName().equals("echoOk"));
+            assertTrue("SOAP 1.2 :- Header block name space uri mismatch",
+                    headerBlock.getNamespace().getName().equals(
+                            "http://example.org/ts-tests"));
+            assertTrue("SOAP 1.2 :- Headaer block text mismatch",
+                    headerBlock.getText().equals("foo"));
 
             Iterator headerBlockAttributes = headerBlock.getAttributes();
             OMAttribute roleAttribute = (OMAttribute) headerBlockAttributes.next();
-            assertTrue("SOAP 1.2 :- Role attribute name mismatch", roleAttribute.getLocalName().equals(SOAP12Constants.SOAP_ROLE));
-            assertTrue("SOAP 1.2 :- Role value mismatch", roleAttribute.getValue().equals(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI + "/" + SOAP12Constants.SOAP_ROLE + "/" + "ultimateReceiver"));
-            assertTrue("SOAP 1.2 :- Role attribute namespace uri mismatch", roleAttribute.getNamespace().getName().equals(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+            assertTrue("SOAP 1.2 :- Role attribute name mismatch",
+                    roleAttribute.getLocalName().equals(
+                            SOAP12Constants.SOAP_ROLE));
+            assertTrue("SOAP 1.2 :- Role value mismatch",
+                    roleAttribute.getValue().equals(
+                            SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI + "/" +
+                    SOAP12Constants.SOAP_ROLE +
+                    "/" +
+                    "ultimateReceiver"));
+            assertTrue("SOAP 1.2 :- Role attribute namespace uri mismatch",
+                    roleAttribute.getNamespace().getName().equals(
+                            SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
 
             OMAttribute mustUnderstandAttribute = (OMAttribute) headerBlockAttributes.next();
-            assertTrue("SOAP 1.2 :- Mustunderstand attribute name mismatch", mustUnderstandAttribute.getLocalName().equals(SOAPConstants.ATTR_MUSTUNDERSTAND));
-            assertTrue("SOAP 1.2 :- Mustunderstand value mismatch", mustUnderstandAttribute.getValue().equals(SOAPConstants.ATTR_MUSTUNDERSTAND_TRUE));
-            assertTrue("SOAP 1.2 :- Mustunderstand attribute namespace uri mismatch", mustUnderstandAttribute.getNamespace().getName().equals(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+            assertTrue("SOAP 1.2 :- Mustunderstand attribute name mismatch",
+                    mustUnderstandAttribute.getLocalName().equals(
+                            SOAPConstants.ATTR_MUSTUNDERSTAND));
+            assertTrue("SOAP 1.2 :- Mustunderstand value mismatch",
+                    mustUnderstandAttribute.getValue().equals(
+                            SOAPConstants.ATTR_MUSTUNDERSTAND_TRUE));
+            assertTrue(
+                    "SOAP 1.2 :- Mustunderstand attribute namespace uri mismatch",
+                    mustUnderstandAttribute.getNamespace().getName().equals(
+                            SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
 
             SOAPBody body = soap12Envelope.getBody();
-            assertTrue("SOAP 1.2 :- Body local name mismatch", body.getLocalName().equals(SOAPConstants.BODY_LOCAL_NAME));
-            assertTrue("SOAP 1.2 :- Body namespace uri mismatch", body.getNamespace().getName().equals(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+            assertTrue("SOAP 1.2 :- Body local name mismatch",
+                    body.getLocalName().equals(SOAPConstants.BODY_LOCAL_NAME));
+            assertTrue("SOAP 1.2 :- Body namespace uri mismatch",
+                    body.getNamespace().getName().equals(
+                            SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
 
             SOAPFault fault = body.getFault();
-            assertTrue("SOAP 1.2 :- Fault local name mismatch", fault.getLocalName().equals(SOAPConstants.SOAPFAULT_LOCAL_NAME));
-            assertTrue("SOAP 1.2 :- Fault namespace uri mismatch", fault.getNamespace().getName().equals(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+            assertTrue("SOAP 1.2 :- Fault local name mismatch",
+                    fault.getLocalName().equals(
+                            SOAPConstants.SOAPFAULT_LOCAL_NAME));
+            assertTrue("SOAP 1.2 :- Fault namespace uri mismatch",
+                    fault.getNamespace().getName().equals(
+                            SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
 
             Iterator iteratorInFault = fault.getChildren();
 
             iteratorInFault.next();
             SOAPFaultCode code = (SOAPFaultCode) iteratorInFault.next();
-            assertTrue("SOAP 1.2 :- Fault code local name mismatch", code.getLocalName().equals(SOAP12Constants.SOAP_FAULT_CODE_LOCAL_NAME));
-            assertTrue("SOAP 1.2 :- Fault code namespace uri mismatch", code.getNamespace().getName().equals(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+            assertTrue("SOAP 1.2 :- Fault code local name mismatch",
+                    code.getLocalName().equals(
+                            SOAP12Constants.SOAP_FAULT_CODE_LOCAL_NAME));
+            assertTrue("SOAP 1.2 :- Fault code namespace uri mismatch",
+                    code.getNamespace().getName().equals(
+                            SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
 
             Iterator iteratorInCode = code.getChildren();
 
             iteratorInCode.next();
             SOAPFaultValue value1 = (SOAPFaultValue) iteratorInCode.next();
-            assertTrue("SOAP 1.2 :- Fault code value local name mismatch", value1.getLocalName().equals(SOAP12Constants.SOAP_FAULT_VALUE_LOCAL_NAME));
-            assertTrue("SOAP 1.2 :- Fault code namespace uri mismatch", value1.getNamespace().getName().equals(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
-            assertTrue("SOAP 1.2 :- Value1 text mismatch", value1.getText().equals("env:Sender"));
+            assertTrue("SOAP 1.2 :- Fault code value local name mismatch",
+                    value1.getLocalName().equals(
+                            SOAP12Constants.SOAP_FAULT_VALUE_LOCAL_NAME));
+            assertTrue("SOAP 1.2 :- Fault code namespace uri mismatch",
+                    value1.getNamespace().getName().equals(
+                            SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+            assertTrue("SOAP 1.2 :- Value1 text mismatch",
+                    value1.getText().equals("env:Sender"));
 
             iteratorInCode.next();
             SOAPFaultSubCode subCode1 = (SOAPFaultSubCode) iteratorInCode.next();
-            assertTrue("SOAP 1.2 :- Fault sub code local name mismatch", subCode1.getLocalName().equals(SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME));
-            assertTrue("SOAP 1.2 :- Fault subcode namespace uri mismatch", subCode1.getNamespace().getName().equals(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+            assertTrue("SOAP 1.2 :- Fault sub code local name mismatch",
+                    subCode1.getLocalName().equals(
+                            SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME));
+            assertTrue("SOAP 1.2 :- Fault subcode namespace uri mismatch",
+                    subCode1.getNamespace().getName().equals(
+                            SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
 
             Iterator iteratorInSubCode1 = subCode1.getChildren();
 
             iteratorInSubCode1.next();
             SOAPFaultValue value2 = (SOAPFaultValue) iteratorInSubCode1.next();
-            assertTrue("SOAP 1.2 :- Fault code value local name mismatch", value2.getLocalName().equals(SOAP12Constants.SOAP_FAULT_VALUE_LOCAL_NAME));
-            assertTrue("SOAP 1.2 :- Fault code namespace uri mismatch", value2.getNamespace().getName().equals(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
-            assertTrue("SOAP 1.2 :- Value2 text mismatch", value2.getText().equals("m:MessageTimeout"));
+            assertTrue("SOAP 1.2 :- Fault code value local name mismatch",
+                    value2.getLocalName().equals(
+                            SOAP12Constants.SOAP_FAULT_VALUE_LOCAL_NAME));
+            assertTrue("SOAP 1.2 :- Fault code namespace uri mismatch",
+                    value2.getNamespace().getName().equals(
+                            SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+            assertTrue("SOAP 1.2 :- Value2 text mismatch",
+                    value2.getText().equals("m:MessageTimeout"));
 
             iteratorInSubCode1.next();
             SOAPFaultSubCode subCode2 = (SOAPFaultSubCode) iteratorInSubCode1.next();
-            assertTrue("SOAP 1.2 :- Fault sub code local name mismatch", subCode2.getLocalName().equals(SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME));
-            assertTrue("SOAP 1.2 :- Fault subcode namespace uri mismatch", subCode2.getNamespace().getName().equals(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+            assertTrue("SOAP 1.2 :- Fault sub code local name mismatch",
+                    subCode2.getLocalName().equals(
+                            SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME));
+            assertTrue("SOAP 1.2 :- Fault subcode namespace uri mismatch",
+                    subCode2.getNamespace().getName().equals(
+                            SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
 
             Iterator iteratorInSubCode2 = subCode2.getChildren();
 
             iteratorInSubCode2.next();
             SOAPFaultValue value3 = (SOAPFaultValue) iteratorInSubCode2.next();
-            assertTrue("SOAP 1.2 :- Fault code value local name mismatch", value3.getLocalName().equals(SOAP12Constants.SOAP_FAULT_VALUE_LOCAL_NAME));
-            assertTrue("SOAP 1.2 :- Fault code namespace uri mismatch", value3.getNamespace().getName().equals(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
-            assertTrue("SOAP 1.2 :- Value2 text mismatch", value3.getText().equals("m:MessageTimeout"));
+            assertTrue("SOAP 1.2 :- Fault code value local name mismatch",
+                    value3.getLocalName().equals(
+                            SOAP12Constants.SOAP_FAULT_VALUE_LOCAL_NAME));
+            assertTrue("SOAP 1.2 :- Fault code namespace uri mismatch",
+                    value3.getNamespace().getName().equals(
+                            SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+            assertTrue("SOAP 1.2 :- Value2 text mismatch",
+                    value3.getText().equals("m:MessageTimeout"));
 
             iteratorInFault.next();
             SOAPFaultReason reason = (SOAPFaultReason) iteratorInFault.next();
-            assertTrue("SOAP 1.2 :- Fault reason local name mismatch", reason.getLocalName().equals(SOAP12Constants.SOAP_FAULT_REASON_LOCAL_NAME));
-            assertTrue("SOAP 1.2 :- Fault reason namespace uri mismatch", reason.getNamespace().getName().equals(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+            assertTrue("SOAP 1.2 :- Fault reason local name mismatch",
+                    reason.getLocalName().equals(
+                            SOAP12Constants.SOAP_FAULT_REASON_LOCAL_NAME));
+            assertTrue("SOAP 1.2 :- Fault reason namespace uri mismatch",
+                    reason.getNamespace().getName().equals(
+                            SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
 
             Iterator iteratorInReason = reason.getChildren();
 
             iteratorInReason.next();
             SOAPFaultText text = (SOAPFaultText) iteratorInReason.next();
-            assertTrue("SOAP 1.2 :- Fault text local name mismatch", text.getLocalName().equals(SOAP12Constants.SOAP_FAULT_TEXT_LOCAL_NAME));
-            assertTrue("SOAP 1.2 :- Text namespace uri mismatch", text.getNamespace().getName().equals(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
-            assertTrue("SOAP 1.2 :- Text value mismatch", text.getText().equals("Sender Timeout"));
+            assertTrue("SOAP 1.2 :- Fault text local name mismatch",
+                    text.getLocalName().equals(
+                            SOAP12Constants.SOAP_FAULT_TEXT_LOCAL_NAME));
+            assertTrue("SOAP 1.2 :- Text namespace uri mismatch",
+                    text.getNamespace().getName().equals(
+                            SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+            assertTrue("SOAP 1.2 :- Text value mismatch",
+                    text.getText().equals("Sender Timeout"));
 
             iteratorInFault.next();
             SOAPFaultNode node = (SOAPFaultNode) iteratorInFault.next();
-            assertTrue("SOAP 1.2 :- Fault node local name mismatch", node.getLocalName().equals(SOAP12Constants.SOAP_FAULT_NODE_LOCAL_NAME));
-            assertTrue("SOAP 1.2 :- Fault node namespace uri mismatch", node.getNamespace().getName().equals(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
-            assertTrue("SOAP 1.2 :- Node value mismatch", node.getText().equals("http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver"));
+            assertTrue("SOAP 1.2 :- Fault node local name mismatch",
+                    node.getLocalName().equals(
+                            SOAP12Constants.SOAP_FAULT_NODE_LOCAL_NAME));
+            assertTrue("SOAP 1.2 :- Fault node namespace uri mismatch",
+                    node.getNamespace().getName().equals(
+                            SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+            assertTrue("SOAP 1.2 :- Node value mismatch",
+                    node.getText().equals(
+                            "http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver"));
 
             iteratorInFault.next();
             SOAPFaultRole role = (SOAPFaultRole) iteratorInFault.next();
-            assertTrue("SOAP 1.2 :- Fault role local name mismatch", role.getLocalName().equals(SOAP12Constants.SOAP_FAULT_ROLE_LOCAL_NAME));
-            assertTrue("SOAP 1.2 :- Fault role namespace uri mismatch", role.getNamespace().getName().equals(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
-            assertTrue("SOAP 1.2 :- Role value mismatch", role.getText().equals("ultimateReceiver"));
+            assertTrue("SOAP 1.2 :- Fault role local name mismatch",
+                    role.getLocalName().equals(
+                            SOAP12Constants.SOAP_FAULT_ROLE_LOCAL_NAME));
+            assertTrue("SOAP 1.2 :- Fault role namespace uri mismatch",
+                    role.getNamespace().getName().equals(
+                            SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+            assertTrue("SOAP 1.2 :- Role value mismatch",
+                    role.getText().equals("ultimateReceiver"));
 
             iteratorInFault.next();
             SOAPFaultDetail detail = (SOAPFaultDetail) iteratorInFault.next();
-            assertTrue("SOAP 1.2 :- Fault detail local name mismatch", detail.getLocalName().equals(SOAP12Constants.SOAP_FAULT_DETAIL_LOCAL_NAME));
-            assertTrue("SOAP 1.2 :- Fault detail namespace uri mismatch", detail.getNamespace().getName().equals(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+            assertTrue("SOAP 1.2 :- Fault detail local name mismatch",
+                    detail.getLocalName().equals(
+                            SOAP12Constants.SOAP_FAULT_DETAIL_LOCAL_NAME));
+            assertTrue("SOAP 1.2 :- Fault detail namespace uri mismatch",
+                    detail.getNamespace().getName().equals(
+                            SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
 
-            assertTrue("SOAP 1.2 :- Text in detail mismatch", detail.getText().equals("Details of error"));
+            assertTrue("SOAP 1.2 :- Text in detail mismatch",
+                    detail.getText().equals("Details of error"));
 
             Iterator iteratorInDetail = detail.getChildren();
 
             iteratorInDetail.next();
             OMElement element1 = (OMElement) iteratorInDetail.next();
-            assertTrue("SOAP 1.2 :- MaxTime element mismatch", element1.getLocalName().equals("MaxTime"));
-            assertTrue("SOAP 1.2 :- MaxTime element namespace mismatch", element1.getNamespace().getName().equals("http:www.sample.org"));
-            assertTrue("SOAP 1.2 :- Text value in MaxTime element mismatch", element1.getText().equals("P5M"));
+            assertTrue("SOAP 1.2 :- MaxTime element mismatch",
+                    element1.getLocalName().equals("MaxTime"));
+            assertTrue("SOAP 1.2 :- MaxTime element namespace mismatch",
+                    element1.getNamespace().getName().equals(
+                            "http:www.sample.org"));
+            assertTrue("SOAP 1.2 :- Text value in MaxTime element mismatch",
+                    element1.getText().equals("P5M"));
 
             Iterator attributeIterator = element1.getAttributes();
             OMAttribute attributeInMaxTime = (OMAttribute) attributeIterator.next();
-            assertTrue("SOAP 1.2 :- Attribute local name mismatch", attributeInMaxTime.getLocalName().equals("detail"));
-            assertTrue("SOAP 1.2 :- Attribute namespace mismatch", attributeInMaxTime.getNamespace().getName().equals("http:www.sample.org"));
-            assertTrue("SOAP 1.2 :- Attribute value mismatch", attributeInMaxTime.getValue().equals("This is only a test"));
+            assertTrue("SOAP 1.2 :- Attribute local name mismatch",
+                    attributeInMaxTime.getLocalName().equals("detail"));
+            assertTrue("SOAP 1.2 :- Attribute namespace mismatch",
+                    attributeInMaxTime.getNamespace().getName().equals(
+                            "http:www.sample.org"));
+            assertTrue("SOAP 1.2 :- Attribute value mismatch",
+                    attributeInMaxTime.getValue().equals("This is only a test"));
 
             iteratorInDetail.next();
             OMElement element2 = (OMElement) iteratorInDetail.next();
-            assertTrue("SOAP 1.2 :- AveTime element mismatch", element2.getLocalName().equals("AveTime"));
-            assertTrue("SOAP 1.2 :- AveTime element namespace mismatch", element2.getNamespace().getName().equals("http:www.sample.org"));
+            assertTrue("SOAP 1.2 :- AveTime element mismatch",
+                    element2.getLocalName().equals("AveTime"));
+            assertTrue("SOAP 1.2 :- AveTime element namespace mismatch",
+                    element2.getNamespace().getName().equals(
+                            "http:www.sample.org"));
 
             Iterator iteratorInAveTimeElement = element2.getChildren();
 
             iteratorInAveTimeElement.next();
             OMElement element21 = (OMElement) iteratorInAveTimeElement.next();
-            assertTrue("SOAP 1.2 :- Time element mismatch", element21.getLocalName().equals("Time"));
-            assertTrue("SOAP 1.2 :- Time element namespace mismatch", element21.getNamespace().getName().equals("http:www.sample.org"));
-            assertTrue("SOAP 1.2 :- Text value in Time element mismatch", element21.getText().equals("P3M"));
-
-            XMLStreamReader sopa11Parser = XMLInputFactory.newInstance().createXMLStreamReader(new StringReader(soap11Message));
-            OMXMLParserWrapper soap11Builder = new StAXSOAPModelBuilder(sopa11Parser);
+            assertTrue("SOAP 1.2 :- Time element mismatch",
+                    element21.getLocalName().equals("Time"));
+            assertTrue("SOAP 1.2 :- Time element namespace mismatch",
+                    element21.getNamespace().getName().equals(
+                            "http:www.sample.org"));
+            assertTrue("SOAP 1.2 :- Text value in Time element mismatch",
+                    element21.getText().equals("P3M"));
+
+            XMLStreamReader sopa11Parser = XMLInputFactory.newInstance()
+                    .createXMLStreamReader(new StringReader(soap11Message));
+            OMXMLParserWrapper soap11Builder = new StAXSOAPModelBuilder(
+                    sopa11Parser);
             SOAPEnvelope soap11Envelope = (SOAPEnvelope) soap11Builder.getDocumentElement();
 //            soap11Envelope.build();
 //            writer = XMLOutputFactory.newInstance().createXMLStreamWriter(System.out);
 //            soap11Envelope.serialize(writer);
 //		    writer.flush();
 
-            assertTrue("SOAP 1.1 :- envelope local name mismatch", soap11Envelope.getLocalName().equals(SOAPConstants.SOAPENVELOPE_LOCAL_NAME));
-            assertTrue("SOAP 1.1 :- envelope namespace uri mismatch", soap11Envelope.getNamespace().getName().equals(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+            assertTrue("SOAP 1.1 :- envelope local name mismatch",
+                    soap11Envelope.getLocalName().equals(
+                            SOAPConstants.SOAPENVELOPE_LOCAL_NAME));
+            assertTrue("SOAP 1.1 :- envelope namespace uri mismatch",
+                    soap11Envelope.getNamespace().getName().equals(
+                            SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI));
 
             header = soap11Envelope.getHeader();
-            assertTrue("SOAP 1.1 :- Header local name mismatch", header.getLocalName().equals(SOAPConstants.HEADER_LOCAL_NAME));
-            assertTrue("SOAP 1.1 :- Header namespace uri mismatch", header.getNamespace().getName().equals(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+            assertTrue("SOAP 1.1 :- Header local name mismatch",
+                    header.getLocalName().equals(
+                            SOAPConstants.HEADER_LOCAL_NAME));
+            assertTrue("SOAP 1.1 :- Header namespace uri mismatch",
+                    header.getNamespace().getName().equals(
+                            SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI));
 
             headerBlock = (SOAPHeaderBlock) header.getFirstElement();
-            assertTrue("SOAP 1.1 :- Header block name mismatch", headerBlock.getLocalName().equals("echoOk"));
-            assertTrue("SOAP 1.1 :- Header block name space uri mismatch", headerBlock.getNamespace().getName().equals("http://example.org/ts-tests"));
-            assertTrue("SOAP 1.1 :- Headaer block text mismatch", headerBlock.getText().equals("foo"));
+            assertTrue("SOAP 1.1 :- Header block name mismatch",
+                    headerBlock.getLocalName().equals("echoOk"));
+            assertTrue("SOAP 1.1 :- Header block name space uri mismatch",
+                    headerBlock.getNamespace().getName().equals(
+                            "http://example.org/ts-tests"));
+            assertTrue("SOAP 1.1 :- Headaer block text mismatch",
+                    headerBlock.getText().equals("foo"));
 
             headerBlockAttributes = headerBlock.getAttributes();
 
-            mustUnderstandAttribute = (OMAttribute) headerBlockAttributes.next();
-            assertTrue("SOAP 1.1 :- Mustunderstand attribute name mismatch", mustUnderstandAttribute.getLocalName().equals(SOAPConstants.ATTR_MUSTUNDERSTAND));
-            assertTrue("SOAP 1.1 :- Mustunderstand value mismatch", mustUnderstandAttribute.getValue().equals(SOAPConstants.ATTR_MUSTUNDERSTAND_1));
-            assertTrue("SOAP 1.1 :- Mustunderstand attribute namespace uri mismatch", mustUnderstandAttribute.getNamespace().getName().equals(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+            mustUnderstandAttribute =
+                    (OMAttribute) headerBlockAttributes.next();
+            assertTrue("SOAP 1.1 :- Mustunderstand attribute name mismatch",
+                    mustUnderstandAttribute.getLocalName().equals(
+                            SOAPConstants.ATTR_MUSTUNDERSTAND));
+            assertTrue("SOAP 1.1 :- Mustunderstand value mismatch",
+                    mustUnderstandAttribute.getValue().equals(
+                            SOAPConstants.ATTR_MUSTUNDERSTAND_1));
+            assertTrue(
+                    "SOAP 1.1 :- Mustunderstand attribute namespace uri mismatch",
+                    mustUnderstandAttribute.getNamespace().getName().equals(
+                            SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI));
 
             OMAttribute actorAttribute = (OMAttribute) headerBlockAttributes.next();
-            assertTrue("SOAP 1.1 :- Actor attribute name mismatch", actorAttribute.getLocalName().equals(SOAP11Constants.ATTR_ACTOR));
-            assertTrue("SOAP 1.1 :- Actor value mismatch", actorAttribute.getValue().equals("http://schemas.xmlsoap.org/soap/" + SOAP11Constants.ATTR_ACTOR + "/" + "next"));
-            assertTrue("SOAP 1.1 :- Actor attribute namespace uri mismatch", actorAttribute.getNamespace().getName().equals(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+            assertTrue("SOAP 1.1 :- Actor attribute name mismatch",
+                    actorAttribute.getLocalName().equals(
+                            SOAP11Constants.ATTR_ACTOR));
+            assertTrue("SOAP 1.1 :- Actor value mismatch",
+                    actorAttribute.getValue().equals(
+                            "http://schemas.xmlsoap.org/soap/" +
+                    SOAP11Constants.ATTR_ACTOR +
+                    "/" +
+                    "next"));
+            assertTrue("SOAP 1.1 :- Actor attribute namespace uri mismatch",
+                    actorAttribute.getNamespace().getName().equals(
+                            SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI));
 
             body = soap11Envelope.getBody();
-            assertTrue("SOAP 1.1 :- Body local name mismatch", body.getLocalName().equals(SOAPConstants.BODY_LOCAL_NAME));
-            assertTrue("SOAP 1.1 :- Body namespace uri mismatch", body.getNamespace().getName().equals(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+            assertTrue("SOAP 1.1 :- Body local name mismatch",
+                    body.getLocalName().equals(SOAPConstants.BODY_LOCAL_NAME));
+            assertTrue("SOAP 1.1 :- Body namespace uri mismatch",
+                    body.getNamespace().getName().equals(
+                            SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI));
 
             fault = body.getFault();
-            assertTrue("SOAP 1.1 :- Fault namespace uri mismatch", fault.getNamespace().getName().equals(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+            assertTrue("SOAP 1.1 :- Fault namespace uri mismatch",
+                    fault.getNamespace().getName().equals(
+                            SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI));
 
             iteratorInFault = fault.getChildren();
 
             iteratorInFault.next();
             code = (SOAPFaultCode) iteratorInFault.next();
-            assertEquals("SOAP Fault code local name mismatch", code.getLocalName(), (SOAP12Constants.SOAP_FAULT_CODE_LOCAL_NAME));
-            assertTrue("SOAP 1.1 :- Fault code namespace uri mismatch", code.getNamespace().getName().equals(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI));
-            assertEquals("SOAP 1.1 :- Fault code value mismatch", code.getValue().getText().trim(), "env:Sender");
+            assertEquals("SOAP Fault code local name mismatch",
+                    code.getLocalName(),
+                    (SOAP12Constants.SOAP_FAULT_CODE_LOCAL_NAME));
+            assertTrue("SOAP 1.1 :- Fault code namespace uri mismatch",
+                    code.getNamespace().getName().equals(
+                            SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+            assertEquals("SOAP 1.1 :- Fault code value mismatch",
+                    code.getValue().getText().trim(),
+                    "env:Sender");
 
             iteratorInFault.next();
             reason = (SOAPFaultReason) iteratorInFault.next();
-            assertTrue("SOAP 1.1 :- Fault string local name mismatch", reason.getLocalName().equals(SOAP12Constants.SOAP_FAULT_REASON_LOCAL_NAME));
-            assertTrue("SOAP 1.2 :- Fault string namespace uri mismatch", reason.getNamespace().getName().equals(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI));
-            assertTrue("SOAP 1.1 :- Fault string value mismatch", reason.getSOAPText().getText().equals("Sender Timeout"));
+            assertTrue("SOAP 1.1 :- Fault string local name mismatch",
+                    reason.getLocalName().equals(
+                            SOAP12Constants.SOAP_FAULT_REASON_LOCAL_NAME));
+            assertTrue("SOAP 1.2 :- Fault string namespace uri mismatch",
+                    reason.getNamespace().getName().equals(
+                            SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+            assertTrue("SOAP 1.1 :- Fault string value mismatch",
+                    reason.getSOAPText().getText().equals("Sender Timeout"));
 
             iteratorInFault.next();
             role = (SOAPFaultRole) iteratorInFault.next();
-            assertTrue("SOAP 1.1 :- Fault actor local name mismatch", role.getLocalName().equals(SOAP12Constants.SOAP_FAULT_ROLE_LOCAL_NAME));
-            assertTrue("SOAP 1.1 :- Fault actor namespace uri mismatch", role.getNamespace().getName().equals(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI));
-            assertTrue("SOAP 1.1 :- Actor value mismatch", role.getText().equals("http://schemas.xmlsoap.org/soap/envelope/actor/ultimateReceiver"));
+            assertTrue("SOAP 1.1 :- Fault actor local name mismatch",
+                    role.getLocalName().equals(
+                            SOAP12Constants.SOAP_FAULT_ROLE_LOCAL_NAME));
+            assertTrue("SOAP 1.1 :- Fault actor namespace uri mismatch",
+                    role.getNamespace().getName().equals(
+                            SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+            assertTrue("SOAP 1.1 :- Actor value mismatch",
+                    role.getText().equals(
+                            "http://schemas.xmlsoap.org/soap/envelope/actor/ultimateReceiver"));
 
             iteratorInFault.next();
             detail = (SOAPFaultDetail) iteratorInFault.next();
-            assertTrue("SOAP 1.1 :- Fault detail local name mismatch", detail.getLocalName().equals(SOAP12Constants.SOAP_FAULT_DETAIL_LOCAL_NAME));
-            assertTrue("SOAP 1.1 :- Fault detail namespace uri mismatch", detail.getNamespace().getName().equals(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI));
-            assertTrue("SOAP 1.2 :- Text in detail mismatch", detail.getText().equals("Details of error"));
+            assertTrue("SOAP 1.1 :- Fault detail local name mismatch",
+                    detail.getLocalName().equals(
+                            SOAP12Constants.SOAP_FAULT_DETAIL_LOCAL_NAME));
+            assertTrue("SOAP 1.1 :- Fault detail namespace uri mismatch",
+                    detail.getNamespace().getName().equals(
+                            SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+            assertTrue("SOAP 1.2 :- Text in detail mismatch",
+                    detail.getText().equals("Details of error"));
 
             iteratorInDetail = detail.getChildren();
 
             iteratorInDetail.next();
             element1 = (OMElement) iteratorInDetail.next();
-            assertTrue("SOAP 1.1 :- MaxTime element mismatch", element1.getLocalName().equals("MaxTime"));
-            assertTrue("SOAP 1.1 :- MaxTime element namespace mismatch", element1.getNamespace().getName().equals("http:www.sample.org"));
-            assertTrue("SOAP 1.1 :- Text value in MaxTime element mismatch", element1.getText().equals("P5M"));
+            assertTrue("SOAP 1.1 :- MaxTime element mismatch",
+                    element1.getLocalName().equals("MaxTime"));
+            assertTrue("SOAP 1.1 :- MaxTime element namespace mismatch",
+                    element1.getNamespace().getName().equals(
+                            "http:www.sample.org"));
+            assertTrue("SOAP 1.1 :- Text value in MaxTime element mismatch",
+                    element1.getText().equals("P5M"));
 
             attributeIterator = element1.getAttributes();
             attributeInMaxTime = (OMAttribute) attributeIterator.next();
-            assertTrue("SOAP 1.1 :- Attribute local name mismatch", attributeInMaxTime.getLocalName().equals("detail"));
-            assertTrue("SOAP 1.1 :- Attribute namespace mismatch", attributeInMaxTime.getNamespace().getName().equals("http:www.sample.org"));
-            assertTrue("SOAP 1.1 :- Attribute value mismatch", attributeInMaxTime.getValue().equals("This is only a test"));
+            assertTrue("SOAP 1.1 :- Attribute local name mismatch",
+                    attributeInMaxTime.getLocalName().equals("detail"));
+            assertTrue("SOAP 1.1 :- Attribute namespace mismatch",
+                    attributeInMaxTime.getNamespace().getName().equals(
+                            "http:www.sample.org"));
+            assertTrue("SOAP 1.1 :- Attribute value mismatch",
+                    attributeInMaxTime.getValue().equals("This is only a test"));
 
             iteratorInDetail.next();
             element2 = (OMElement) iteratorInDetail.next();
-            assertTrue("SOAP 1.1 :- AveTime element mismatch", element2.getLocalName().equals("AveTime"));
-            assertTrue("SOAP 1.1 :- AveTime element namespace mismatch", element2.getNamespace().getName().equals("http:www.sample.org"));
+            assertTrue("SOAP 1.1 :- AveTime element mismatch",
+                    element2.getLocalName().equals("AveTime"));
+            assertTrue("SOAP 1.1 :- AveTime element namespace mismatch",
+                    element2.getNamespace().getName().equals(
+                            "http:www.sample.org"));
 
             iteratorInAveTimeElement = element2.getChildren();
 
             iteratorInAveTimeElement.next();
             element21 = (OMElement) iteratorInAveTimeElement.next();
-            assertTrue("SOAP 1.1 :- Time element mismatch", element21.getLocalName().equals("Time"));
-            assertTrue("SOAP 1.1 :- Time element namespace mismatch", element21.getNamespace().getName().equals("http:www.sample.org"));
-            assertTrue("SOAP 1.1 :- Text value in Time element mismatch", element21.getText().equals("P3M"));
+            assertTrue("SOAP 1.1 :- Time element mismatch",
+                    element21.getLocalName().equals("Time"));
+            assertTrue("SOAP 1.1 :- Time element namespace mismatch",
+                    element21.getNamespace().getName().equals(
+                            "http:www.sample.org"));
+            assertTrue("SOAP 1.1 :- Text value in Time element mismatch",
+                    element21.getText().equals("P3M"));
 
             iteratorInFault.next();
             OMElement testElement = (OMElement) iteratorInFault.next();
-            assertTrue("SOAP 1.1 :- Test element mismatch", testElement.getLocalName().equals("Test"));
-            assertTrue("SOAP 1.1 :- Test element namespace mismatch", testElement.getNamespace().getName().equals("http:www.Test.org"));
+            assertTrue("SOAP 1.1 :- Test element mismatch",
+                    testElement.getLocalName().equals("Test"));
+            assertTrue("SOAP 1.1 :- Test element namespace mismatch",
+                    testElement.getNamespace().getName().equals(
+                            "http:www.Test.org"));
 
             OMElement childOfTestElement = testElement.getFirstElement();
-            assertTrue("SOAP 1.1 :- Test element child local name mismatch", childOfTestElement.getLocalName().equals("TestElement"));
-            assertTrue("SOAP 1.1 :- Test element child namespace mismatch", childOfTestElement.getNamespace().getName().equals("http:www.Test.org"));
-            assertTrue("SOAP 1.1 :- Test element child value mismatch", childOfTestElement.getText().equals("This is only a test"));
+            assertTrue("SOAP 1.1 :- Test element child local name mismatch",
+                    childOfTestElement.getLocalName().equals("TestElement"));
+            assertTrue("SOAP 1.1 :- Test element child namespace mismatch",
+                    childOfTestElement.getNamespace().getName().equals(
+                            "http:www.Test.org"));
+            assertTrue("SOAP 1.1 :- Test element child value mismatch",
+                    childOfTestElement.getText().equals("This is only a test"));
 
         } catch (XMLStreamException e) {
             e.printStackTrace();

Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/impl/llom/soap11/SOAP11SerializerTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/impl/llom/soap11/SOAP11SerializerTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/impl/llom/soap11/SOAP11SerializerTest.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/impl/llom/soap11/SOAP11SerializerTest.java Mon Jul 11 10:48:55 2005
@@ -39,9 +39,11 @@
 
     protected void setUp() throws Exception {
         super.setUp();
-        soapEnvelope = (SOAPEnvelope) getOMBuilder("soap/soap11/soap11fault.xml").getDocumentElement();
+        soapEnvelope =
+                (SOAPEnvelope) getOMBuilder("soap/soap11/soap11fault.xml")
+                .getDocumentElement();
         omOutput = new OMOutput(XMLOutputFactory.newInstance().
-                                createXMLStreamWriter(System.out));
+                createXMLStreamWriter(System.out));
     }
 
     public void testSerialize() {



Mime
View raw message