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 [17/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/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12FaultCodeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12FaultCodeImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12FaultCodeImpl.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12FaultCodeImpl.java Mon Jul 11 10:48:55 2005
@@ -51,21 +51,24 @@
 
     public void setSubCode(SOAPFaultSubCode subCode) throws SOAPProcessingException {
         if (!(subCode instanceof SOAP12FaultSubCodeImpl)) {
-            throw new SOAPProcessingException("Expecting SOAP 1.2 implementation of SOAP Fault Sub Code. But received some other implementation");
+            throw new SOAPProcessingException(
+                    "Expecting SOAP 1.2 implementation of SOAP Fault Sub Code. But received some other implementation");
         }
         super.setSubCode(subCode);
     }
 
     public void setValue(SOAPFaultValue value) throws SOAPProcessingException {
         if (!(value instanceof SOAP12FaultValueImpl)) {
-            throw new SOAPProcessingException("Expecting SOAP 1.2 implementation of SOAP Fault Value. But received some other implementation");
+            throw new SOAPProcessingException(
+                    "Expecting SOAP 1.2 implementation of SOAP Fault Value. But received some other implementation");
         }
         super.setValue(value);
     }
 
     protected void checkParent(OMElement parent) throws SOAPProcessingException {
         if (!(parent instanceof SOAP12FaultImpl)) {
-            throw new SOAPProcessingException("Expecting SOAP 1.2 implementation of SOAP Fault as the parent. But received some other implementation");
+            throw new SOAPProcessingException(
+                    "Expecting SOAP 1.2 implementation of SOAP Fault as the parent. But received some other implementation");
         }
     }
 }

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12FaultDetailImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12FaultDetailImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12FaultDetailImpl.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12FaultDetailImpl.java Mon Jul 11 10:48:55 2005
@@ -35,7 +35,8 @@
 
     protected void checkParent(OMElement parent) throws SOAPProcessingException {
         if (!(parent instanceof SOAP12FaultImpl)) {
-            throw new SOAPProcessingException("Expecting SOAP 1.2 implementation of SOAP Fault as the parent. But received some other implementation");
+            throw new SOAPProcessingException(
+                    "Expecting SOAP 1.2 implementation of SOAP Fault as the parent. But received some other implementation");
         }
     }
 }

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12FaultImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12FaultImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12FaultImpl.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12FaultImpl.java Mon Jul 11 10:48:55 2005
@@ -2,7 +2,13 @@
 
 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.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.impl.llom.SOAPFaultImpl;
 import org.apache.axis2.soap.impl.llom.SOAPProcessingException;
 
@@ -53,7 +59,8 @@
 
     public void setCode(SOAPFaultCode soapFaultCode) throws SOAPProcessingException {
         if (!(soapFaultCode instanceof SOAP12FaultCodeImpl)) {
-            throw new SOAPProcessingException("Expecting SOAP 1.2 implementation of SOAP Fault Code. But received some other implementation");
+            throw new SOAPProcessingException(
+                    "Expecting SOAP 1.2 implementation of SOAP Fault Code. But received some other implementation");
         }
         super.setCode(soapFaultCode);
     }
@@ -61,35 +68,40 @@
 
     public void setReason(SOAPFaultReason reason) throws SOAPProcessingException {
         if (!(reason instanceof SOAP12FaultReasonImpl)) {
-            throw new SOAPProcessingException("Expecting SOAP 1.2 implementation of SOAP Fault Reason. But received some other implementation");
+            throw new SOAPProcessingException(
+                    "Expecting SOAP 1.2 implementation of SOAP Fault Reason. But received some other implementation");
         }
         super.setReason(reason);
     }
 
     public void setNode(SOAPFaultNode node) throws SOAPProcessingException {
         if (!(node instanceof SOAP12FaultNodeImpl)) {
-            throw new SOAPProcessingException("Expecting SOAP 1.2 implementation of SOAP Fault Node. But received some other implementation");
+            throw new SOAPProcessingException(
+                    "Expecting SOAP 1.2 implementation of SOAP Fault Node. But received some other implementation");
         }
         super.setNode(node);
     }
 
     public void setRole(SOAPFaultRole role) throws SOAPProcessingException {
         if (!(role instanceof SOAP12FaultRoleImpl)) {
-            throw new SOAPProcessingException("Expecting SOAP 1.2 implementation of SOAP Fault Role. But received some other implementation");
+            throw new SOAPProcessingException(
+                    "Expecting SOAP 1.2 implementation of SOAP Fault Role. But received some other implementation");
         }
         super.setRole(role);
     }
 
     public void setDetail(SOAPFaultDetail detail) throws SOAPProcessingException {
         if (!(detail instanceof SOAP12FaultDetailImpl)) {
-            throw new SOAPProcessingException("Expecting SOAP 1.2 implementation of SOAP Fault Detail. But received some other implementation");
+            throw new SOAPProcessingException(
+                    "Expecting SOAP 1.2 implementation of SOAP Fault Detail. But received some other implementation");
         }
         super.setDetail(detail);
     }
 
     protected void checkParent(OMElement parent) throws SOAPProcessingException {
         if (!(parent instanceof SOAP12BodyImpl)) {
-            throw new SOAPProcessingException("Expecting SOAP 1.2 implementation of SOAP Body as the parent. But received some other implementation");
+            throw new SOAPProcessingException(
+                    "Expecting SOAP 1.2 implementation of SOAP Body as the parent. But received some other implementation");
         }
     }
 }

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12FaultNodeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12FaultNodeImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12FaultNodeImpl.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12FaultNodeImpl.java Mon Jul 11 10:48:55 2005
@@ -35,7 +35,8 @@
 
     protected void checkParent(OMElement parent) throws SOAPProcessingException {
         if (!(parent instanceof SOAP12FaultImpl)) {
-            throw new SOAPProcessingException("Expecting SOAP 1.2 implementation of SOAP Fault as the parent. But received some other implementation");
+            throw new SOAPProcessingException(
+                    "Expecting SOAP 1.2 implementation of SOAP Fault as the parent. But received some other implementation");
         }
     }
 }

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12FaultReasonImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12FaultReasonImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12FaultReasonImpl.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12FaultReasonImpl.java Mon Jul 11 10:48:55 2005
@@ -40,14 +40,16 @@
 
     public void setSOAPText(SOAPFaultText soapFaultText) throws SOAPProcessingException {
         if (!(soapFaultText instanceof SOAP12FaultTextImpl)) {
-            throw new SOAPProcessingException("Expecting SOAP 1.2 implementation of SOAP Fault Text. But received some other implementation");
+            throw new SOAPProcessingException(
+                    "Expecting SOAP 1.2 implementation of SOAP Fault Text. But received some other implementation");
         }
         super.setSOAPText(soapFaultText);
     }
 
     protected void checkParent(OMElement parent) throws SOAPProcessingException {
         if (!(parent instanceof SOAP12FaultImpl)) {
-            throw new SOAPProcessingException("Expecting SOAP 1.2 implementation of SOAP Fault as the parent. But received some other implementation");
+            throw new SOAPProcessingException(
+                    "Expecting SOAP 1.2 implementation of SOAP Fault as the parent. But received some other implementation");
         }
     }
 }

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12FaultRoleImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12FaultRoleImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12FaultRoleImpl.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12FaultRoleImpl.java Mon Jul 11 10:48:55 2005
@@ -35,7 +35,8 @@
 
     protected void checkParent(OMElement parent) throws SOAPProcessingException {
         if (!(parent instanceof SOAP12FaultImpl)) {
-            throw new SOAPProcessingException("Expecting SOAP 1.2 implementation of SOAP Fault as the parent. But received some other implementation");
+            throw new SOAPProcessingException(
+                    "Expecting SOAP 1.2 implementation of SOAP Fault as the parent. But received some other implementation");
         }
     }
 }

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12FaultSubCodeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12FaultSubCodeImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12FaultSubCodeImpl.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12FaultSubCodeImpl.java Mon Jul 11 10:48:55 2005
@@ -33,7 +33,8 @@
     }
 
     //changed
-    public SOAP12FaultSubCodeImpl(SOAPFaultCode parent, OMXMLParserWrapper builder) {
+    public SOAP12FaultSubCodeImpl(SOAPFaultCode parent,
+                                  OMXMLParserWrapper builder) {
         super(parent, SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME, builder);
     }
 
@@ -41,26 +42,31 @@
         super(parent, SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME);
     }
 
-    public SOAP12FaultSubCodeImpl(SOAPFaultSubCode parent, OMXMLParserWrapper builder) {
+    public SOAP12FaultSubCodeImpl(SOAPFaultSubCode parent,
+                                  OMXMLParserWrapper builder) {
         super(parent, SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME, builder);
     }
 
     protected void checkParent(OMElement parent) throws SOAPProcessingException {
-        if (!((parent instanceof SOAP12FaultSubCodeImpl) || (parent instanceof SOAP12FaultCodeImpl))) {
-            throw new SOAPProcessingException("Expecting SOAP 1.2 implementation of SOAP FaultSubCode or SOAP FaultCodeValue as the parent. But received some other implementation");
+        if (!((parent instanceof SOAP12FaultSubCodeImpl) ||
+                (parent instanceof SOAP12FaultCodeImpl))) {
+            throw new SOAPProcessingException(
+                    "Expecting SOAP 1.2 implementation of SOAP FaultSubCode or SOAP FaultCodeValue as the parent. But received some other implementation");
         }
     }
 
     public void setSubCode(SOAPFaultSubCode subCode) throws SOAPProcessingException {
         if (!(subCode instanceof SOAP12FaultSubCodeImpl)) {
-            throw new SOAPProcessingException("Expecting SOAP 1.2 implementation of SOAP Fault Sub Code. But received some other implementation");
+            throw new SOAPProcessingException(
+                    "Expecting SOAP 1.2 implementation of SOAP Fault Sub Code. But received some other implementation");
         }
         super.setSubCode(subCode);
     }
 
     public void setValue(SOAPFaultValue soapFaultSubCodeValue) throws SOAPProcessingException {
         if (!(soapFaultSubCodeValue instanceof SOAP12FaultValueImpl)) {
-            throw new SOAPProcessingException("Expecting SOAP 1.2 implementation of SOAP Fault Value. But received some other implementation");
+            throw new SOAPProcessingException(
+                    "Expecting SOAP 1.2 implementation of SOAP Fault Value. But received some other implementation");
         }
         super.setValue(soapFaultSubCodeValue);
     }

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12FaultTextImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12FaultTextImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12FaultTextImpl.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12FaultTextImpl.java Mon Jul 11 10:48:55 2005
@@ -29,13 +29,15 @@
         super(parent);
     }
 
-    public SOAP12FaultTextImpl(SOAPFaultReason parent, OMXMLParserWrapper builder) {
+    public SOAP12FaultTextImpl(SOAPFaultReason parent,
+                               OMXMLParserWrapper builder) {
         super(parent, builder);
     }
 
     protected void checkParent(OMElement parent) throws SOAPProcessingException {
         if (!(parent instanceof SOAP12FaultReasonImpl)) {
-            throw new SOAPProcessingException("Expecting SOAP 1.2 implementation of SOAP FaultReason as the parent. But received some other implementation");
+            throw new SOAPProcessingException(
+                    "Expecting SOAP 1.2 implementation of SOAP FaultReason as the parent. But received some other implementation");
         }
     }
 }

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12FaultValueImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12FaultValueImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12FaultValueImpl.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12FaultValueImpl.java Mon Jul 11 10:48:55 2005
@@ -33,8 +33,10 @@
     }
 
     protected void checkParent(OMElement parent) throws SOAPProcessingException {
-        if (!((parent instanceof SOAP12FaultSubCodeImpl) || (parent instanceof SOAP12FaultCodeImpl))) {
-            throw new SOAPProcessingException("Expecting SOAP 1.2 implementation of SOAP FaultSubCode or SOAP FaultCode as the parent. But received some other implementation");
+        if (!((parent instanceof SOAP12FaultSubCodeImpl) ||
+                (parent instanceof SOAP12FaultCodeImpl))) {
+            throw new SOAPProcessingException(
+                    "Expecting SOAP 1.2 implementation of SOAP FaultSubCode or SOAP FaultCode as the parent. But received some other implementation");
         }
     }
 }

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12HeaderBlockImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12HeaderBlockImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12HeaderBlockImpl.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12HeaderBlockImpl.java Mon Jul 11 10:48:55 2005
@@ -32,7 +32,9 @@
      * @param localName
      * @param ns
      */
-    public SOAP12HeaderBlockImpl(String localName, OMNamespace ns, SOAPHeader parent) throws SOAPProcessingException {
+    public SOAP12HeaderBlockImpl(String localName,
+                                 OMNamespace ns,
+                                 SOAPHeader parent) throws SOAPProcessingException {
         super(localName, ns, parent);
         checkParent(parent);
     }
@@ -45,49 +47,75 @@
      * @param parent
      * @param builder
      */
-    public SOAP12HeaderBlockImpl(String localName, OMNamespace ns, SOAPHeader parent, OMXMLParserWrapper builder) {
+    public SOAP12HeaderBlockImpl(String localName,
+                                 OMNamespace ns,
+                                 SOAPHeader parent,
+                                 OMXMLParserWrapper builder) {
         super(localName, ns, parent, builder);
 
     }
 
     protected void checkParent(OMElement parent) throws SOAPProcessingException {
         if (!(parent instanceof SOAP12HeaderImpl)) {
-            throw new SOAPProcessingException("Expecting SOAP 1.2 implementation of SOAP Body as the parent. But received some other implementation");
+            throw new SOAPProcessingException(
+                    "Expecting SOAP 1.2 implementation of SOAP Body as the parent. But received some other implementation");
         }
     }
 
     public void setRole(String roleURI) {
-        setAttribute(SOAP12Constants.SOAP_ROLE, roleURI, SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
+        setAttribute(SOAP12Constants.SOAP_ROLE,
+                roleURI,
+                SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
     }
 
     public String getRole() {
-        return getAttribute(SOAP12Constants.SOAP_ROLE, SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
+        return getAttribute(SOAP12Constants.SOAP_ROLE,
+                SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
 
     }
 
     public void setMustUnderstand(boolean mustUnderstand) {
-        setAttribute(SOAPConstants.ATTR_MUSTUNDERSTAND, mustUnderstand ? "1" : "0", SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
+        setAttribute(SOAPConstants.ATTR_MUSTUNDERSTAND,
+                mustUnderstand ? "1" : "0",
+                SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
 
     }
 
     public void setMustUnderstand(String mustUnderstand) throws SOAPProcessingException {
-        if (SOAPConstants.ATTR_MUSTUNDERSTAND_TRUE.equals(mustUnderstand) || SOAPConstants.ATTR_MUSTUNDERSTAND_FALSE.equals(mustUnderstand) || SOAPConstants.ATTR_MUSTUNDERSTAND_0.equals(mustUnderstand) || SOAPConstants.ATTR_MUSTUNDERSTAND_1.equals(mustUnderstand)) {
-            setAttribute(SOAPConstants.ATTR_MUSTUNDERSTAND, mustUnderstand, SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
+        if (SOAPConstants.ATTR_MUSTUNDERSTAND_TRUE.equals(mustUnderstand) ||
+                SOAPConstants.ATTR_MUSTUNDERSTAND_FALSE.equals(mustUnderstand) ||
+                SOAPConstants.ATTR_MUSTUNDERSTAND_0.equals(mustUnderstand) ||
+                SOAPConstants.ATTR_MUSTUNDERSTAND_1.equals(mustUnderstand)) {
+            setAttribute(SOAPConstants.ATTR_MUSTUNDERSTAND,
+                    mustUnderstand,
+                    SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
         } else {
-            throw new SOAPProcessingException("mustUndertand should be one of \"true\", \"false\", \"0\" or \"1\" ");
+            throw new SOAPProcessingException(
+                    "mustUndertand should be one of \"true\", \"false\", \"0\" or \"1\" ");
         }
     }
 
     public boolean getMustUnderstand() throws SOAPProcessingException {
         String mustUnderstand = "";
-        if ((mustUnderstand = getAttribute(SOAPConstants.ATTR_MUSTUNDERSTAND, SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI))
+        if ((mustUnderstand =
+                getAttribute(SOAPConstants.ATTR_MUSTUNDERSTAND,
+                        SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI))
                 != null) {
-            if (SOAPConstants.ATTR_MUSTUNDERSTAND_TRUE.equalsIgnoreCase(mustUnderstand) || SOAPConstants.ATTR_MUSTUNDERSTAND_1.equalsIgnoreCase(mustUnderstand)) {
+            if (SOAPConstants.ATTR_MUSTUNDERSTAND_TRUE.equalsIgnoreCase(
+                    mustUnderstand) ||
+                    SOAPConstants.ATTR_MUSTUNDERSTAND_1.equalsIgnoreCase(
+                            mustUnderstand)) {
                 return true;
-            } else if (SOAPConstants.ATTR_MUSTUNDERSTAND_FALSE.equalsIgnoreCase(mustUnderstand) || SOAPConstants.ATTR_MUSTUNDERSTAND_0.equalsIgnoreCase(mustUnderstand)) {
+            } else if (SOAPConstants.ATTR_MUSTUNDERSTAND_FALSE.equalsIgnoreCase(
+                    mustUnderstand) ||
+                    SOAPConstants.ATTR_MUSTUNDERSTAND_0.equalsIgnoreCase(
+                            mustUnderstand)) {
                 return false;
             } else {
-                throw new SOAPProcessingException("Invalid value found in mustUnderstand value of " + this.getLocalName() + " header block");
+                throw new SOAPProcessingException(
+                        "Invalid value found in mustUnderstand value of " +
+                        this.getLocalName() +
+                        " header block");
             }
         }
         return false;

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12HeaderImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12HeaderImpl.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12HeaderImpl.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/soap12/SOAP12HeaderImpl.java Mon Jul 11 10:48:55 2005
@@ -52,7 +52,8 @@
 
     public SOAPHeaderBlock addHeaderBlock(String localName, OMNamespace ns) throws OMException {
         if (ns == null || ns.getName() == null || "".equals(ns.getName())) {
-            throw new OMException("All the SOAP Header blocks should be namespace qualified");
+            throw new OMException(
+                    "All the SOAP Header blocks should be namespace qualified");
         }
 
         OMNamespace namespace = findNamespace(ns.getName(), ns.getPrefix());
@@ -73,10 +74,10 @@
 
     public Iterator extractHeaderBlocks(String role) {
         return new OMChildrenWithSpecificAttributeIterator(getFirstChild(),
-                                                           new QName(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI,
-                                                                     SOAP12Constants.SOAP_ROLE),
-                                                           role,
-                                                           true);
+                new QName(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI,
+                        SOAP12Constants.SOAP_ROLE),
+                role,
+                true);
     }
 
 }

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/util/UtilProvider.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/util/UtilProvider.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/util/UtilProvider.java (original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/soap/impl/llom/util/UtilProvider.java Mon Jul 11 10:48:55 2005
@@ -24,7 +24,9 @@
  */
 
 public class UtilProvider {
-    public static void setNewElement(OMElement parent, OMElement myElement, OMElement newElement) {
+    public static void setNewElement(OMElement parent,
+                                     OMElement myElement,
+                                     OMElement newElement) {
         if (myElement != null) {
             myElement.discard();
         }
@@ -32,11 +34,13 @@
         myElement = newElement;
     }
 
-    public static OMElement getChildWithName(OMElement parent, String childName) {
+    public static OMElement getChildWithName(OMElement parent,
+                                             String childName) {
         Iterator childrenIter = parent.getChildren();
         while (childrenIter.hasNext()) {
             OMNode node = (OMNode) childrenIter.next();
-            if (node.getType() == OMNode.ELEMENT_NODE && childName.equals(((OMElement) node).getLocalName())) {
+            if (node.getType() == OMNode.ELEMENT_NODE &&
+                    childName.equals(((OMElement) node).getLocalName())) {
                 return (OMElement) node;
             }
         }

Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/attachments/Base64Test.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/attachments/Base64Test.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/attachments/Base64Test.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/attachments/Base64Test.java Mon Jul 11 10:48:55 2005
@@ -45,7 +45,8 @@
         objectOutStream.writeObject(expectedObject);
         expectedBase64 = Base64.encode(byteStream.toByteArray());
         byte[] tempa = Base64.decode(expectedBase64);
-        ObjectInputStream objectInStream = new ObjectInputStream(new ByteArrayInputStream(tempa));
+        ObjectInputStream objectInStream = new ObjectInputStream(
+                new ByteArrayInputStream(tempa));
         actualObject = objectInStream.readObject();
         assertEquals("Base64 Encoding Check", expectedObject, actualObject);
     }

Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/attachments/ImageSampleTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/attachments/ImageSampleTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/attachments/ImageSampleTest.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/attachments/ImageSampleTest.java Mon Jul 11 10:48:55 2005
@@ -29,7 +29,12 @@
 import javax.xml.stream.XMLInputFactory;
 import javax.xml.stream.XMLStreamReader;
 import java.awt.*;
-import java.io.*;
+import java.io.BufferedReader;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileOutputStream;
+import java.io.InputStream;
+import java.io.InputStreamReader;
 
 /**
  * @author <a href="mailto:thilina@opensource.lk">Thilina Gunarathne </a>
@@ -79,19 +84,26 @@
 
         outMTOMFile = getTestResourceFile(outFileName);
         outBase64File = getTestResourceFile(outBase64FileName);
-        OMOutput mtomOutput = new OMOutput(new FileOutputStream(outMTOMFile), true);
-        OMOutput baseOutput = new OMOutput(new FileOutputStream(outBase64File), false);
+        OMOutput mtomOutput = new OMOutput(new FileOutputStream(outMTOMFile),
+                true);
+        OMOutput baseOutput = new OMOutput(new FileOutputStream(outBase64File),
+                false);
 
-        OMNamespaceImpl soap = new OMNamespaceImpl("http://schemas.xmlsoap.org/soap/envelope/", "soap");
+        OMNamespaceImpl soap = new OMNamespaceImpl(
+                "http://schemas.xmlsoap.org/soap/envelope/", "soap");
         OMElement envelope = new OMElementImpl("Envelope", soap);
         OMElement body = new OMElementImpl("Body", soap);
 
-        OMNamespaceImpl dataName = new OMNamespaceImpl("http://www.example.org/stuff", "m");
+        OMNamespaceImpl dataName = new OMNamespaceImpl(
+                "http://www.example.org/stuff", "m");
         OMElement data = new OMElementImpl("data", dataName);
 
-        expectedImage = new JDK13IO().loadImage(new FileInputStream(getTestResourceFile(imageInFileName)));
+        expectedImage =
+                new JDK13IO().loadImage(
+                        new FileInputStream(
+                                getTestResourceFile(imageInFileName)));
         ImageDataSource dataSource = new ImageDataSource("WaterLilies.jpg",
-                                                         expectedImage);
+                expectedImage);
         expectedDH = new DataHandler(dataSource);
         OMText binaryNode = new OMTextImpl(expectedDH, true);
 
@@ -108,11 +120,15 @@
     }
 
     public void testImageSampleDeserialize() throws Exception {
-        InputStream inStream = new FileInputStream(getTestResourceFile(inMimeFileName));
+        InputStream inStream = new FileInputStream(
+                getTestResourceFile(inMimeFileName));
         MIMEHelper mimeHelper = new MIMEHelper(inStream, contentTypeString);
         XMLStreamReader reader = XMLInputFactory.newInstance()
-                .createXMLStreamReader(new BufferedReader(new InputStreamReader(mimeHelper
-                                                                                .getSOAPPartInputStream())));
+                .createXMLStreamReader(
+                        new BufferedReader(
+                                new InputStreamReader(
+                                        mimeHelper
+                .getSOAPPartInputStream())));
         builder = new MTOMStAXSOAPModelBuilder(reader, mimeHelper);
         OMElement root = (OMElement) builder.getDocumentElement();
         OMElement body = (OMElement) root.getFirstChild();
@@ -128,8 +144,9 @@
         DataHandler actualDH;
         actualDH = blob.getDataHandler();
         Image actualObject = new JDK13IO().loadImage(actualDH.getDataSource()
-                                                     .getInputStream());
-        FileOutputStream imageOutStream = new FileOutputStream(getTestResourceFile(imageOutFileName));
+                .getInputStream());
+        FileOutputStream imageOutStream = new FileOutputStream(
+                getTestResourceFile(imageOutFileName));
         new JDK13IO().saveImage("image/jpeg", actualObject, imageOutStream);
 
     }

Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/AbstractTestCase.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/AbstractTestCase.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/AbstractTestCase.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/AbstractTestCase.java Mon Jul 11 10:48:55 2005
@@ -26,8 +26,13 @@
         extends TestCase {
     protected String testDir = "test" + File.separator;
     protected String sampleDir = "samples" + File.separator;
-    protected String outDir = "target" + File.separator + "generated" + File.separator + "samples" + File.separator;
-    protected String tempDir = "target" + File.separator + "generated" + File.separator + "temp";
+    protected String outDir = "target" + File.separator + "generated" +
+            File.separator +
+            "samples" +
+            File.separator;
+    protected String tempDir = "target" + File.separator + "generated" +
+            File.separator +
+            "temp";
     protected String testResourceDir = "test-resources";
 
     /**

Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/BadInputTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/BadInputTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/BadInputTest.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/BadInputTest.java Mon Jul 11 10:48:55 2005
@@ -31,7 +31,9 @@
     public void testEnvelopeMissing() throws Exception {
         try {
             SOAPEnvelope soapEnvelope =
-                    (SOAPEnvelope) OMTestUtils.getOMBuilder(new File(dir, "envelopeMissing.xml")).getDocumentElement();
+                    (SOAPEnvelope) OMTestUtils.getOMBuilder(
+                            new File(dir, "envelopeMissing.xml"))
+                    .getDocumentElement();
             OMTestUtils.walkThrough(soapEnvelope);
             fail("this must failed gracefully with OMException or AxisFault");
         } catch (OMException e) {
@@ -44,7 +46,9 @@
     public void testHeaderBodyWrongOrder() throws Exception {
         try {
             SOAPEnvelope soapEnvelope =
-                    (SOAPEnvelope) OMTestUtils.getOMBuilder(new File(dir, "haederBodyWrongOrder.xml")).getDocumentElement();
+                    (SOAPEnvelope) OMTestUtils.getOMBuilder(
+                            new File(dir, "haederBodyWrongOrder.xml"))
+                    .getDocumentElement();
             OMTestUtils.walkThrough(soapEnvelope);
             fail("this must failed gracefully with OMException or AxisFault");
         } catch (OMException e) {
@@ -87,7 +91,9 @@
     public void testTwoBodymessage() throws Exception {
         try {
             SOAPEnvelope soapEnvelope =
-                    (SOAPEnvelope) OMTestUtils.getOMBuilder(new File(dir, "twoBodymessage.xml")).getDocumentElement();
+                    (SOAPEnvelope) OMTestUtils.getOMBuilder(
+                            new File(dir, "twoBodymessage.xml"))
+                    .getDocumentElement();
             OMTestUtils.walkThrough(soapEnvelope);
             fail("this must failed gracefully with OMException or AxisFault");
         } catch (OMException e) {
@@ -100,7 +106,9 @@
     public void testTwoheaders() throws Exception {
         try {
             SOAPEnvelope soapEnvelope =
-                    (SOAPEnvelope) OMTestUtils.getOMBuilder(new File(dir, "twoheaders.xml")).getDocumentElement();
+                    (SOAPEnvelope) OMTestUtils.getOMBuilder(
+                            new File(dir, "twoheaders.xml"))
+                    .getDocumentElement();
             OMTestUtils.walkThrough(soapEnvelope);
             fail("this must failed gracefully with OMException or AxisFault");
         } catch (OMException e) {
@@ -113,7 +121,9 @@
     public void testWrongSoapNs() throws Exception {
         try {
             SOAPEnvelope soapEnvelope =
-                    (SOAPEnvelope) OMTestUtils.getOMBuilder(new File(dir, "wrongSoapNs.xml")).getDocumentElement();
+                    (SOAPEnvelope) OMTestUtils.getOMBuilder(
+                            new File(dir, "wrongSoapNs.xml"))
+                    .getDocumentElement();
             OMTestUtils.walkThrough(soapEnvelope);
             fail("this must failed gracefully with OMException or AxisFault");
         } catch (OMException e) {

Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/CompareOMWithDOMTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/CompareOMWithDOMTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/CompareOMWithDOMTest.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/CompareOMWithDOMTest.java Mon Jul 11 10:48:55 2005
@@ -40,7 +40,9 @@
             for (int i = 0; i < files.length; i++) {
                 if (files[i].isFile() && files[i].getName().endsWith(".xml")) {
                     System.out.println("files = " + files[i].getAbsolutePath());
-                    SOAPEnvelope soapEnvelope = (SOAPEnvelope) OMTestUtils.getOMBuilder(files[i]).getDocumentElement();
+                    SOAPEnvelope soapEnvelope = (SOAPEnvelope) OMTestUtils.getOMBuilder(
+                            files[i])
+                            .getDocumentElement();
                     DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
                     dbf.setNamespaceAware(true);
                     DocumentBuilder builder = dbf.newDocumentBuilder();
@@ -49,7 +51,8 @@
 //                    XMLStreamWriter writer = XMLOutputFactory.newInstance().createXMLStreamWriter(System.out) ;
 //                    soapEnvelope.serializeWithCache(writer);
 //                    writer.flush();
-                    OMTestUtils.compare(doc.getDocumentElement(), soapEnvelope);
+                    OMTestUtils.compare(doc.getDocumentElement(),
+                            soapEnvelope);
                 }
             }
 

Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/IteratorTester.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/IteratorTester.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/IteratorTester.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/IteratorTester.java Mon Jul 11 10:48:55 2005
@@ -30,7 +30,12 @@
     }
 
     protected void setUp() throws Exception {
-        envelope = new StAXSOAPModelBuilder(XMLInputFactory.newInstance().createXMLStreamReader(new FileReader(getTestResourceFile("soap/soapmessage1.xml")))).getSOAPEnvelope();
+        envelope =
+                new StAXSOAPModelBuilder(
+                        XMLInputFactory.newInstance().createXMLStreamReader(
+                                new FileReader(
+                                        getTestResourceFile(
+                                                "soap/soapmessage1.xml")))).getSOAPEnvelope();
     }
 
     protected void tearDown() throws Exception {
@@ -126,7 +131,9 @@
             assertNotNull((OMNode) iter.next());
             secondChildrenCount++;
         }
-        assertEquals("children count must reduce from 1", firstChildrenCount - 1, secondChildrenCount);
+        assertEquals("children count must reduce from 1",
+                firstChildrenCount - 1,
+                secondChildrenCount);
 
     }
 

Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/MIMEOutputUtilsTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/MIMEOutputUtilsTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/MIMEOutputUtilsTest.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/MIMEOutputUtilsTest.java Mon Jul 11 10:48:55 2005
@@ -49,7 +49,8 @@
         dataHandler = new DataHandler(new ByteArrayDataSource(byteArray));
         OMText textData = factory.createText(dataHandler, true);
 
-        DataHandler dataHandler2 = new DataHandler("Apache Software Foundation", "text/plain");
+        DataHandler dataHandler2 = new DataHandler(
+                "Apache Software Foundation", "text/plain");
         OMText text = factory.createText(dataHandler2, true);
         outStream = new ByteArrayOutputStream();
         outStream.write(("Content-Type: " + contentType).getBytes());
@@ -73,8 +74,9 @@
                 .getInstance(props, null);
         MimeMessage mimeMessage = new MimeMessage(session, inStream);
         DataHandler dh = mimeMessage.getDataHandler();
-        MimeMultipart multiPart = new MimeMultipart((MimePartDataSource) dh
-                                                                         .getDataSource());
+        MimeMultipart multiPart = new MimeMultipart(
+                (MimePartDataSource) dh
+                .getDataSource());
         MimeBodyPart mimeBodyPart2 = (MimeBodyPart) multiPart.getBodyPart(0);
         Object object = mimeBodyPart2.getContent();
         MimeBodyPart mimeBodyPart1 = (MimeBodyPart) multiPart.getBodyPart(0);

Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/MessagesTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/MessagesTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/MessagesTest.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/MessagesTest.java Mon Jul 11 10:48:55 2005
@@ -24,23 +24,36 @@
         super(testName);
     }
 
-    public void testMessageWithLotOfWhiteSpaces() throws OMException, Exception {
-        soapEnvelope = (SOAPEnvelope) OMTestUtils.getOMBuilder(getTestResourceFile("soap/whitespacedMessage.xml")).getDocumentElement();
+    public void testMessageWithLotOfWhiteSpaces() throws OMException,
+            Exception {
+        soapEnvelope =
+                (SOAPEnvelope) OMTestUtils.getOMBuilder(
+                        getTestResourceFile("soap/whitespacedMessage.xml"))
+                .getDocumentElement();
         OMTestUtils.walkThrough(soapEnvelope);
     }
 
     public void testMinimalMessage() throws OMException, Exception {
-        soapEnvelope = (SOAPEnvelope) OMTestUtils.getOMBuilder(getTestResourceFile("soap/minimalMessage.xml")).getDocumentElement();
+        soapEnvelope =
+                (SOAPEnvelope) OMTestUtils.getOMBuilder(
+                        getTestResourceFile("soap/minimalMessage.xml"))
+                .getDocumentElement();
         OMTestUtils.walkThrough(soapEnvelope);
     }
 
     public void testReallyBigMessage() throws OMException, Exception {
-        soapEnvelope = (SOAPEnvelope) OMTestUtils.getOMBuilder(getTestResourceFile("soap/reallyReallyBigMessage.xml")).getDocumentElement();
+        soapEnvelope =
+                (SOAPEnvelope) OMTestUtils.getOMBuilder(
+                        getTestResourceFile("soap/reallyReallyBigMessage.xml"))
+                .getDocumentElement();
         OMTestUtils.walkThrough(soapEnvelope);
     }
 
     public void testEmptyBodiedMessage() throws OMException, Exception {
-        soapEnvelope = (SOAPEnvelope) OMTestUtils.getOMBuilder(getTestResourceFile("soap/emtyBodymessage.xml")).getDocumentElement();
+        soapEnvelope =
+                (SOAPEnvelope) OMTestUtils.getOMBuilder(
+                        getTestResourceFile("soap/emtyBodymessage.xml"))
+                .getDocumentElement();
         OMTestUtils.walkThrough(soapEnvelope);
     }
 

Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMBodyTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMBodyTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMBodyTest.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMBodyTest.java Mon Jul 11 10:48:55 2005
@@ -39,7 +39,9 @@
     public void testAddFault() {
         System.out.println("Adding SOAP fault to body ....");
         try {
-            soapBody.addChild(soapFactory.createSOAPFault(soapBody, new Exception("Testing soap fault")));
+            soapBody.addChild(
+                    soapFactory.createSOAPFault(soapBody,
+                            new Exception("Testing soap fault")));
         } catch (SOAPProcessingException e) {
             e.printStackTrace();
             fail(e.getMessage());

Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMChildrenQNameIteratorTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMChildrenQNameIteratorTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMChildrenQNameIteratorTest.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMChildrenQNameIteratorTest.java Mon Jul 11 10:48:55 2005
@@ -36,7 +36,12 @@
     OMChildrenQNameIterator omChildrenQNameIterator;
 
     protected void setUp() throws Exception {
-        stAXSOAPModelBuilder = new StAXSOAPModelBuilder(XMLInputFactory.newInstance().createXMLStreamReader(new FileReader(getTestResourceFile("soap/soapmessage1.xml"))));
+        stAXSOAPModelBuilder =
+                new StAXSOAPModelBuilder(
+                        XMLInputFactory.newInstance().createXMLStreamReader(
+                                new FileReader(
+                                        getTestResourceFile(
+                                                "soap/soapmessage1.xml"))));
         envelope = stAXSOAPModelBuilder.getSOAPEnvelope();
     }
 
@@ -47,8 +52,8 @@
     private QName getBodyQname() {
 
         return new QName(stAXSOAPModelBuilder.getEnvelopeNamespace().getName(),
-                         SOAPConstants.BODY_LOCAL_NAME,
-                         stAXSOAPModelBuilder.getEnvelopeNamespace().getPrefix());
+                SOAPConstants.BODY_LOCAL_NAME,
+                stAXSOAPModelBuilder.getEnvelopeNamespace().getPrefix());
     }
 
     public void testIterator() {
@@ -140,7 +145,9 @@
             assertNotNull((OMNode) iter.next());
             secondChildrenCount++;
         }
-        assertEquals("children count must reduce from 1", firstChildrenCount - 1, secondChildrenCount);
+        assertEquals("children count must reduce from 1",
+                firstChildrenCount - 1,
+                secondChildrenCount);
 
     }
 

Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMElementTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMElementTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMElementTest.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMElementTest.java Mon Jul 11 10:48:55 2005
@@ -39,12 +39,16 @@
 
     public void testGetText() {
         try {
-            StAXSOAPModelBuilder soapBuilder = getOMBuilder("soap/OMElementTest.xml");
+            StAXSOAPModelBuilder soapBuilder = getOMBuilder(
+                    "soap/OMElementTest.xml");
             SOAPEnvelope soapEnvelope = (SOAPEnvelope) soapBuilder.getDocumentElement();
-            OMElement wsaTo = soapEnvelope.getHeader().getFirstChildWithName(new QName(WSA_URI, WSA_TO));
+            OMElement wsaTo = soapEnvelope.getHeader().getFirstChildWithName(
+                    new QName(WSA_URI, WSA_TO));
 
             String expectedString = "http://localhost:8081/axis/services/BankPort";
-            assertEquals("getText is not returning the correct value", wsaTo.getText().trim(), expectedString);
+            assertEquals("getText is not returning the correct value",
+                    wsaTo.getText().trim(),
+                    expectedString);
         } catch (Exception e) {
             e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
         }

Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMEnvelopeTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMEnvelopeTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMEnvelopeTest.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMEnvelopeTest.java Mon Jul 11 10:48:55 2005
@@ -31,26 +31,34 @@
 
     public void testGetHeader1() {
         SOAPHeader header = soapEnvelope.getHeader();
-        assertTrue("Header information retrieved not correct", (header != null && header.getLocalName().equalsIgnoreCase("Header")));
+        assertTrue("Header information retrieved not correct",
+                (header != null &&
+                header.getLocalName().equalsIgnoreCase("Header")));
     }
 
     public void testGetBody1() {
         SOAPBody body = soapEnvelope.getBody();
-        assertTrue("Header information retrieved not correct", (body != null && body.getLocalName().equalsIgnoreCase("Body")));
+        assertTrue("Header information retrieved not correct",
+                (body != null && body.getLocalName().equalsIgnoreCase("Body")));
     }
 
     private SOAPEnvelope getSecondEnvelope() throws Exception {
-        return (SOAPEnvelope) OMTestUtils.getOMBuilder(getTestResourceFile("soap/sample1.xml")).getDocumentElement();
+        return (SOAPEnvelope) OMTestUtils.getOMBuilder(
+                getTestResourceFile("soap/sample1.xml"))
+                .getDocumentElement();
     }
 
     public void testGetHeader2() throws Exception {
         SOAPHeader header = getSecondEnvelope().getHeader();
-        assertTrue("Header information retrieved not correct", (header != null && header.getLocalName().equalsIgnoreCase("Header")));
+        assertTrue("Header information retrieved not correct",
+                (header != null &&
+                header.getLocalName().equalsIgnoreCase("Header")));
     }
 
     public void testGetBody2() throws Exception {
         SOAPBody body = getSecondEnvelope().getBody();
-        assertTrue("Header information retrieved not correct", (body != null && body.getLocalName().equalsIgnoreCase("Body")));
+        assertTrue("Header information retrieved not correct",
+                (body != null && body.getLocalName().equalsIgnoreCase("Body")));
     }
 
     public void testDefaultEnveleope() {

Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMHeaderBlockTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMHeaderBlockTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMHeaderBlockTest.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMHeaderBlockTest.java Mon Jul 11 10:48:55 2005
@@ -41,12 +41,14 @@
         String newActorURI = "http://newActor.org";
         soapHeaderElement.setRole(newActorURI);
         System.out.println("ActorURI = " + soapHeaderElement.getRole());
-        assertTrue("Actor was not properly set", soapHeaderElement.getRole().equalsIgnoreCase(newActorURI));
+        assertTrue("Actor was not properly set",
+                soapHeaderElement.getRole().equalsIgnoreCase(newActorURI));
     }
 
     public void testSetAndGetMustUnderstand() {
         soapHeaderElement.setMustUnderstand(false);
-        assertTrue("MustUnderstand was not properly set", !soapHeaderElement.getMustUnderstand());
+        assertTrue("MustUnderstand was not properly set",
+                !soapHeaderElement.getMustUnderstand());
     }
 
     public void testGetMustUnderstand() {

Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMHeaderTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMHeaderTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMHeaderTest.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMHeaderTest.java Mon Jul 11 10:48:55 2005
@@ -41,9 +41,16 @@
 
     public void testAddHeaderElement() {
         String newElementName = "MyHeaderElement";
-        SOAPHeaderBlock soapHeaderElement = soapHeader.addHeaderBlock(newElementName, new OMNamespaceImpl("http://opensource.lk", "lsf"));
-        assertTrue("Header Element added has different parent than it should have", soapHeaderElement.getParent() == soapHeader);
-        assertTrue("Header Element added has different localname than it was given", soapHeaderElement.getLocalName().equalsIgnoreCase(newElementName));
+        SOAPHeaderBlock soapHeaderElement = soapHeader.addHeaderBlock(
+                newElementName,
+                new OMNamespaceImpl("http://opensource.lk", "lsf"));
+        assertTrue(
+                "Header Element added has different parent than it should have",
+                soapHeaderElement.getParent() == soapHeader);
+        assertTrue(
+                "Header Element added has different localname than it was given",
+                soapHeaderElement.getLocalName().equalsIgnoreCase(
+                        newElementName));
     }
 
     public void testExamineHeaderElements() {
@@ -64,7 +71,9 @@
             iterator.next();
             headerElementCount++;
         }
-        assertTrue("Number of header elements in the header differs from expected value of 3", headerElementCount == 3);
+        assertTrue(
+                "Number of header elements in the header differs from expected value of 3",
+                headerElementCount == 3);
     }
 
     public void testExtractAllHeaderElements() {

Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMNavigatorTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMNavigatorTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMNavigatorTest.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMNavigatorTest.java Mon Jul 11 10:48:55 2005
@@ -39,12 +39,17 @@
 
     protected void setUp() throws Exception {
         XMLStreamReader xmlStreamReader = XMLInputFactory.newInstance().
-                createXMLStreamReader(new FileReader(getTestResourceFile("soap/soapmessage1.xml")));
+                createXMLStreamReader(
+                        new FileReader(
+                                getTestResourceFile("soap/soapmessage1.xml")));
         SOAPFactory factory = OMAbstractFactory.getSOAP11Factory();
         builder = new StAXSOAPModelBuilder(xmlStreamReader);
         envelope = (SOAPEnvelope) builder.getDocumentElement();
         tempFile = File.createTempFile("temp", "xml");
-        omOutput = new OMOutput(XMLOutputFactory.newInstance().createXMLStreamWriter(new FileOutputStream(tempFile)));
+        omOutput =
+                new OMOutput(
+                        XMLOutputFactory.newInstance().createXMLStreamWriter(
+                                new FileOutputStream(tempFile)));
         //        writer = XMLOutputFactory.newInstance().createXMLStreamWriter(System.out);
 
 

Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMTest.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMTest.java Mon Jul 11 10:48:55 2005
@@ -41,7 +41,8 @@
 
     protected void setUp() throws Exception {
         File file = getTestResourceFile("soap/sample1.xml");
-        XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(new FileReader(file));
+        XMLStreamReader parser = XMLInputFactory.newInstance()
+                .createXMLStreamReader(new FileReader(file));
         fac = OMAbstractFactory.getSOAP11Factory();
         OMXMLParserWrapper builder = new StAXSOAPModelBuilder(parser);
         envelope = (SOAPEnvelope) builder.getDocumentElement();

Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMTestCase.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMTestCase.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMTestCase.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMTestCase.java Mon Jul 11 10:48:55 2005
@@ -19,7 +19,11 @@
 import org.apache.axis2.soap.SOAPFactory;
 import org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder;
 
-import javax.xml.stream.*;
+import javax.xml.stream.XMLInputFactory;
+import javax.xml.stream.XMLOutputFactory;
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamReader;
+import javax.xml.stream.XMLStreamWriter;
 import java.io.FileReader;
 import java.io.InputStream;
 import java.io.OutputStream;
@@ -47,13 +51,16 @@
         if (fileName == "" || fileName == null) {
             fileName = IN_FILE_NAME;
         }
-        XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(new FileReader(getTestResourceFile(fileName)));
+        XMLStreamReader parser = XMLInputFactory.newInstance()
+                .createXMLStreamReader(
+                        new FileReader(getTestResourceFile(fileName)));
         builder = new StAXSOAPModelBuilder(parser);
         return builder;
     }
 
     protected StAXSOAPModelBuilder getOMBuilder(InputStream in) throws Exception {
-        XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(in);
+        XMLStreamReader parser = XMLInputFactory.newInstance()
+                .createXMLStreamReader(in);
         builder = new StAXSOAPModelBuilder(parser);
         return builder;
     }

Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMTestUtils.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMTestUtils.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMTestUtils.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/OMTestUtils.java Mon Jul 11 10:48:55 2005
@@ -18,7 +18,11 @@
 import junit.framework.TestCase;
 import org.apache.axis2.om.impl.llom.factory.OMXMLBuilderFactory;
 import org.apache.axis2.soap.SOAPEnvelope;
-import org.w3c.dom.*;
+import org.w3c.dom.Attr;
+import org.w3c.dom.Element;
+import org.w3c.dom.NamedNodeMap;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
 
 import javax.xml.stream.XMLInputFactory;
 import javax.xml.stream.XMLStreamReader;
@@ -28,8 +32,10 @@
 
 public class OMTestUtils {
     public static OMXMLParserWrapper getOMBuilder(File file) throws Exception {
-        XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(new FileReader(file));
-        OMXMLParserWrapper builder = OMXMLBuilderFactory.createStAXSOAPModelBuilder(OMAbstractFactory.getSOAP11Factory(), parser);
+        XMLStreamReader parser = XMLInputFactory.newInstance()
+                .createXMLStreamReader(new FileReader(file));
+        OMXMLParserWrapper builder = OMXMLBuilderFactory.createStAXSOAPModelBuilder(
+                OMAbstractFactory.getSOAP11Factory(), parser);
         return builder;
     }
 
@@ -38,7 +44,8 @@
         if (attibIt != null) {
             while (attibIt.hasNext()) {
                 TestCase.assertNotNull("once the has next is not null, the " +
-                                       "element should not be null", attibIt.next());
+                        "element should not be null",
+                        attibIt.next());
             }
         }
         Iterator it = omEle.getChildren();
@@ -46,7 +53,7 @@
             while (it.hasNext()) {
                 OMNode ele = (OMNode) it.next();
                 TestCase.assertNotNull("once the has next is not null, the " +
-                                       "element should not be null", ele);
+                        "element should not be null", ele);
                 if (ele instanceof OMElement) {
                     walkThrough((OMElement) ele);
                 }
@@ -58,9 +65,13 @@
         if (ele == null && omele == null) {
             return;
         } else if (ele != null && omele != null) {
-            TestCase.assertEquals("Element name not correct", ele.getLocalName(), omele.getLocalName());
+            TestCase.assertEquals("Element name not correct",
+                    ele.getLocalName(),
+                    omele.getLocalName());
             if (omele.getNamespace() != null) {
-                TestCase.assertEquals("Namespace URI not correct", ele.getNamespaceURI(), omele.getNamespace().getName());
+                TestCase.assertEquals("Namespace URI not correct",
+                        ele.getNamespaceURI(),
+                        omele.getNamespace().getName());
 
             }
 
@@ -72,10 +83,13 @@
             String DOMAttrName;
             while (attIterator != null && attIterator.hasNext() && map == null) {
                 omattribute = (OMAttribute) attIterator.next();
-                Node node = map.getNamedItemNS(omattribute.getNamespace().getName(), omattribute.getLocalName());
+                Node node = map.getNamedItemNS(
+                        omattribute.getNamespace().getName(),
+                        omattribute.getLocalName());
                 if (node.getNodeType() == Node.ATTRIBUTE_NODE) {
                     Attr attr = (Attr) node;
-                    TestCase.assertEquals(attr.getValue(), omattribute.getValue());
+                    TestCase.assertEquals(attr.getValue(),
+                            omattribute.getValue());
                 } else {
                     throw new OMException("return type is not a Attribute");
                 }

Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/SOAPFaultTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/SOAPFaultTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/SOAPFaultTest.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/SOAPFaultTest.java Mon Jul 11 10:48:55 2005
@@ -35,7 +35,7 @@
     protected void setUp() throws Exception {
         super.setUp();
         omOutput = new OMOutput(XMLOutputFactory.newInstance().
-                                createXMLStreamWriter(System.out));
+                createXMLStreamWriter(System.out));
     }
 
     public void testSOAPFault() throws Exception {

Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/StaxParserTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/StaxParserTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/StaxParserTest.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/StaxParserTest.java Mon Jul 11 10:48:55 2005
@@ -43,15 +43,22 @@
 
     protected void setUp() throws Exception {
         //make the parsers
-        parser1 = XMLInputFactory.newInstance().createXMLStreamReader(new ByteArrayInputStream(xmlDocument.getBytes()));
+        parser1 =
+                XMLInputFactory.newInstance().createXMLStreamReader(
+                        new ByteArrayInputStream(xmlDocument.getBytes()));
 
-        OMXMLParserWrapper builder = OMXMLBuilderFactory.createStAXOMBuilder(OMAbstractFactory.getSOAP11Factory(),
-                                                                             XMLInputFactory.newInstance().createXMLStreamReader(new ByteArrayInputStream(xmlDocument.getBytes())));
+        OMXMLParserWrapper builder = OMXMLBuilderFactory.createStAXOMBuilder(
+                OMAbstractFactory.getSOAP11Factory(),
+                XMLInputFactory.newInstance().createXMLStreamReader(
+                        new ByteArrayInputStream(xmlDocument.getBytes())));
         parser2 = builder.getDocumentElement().getXMLStreamReader();
 
-        OMXMLParserWrapper builder2 = OMXMLBuilderFactory.createStAXOMBuilder(OMAbstractFactory.getSOAP11Factory(),
-                                                                              XMLInputFactory.newInstance().createXMLStreamReader(new ByteArrayInputStream(xmlDocument.getBytes())));
-        parser3 = builder2.getDocumentElement().getXMLStreamReaderWithoutCaching();
+        OMXMLParserWrapper builder2 = OMXMLBuilderFactory.createStAXOMBuilder(
+                OMAbstractFactory.getSOAP11Factory(),
+                XMLInputFactory.newInstance().createXMLStreamReader(
+                        new ByteArrayInputStream(xmlDocument.getBytes())));
+        parser3 =
+                builder2.getDocumentElement().getXMLStreamReaderWithoutCaching();
 
     }
 

Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/factory/OMLinkedListImplFactoryTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/factory/OMLinkedListImplFactoryTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/factory/OMLinkedListImplFactoryTest.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/factory/OMLinkedListImplFactoryTest.java Mon Jul 11 10:48:55 2005
@@ -15,8 +15,19 @@
  */
 package org.apache.axis2.om.factory;
 
-import org.apache.axis2.om.*;
-import org.apache.axis2.soap.*;
+import org.apache.axis2.om.AbstractTestCase;
+import org.apache.axis2.om.OMAbstractFactory;
+import org.apache.axis2.om.OMElement;
+import org.apache.axis2.om.OMNamespace;
+import org.apache.axis2.om.OMTestUtils;
+import org.apache.axis2.om.OMText;
+import org.apache.axis2.om.OMXMLParserWrapper;
+import org.apache.axis2.soap.SOAPBody;
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.SOAPFactory;
+import org.apache.axis2.soap.SOAPFault;
+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;
 
@@ -43,18 +54,28 @@
     }
 
     public void testCreateOMElementWithNoBuilder() {
-        OMElement omElement = omFactory.createOMElement("chinthaka", namespace);
-        assertTrue("Programatically created OMElement should have done = true ", omElement.isComplete());
+        OMElement omElement = omFactory.createOMElement("chinthaka",
+                namespace);
+        assertTrue(
+                "Programatically created OMElement should have done = true ",
+                omElement.isComplete());
 
     }
 
     public void testCreateOMElement() {
         try {
-            OMXMLParserWrapper omBuilder = OMTestUtils.getOMBuilder(getTestResourceFile("soap/whitespacedMessage.xml"));
+            OMXMLParserWrapper omBuilder = OMTestUtils.getOMBuilder(
+                    getTestResourceFile("soap/whitespacedMessage.xml"));
             OMElement documentElement = omBuilder.getDocumentElement();
-            OMElement child = omFactory.createOMElement("child", namespace, documentElement, omBuilder);
-            assertTrue("OMElement with a builder should start with done = false ", !child.isComplete());
-            assertTrue("This OMElement must have a builder ", child.getBuilder() instanceof OMXMLParserWrapper);
+            OMElement child = omFactory.createOMElement("child",
+                    namespace,
+                    documentElement,
+                    omBuilder);
+            assertTrue(
+                    "OMElement with a builder should start with done = false ",
+                    !child.isComplete());
+            assertTrue("This OMElement must have a builder ",
+                    child.getBuilder() instanceof OMXMLParserWrapper);
 
         } catch (Exception e) {
             e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
@@ -62,29 +83,42 @@
     }
 
     public void testCreateOMNamespace() {
-        assertTrue("OMNamespace uri not correct", nsUri.equals(namespace.getName()));   // here equalsIgnoreCase should not be used as case does matter
-        assertTrue("OMNamespace prefix not correct", nsPrefix.equals(namespace.getPrefix()));  // here equalsIgnoreCase should not be used as case does matter
+        assertTrue("OMNamespace uri not correct",
+                nsUri.equals(namespace.getName()));   // here equalsIgnoreCase should not be used as case does matter
+        assertTrue("OMNamespace prefix not correct",
+                nsPrefix.equals(namespace.getPrefix()));  // here equalsIgnoreCase should not be used as case does matter
     }
 
     public void testCreateText() {
-        OMElement omElement = omFactory.createOMElement("chinthaka", namespace);
+        OMElement omElement = omFactory.createOMElement("chinthaka",
+                namespace);
         String text = "sampleText";
         OMText omText = omFactory.createText(omElement, text);
-        assertTrue("Programatically created OMText should have done = true ", omText.isComplete());
-        assertTrue("Programatically created OMText should have correct text value ", text.equals(omText.getText()));
+        assertTrue("Programatically created OMText should have done = true ",
+                omText.isComplete());
+        assertTrue(
+                "Programatically created OMText should have correct text value ",
+                text.equals(omText.getText()));
 
     }
 
     public void testCreateSOAPBody() {
         try {
-            OMXMLParserWrapper omBuilder = OMTestUtils.getOMBuilder(getTestResourceFile("soap/minimalMessage.xml"));
+            OMXMLParserWrapper omBuilder = OMTestUtils.getOMBuilder(
+                    getTestResourceFile("soap/minimalMessage.xml"));
             SOAPEnvelope soapEnvelope = (SOAPEnvelope) omBuilder.getDocumentElement();
             SOAPBody soapBodyOne = omFactory.createSOAPBody(soapEnvelope);
-            assertTrue("Programatically created SOAPBody should have done = true ", soapBodyOne.isComplete());
+            assertTrue(
+                    "Programatically created SOAPBody should have done = true ",
+                    soapBodyOne.isComplete());
             soapBodyOne.detach();
-            SOAPBody soapBodyTwo = omFactory.createSOAPBody(soapEnvelope, omBuilder);
-            assertTrue("SOAPBody with a builder should start with done = false ", !soapBodyTwo.isComplete());
-            assertTrue("This SOAPBody must have a builder ", soapBodyTwo.getBuilder() instanceof OMXMLParserWrapper);
+            SOAPBody soapBodyTwo = omFactory.createSOAPBody(soapEnvelope,
+                    omBuilder);
+            assertTrue(
+                    "SOAPBody with a builder should start with done = false ",
+                    !soapBodyTwo.isComplete());
+            assertTrue("This SOAPBody must have a builder ",
+                    soapBodyTwo.getBuilder() instanceof OMXMLParserWrapper);
 
 
         } catch (Exception e) {
@@ -94,12 +128,21 @@
 
     public void testCreateSOAPEnvelope() {
         try {
-            OMNamespace soapNamespace = omFactory.createOMNamespace(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI, SOAPConstants.SOAP_DEFAULT_NAMESPACE_PREFIX);
+            OMNamespace soapNamespace = omFactory.createOMNamespace(
+                    SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI,
+                    SOAPConstants.SOAP_DEFAULT_NAMESPACE_PREFIX);
             SOAPEnvelope soapEnvelopeTwo = omFactory.createSOAPEnvelope();
-            assertTrue("Programatically created SOAPEnvelope should have done = true ", soapEnvelopeTwo.isComplete());
-            SOAPEnvelope soapEnvelope = omFactory.createSOAPEnvelope(OMTestUtils.getOMBuilder(getTestResourceFile("soap/minimalMessage.xml")));
-            assertTrue("SOAPEnvelope with a builder should start with done = false ", !soapEnvelope.isComplete());
-            assertTrue("This SOAPEnvelope must have a builder ", soapEnvelope.getBuilder() instanceof OMXMLParserWrapper);
+            assertTrue(
+                    "Programatically created SOAPEnvelope should have done = true ",
+                    soapEnvelopeTwo.isComplete());
+            SOAPEnvelope soapEnvelope = omFactory.createSOAPEnvelope(
+                    OMTestUtils.getOMBuilder(
+                            getTestResourceFile("soap/minimalMessage.xml")));
+            assertTrue(
+                    "SOAPEnvelope with a builder should start with done = false ",
+                    !soapEnvelope.isComplete());
+            assertTrue("This SOAPEnvelope must have a builder ",
+                    soapEnvelope.getBuilder() instanceof OMXMLParserWrapper);
 
 
         } catch (Exception e) {
@@ -109,14 +152,21 @@
 
     public void testCreateSOAPHeader() {
         try {
-            OMXMLParserWrapper omBuilder = OMTestUtils.getOMBuilder(getTestResourceFile("soap/minimalMessage.xml"));
+            OMXMLParserWrapper omBuilder = OMTestUtils.getOMBuilder(
+                    getTestResourceFile("soap/minimalMessage.xml"));
             SOAPEnvelope soapEnvelope = (SOAPEnvelope) omBuilder.getDocumentElement();
             SOAPHeader soapHeader = omFactory.createSOAPHeader(soapEnvelope);
-            assertTrue("Programatically created SOAPHeader should have done = true ", soapHeader.isComplete());
+            assertTrue(
+                    "Programatically created SOAPHeader should have done = true ",
+                    soapHeader.isComplete());
             soapHeader.detach();
-            SOAPHeader soapHeaderTwo = omFactory.createSOAPHeader(soapEnvelope, omBuilder);
-            assertTrue("SOAPHeader with a builder should start with done = false ", !soapHeaderTwo.isComplete());
-            assertTrue("This SOAPHeader must have a builder ", soapHeaderTwo.getBuilder() instanceof OMXMLParserWrapper);
+            SOAPHeader soapHeaderTwo = omFactory.createSOAPHeader(soapEnvelope,
+                    omBuilder);
+            assertTrue(
+                    "SOAPHeader with a builder should start with done = false ",
+                    !soapHeaderTwo.isComplete());
+            assertTrue("This SOAPHeader must have a builder ",
+                    soapHeaderTwo.getBuilder() instanceof OMXMLParserWrapper);
 
 
         } catch (Exception e) {
@@ -126,14 +176,22 @@
 
     public void testCreateSOAPHeaderBlock() {
         try {
-            OMXMLParserWrapper omBuilder = OMTestUtils.getOMBuilder(getTestResourceFile("soap/soapmessage.xml"));
+            OMXMLParserWrapper omBuilder = OMTestUtils.getOMBuilder(
+                    getTestResourceFile("soap/soapmessage.xml"));
             SOAPEnvelope soapEnvelope = (SOAPEnvelope) omBuilder.getDocumentElement();
             SOAPHeader soapHeader = soapEnvelope.getHeader();
-            SOAPHeaderBlock soapHeaderBlock = omFactory.createSOAPHeaderBlock("soapHeaderBlockOne", namespace, soapHeader);
-            assertTrue("Programatically created SOAPHeaderBlock should have done = true ", soapHeaderBlock.isComplete());
-            SOAPHeaderBlock soapHeaderBlockTwo = omFactory.createSOAPHeaderBlock("soapHeaderBlockOne", namespace, soapHeader, omBuilder);
-            assertTrue("SOAPHeaderBlock with a builder should start with done = false ", !soapHeaderBlockTwo.isComplete());
-            assertTrue("This SOAPHeaderBlock must have a builder ", soapHeaderBlockTwo.getBuilder() instanceof OMXMLParserWrapper);
+            SOAPHeaderBlock soapHeaderBlock = omFactory.createSOAPHeaderBlock(
+                    "soapHeaderBlockOne", namespace, soapHeader);
+            assertTrue(
+                    "Programatically created SOAPHeaderBlock should have done = true ",
+                    soapHeaderBlock.isComplete());
+            SOAPHeaderBlock soapHeaderBlockTwo = omFactory.createSOAPHeaderBlock(
+                    "soapHeaderBlockOne", namespace, soapHeader, omBuilder);
+            assertTrue(
+                    "SOAPHeaderBlock with a builder should start with done = false ",
+                    !soapHeaderBlockTwo.isComplete());
+            assertTrue("This SOAPHeaderBlock must have a builder ",
+                    soapHeaderBlockTwo.getBuilder() instanceof OMXMLParserWrapper);
 
 
         } catch (Exception e) {
@@ -143,15 +201,23 @@
 
     public void testCreateSOAPFault() {
         try {
-            OMXMLParserWrapper omBuilder = OMTestUtils.getOMBuilder(getTestResourceFile("soap/soapmessage.xml"));
+            OMXMLParserWrapper omBuilder = OMTestUtils.getOMBuilder(
+                    getTestResourceFile("soap/soapmessage.xml"));
             SOAPEnvelope soapEnvelope = (SOAPEnvelope) omBuilder.getDocumentElement();
             SOAPBody soapBody = soapEnvelope.getBody();
-            SOAPFault soapFault = omFactory.createSOAPFault(soapBody, new Exception(" this is just a test "));
-            assertTrue("Programatically created SOAPFault should have done = true ", soapFault.isComplete());
+            SOAPFault soapFault = omFactory.createSOAPFault(soapBody,
+                    new Exception(" this is just a test "));
+            assertTrue(
+                    "Programatically created SOAPFault should have done = true ",
+                    soapFault.isComplete());
             soapFault.detach();
-            SOAPFault soapFaultTwo = omFactory.createSOAPFault(soapBody, omBuilder);
-            assertTrue("SOAPFault with a builder should start with done = false ", !soapFaultTwo.isComplete());
-            assertTrue("This SOAPFault must have a builder ", soapFaultTwo.getBuilder() instanceof OMXMLParserWrapper);
+            SOAPFault soapFaultTwo = omFactory.createSOAPFault(soapBody,
+                    omBuilder);
+            assertTrue(
+                    "SOAPFault with a builder should start with done = false ",
+                    !soapFaultTwo.isComplete());
+            assertTrue("This SOAPFault must have a builder ",
+                    soapFaultTwo.getBuilder() instanceof OMXMLParserWrapper);
 
 
         } catch (Exception e) {

Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/impl/builder/StAXOMBuilderTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/impl/builder/StAXOMBuilderTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/impl/builder/StAXOMBuilderTest.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/impl/builder/StAXOMBuilderTest.java Mon Jul 11 10:48:55 2005
@@ -15,7 +15,11 @@
  */
 package org.apache.axis2.om.impl.builder;
 
-import org.apache.axis2.om.*;
+import org.apache.axis2.om.AbstractTestCase;
+import org.apache.axis2.om.OMAbstractFactory;
+import org.apache.axis2.om.OMElement;
+import org.apache.axis2.om.OMNode;
+import org.apache.axis2.om.OMText;
 import org.apache.axis2.om.impl.llom.builder.StAXOMBuilder;
 import org.apache.axis2.om.impl.llom.factory.OMXMLBuilderFactory;
 
@@ -37,13 +41,18 @@
 
     protected void setUp() throws Exception {
         testFile = new FileReader(getTestResourceFile("non_soap.xml"));
-        stAXOMBuilder = OMXMLBuilderFactory.createStAXOMBuilder(OMAbstractFactory.getSOAP11Factory(), XMLInputFactory.newInstance().createXMLStreamReader(testFile));
+        stAXOMBuilder =
+                OMXMLBuilderFactory.createStAXOMBuilder(
+                        OMAbstractFactory.getSOAP11Factory(),
+                        XMLInputFactory.newInstance().createXMLStreamReader(
+                                testFile));
     }
 
     public void testGetRootElement() throws Exception {
         rootElement = stAXOMBuilder.getDocumentElement();
         assertTrue("Root element can not be null", rootElement != null);
-        assertTrue(" Name of the root element is wrong", rootElement.getLocalName().equalsIgnoreCase("Root"));
+        assertTrue(" Name of the root element is wrong",
+                rootElement.getLocalName().equalsIgnoreCase("Root"));
         // get the first OMElement child
         OMNode omnode = rootElement.getFirstChild();
         while (omnode instanceof OMText) {

Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/impl/llom/OMOutputTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/impl/llom/OMOutputTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/impl/llom/OMOutputTest.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/impl/llom/OMOutputTest.java Mon Jul 11 10:48:55 2005
@@ -62,18 +62,21 @@
         outMTOMFile = getTestResourceFile(outFileName);
         outBase64File = getTestResourceFile(outBase64FileName);
 
-        OMNamespaceImpl soap = new OMNamespaceImpl("http://schemas.xmlsoap.org/soap/envelope/", "soap");
+        OMNamespaceImpl soap = new OMNamespaceImpl(
+                "http://schemas.xmlsoap.org/soap/envelope/", "soap");
         envelope = new OMElementImpl("Envelope", soap);
         OMElement body = new OMElementImpl("Body", soap);
 
-        OMNamespaceImpl dataName = new OMNamespaceImpl("http://www.example.org/stuff", "m");
+        OMNamespaceImpl dataName = new OMNamespaceImpl(
+                "http://www.example.org/stuff", "m");
         OMElement data = new OMElementImpl("data", dataName);
 
-        OMNamespaceImpl mime = new OMNamespaceImpl("http://www.w3.org/2003/06/xmlmime", "m");
+        OMNamespaceImpl mime = new OMNamespaceImpl(
+                "http://www.w3.org/2003/06/xmlmime", "m");
 
         OMElement text = new OMElementImpl("name", dataName);
         OMAttribute cType1 = new OMAttributeImpl("contentType", mime,
-                                                 "text/plain");
+                "text/plain");
         text.addAttribute(cType1);
         byte[] byteArray = new byte[]{13, 56, 65, 32, 12, 12, 7, -3, -2, -1,
                                       98};
@@ -101,8 +104,10 @@
 
     public void testComplete() throws Exception {
 
-        OMOutput mtomOutput = new OMOutput(new FileOutputStream(outMTOMFile), true);
-        OMOutput baseOutput = new OMOutput(new FileOutputStream(outBase64File), false);
+        OMOutput mtomOutput = new OMOutput(new FileOutputStream(outMTOMFile),
+                true);
+        OMOutput baseOutput = new OMOutput(new FileOutputStream(outBase64File),
+                false);
 
         envelope.serialize(baseOutput);
         baseOutput.flush();

Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/impl/llom/mtom/MTOMStAXSOAPModelBuilderTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/impl/llom/mtom/MTOMStAXSOAPModelBuilderTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/impl/llom/mtom/MTOMStAXSOAPModelBuilderTest.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/impl/llom/mtom/MTOMStAXSOAPModelBuilderTest.java Mon Jul 11 10:48:55 2005
@@ -54,11 +54,15 @@
     protected void setUp() throws Exception {
         super.setUp();
         inFileName = "mtom/MTOMBuilderTestIn.txt";
-        InputStream inStream = new FileInputStream(getTestResourceFile(inFileName));
+        InputStream inStream = new FileInputStream(
+                getTestResourceFile(inFileName));
         mimeHelper = new MIMEHelper(inStream, contentTypeString);
         XMLStreamReader reader = XMLInputFactory.newInstance()
-                .createXMLStreamReader(new BufferedReader(new InputStreamReader(mimeHelper
-                                                                                .getSOAPPartInputStream())));
+                .createXMLStreamReader(
+                        new BufferedReader(
+                                new InputStreamReader(
+                                        mimeHelper
+                .getSOAPPartInputStream())));
         builder = new MTOMStAXSOAPModelBuilder(reader, mimeHelper);
 
     }
@@ -66,14 +70,14 @@
     public void testCreateOMElement() throws Exception {
         OMElement root = (OMElement) builder.getDocumentElement();
         System.out.println(root.getLocalName() + " : "
-                           + root.getNamespace().getName());
+                + root.getNamespace().getName());
         OMElement body = (OMElement) root.getFirstChild();
         System.out.println(body.getLocalName() + " : "
-                           + body.getNamespace().getName());
+                + body.getNamespace().getName());
 
         OMElement data = (OMElement) body.getFirstChild();
         System.out.println(data.getLocalName() + " : "
-                           + data.getNamespace().getName());
+                + data.getNamespace().getName());
         Iterator childIt = data.getChildren();
         //while (childIt.hasNext()) {
         OMElement child = (OMElement) childIt.next();



Mime
View raw message