axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r732873 - /webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/SOAPPartTest.java
Date Thu, 08 Jan 2009 23:38:46 GMT
Author: veithen
Date: Thu Jan  8 15:38:46 2009
New Revision: 732873

URL: http://svn.apache.org/viewvc?rev=732873&view=rev
Log:
Replaced some fully qualified class names where an import for the class already exists (no
functional changes).

Modified:
    webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/SOAPPartTest.java

Modified: webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/SOAPPartTest.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/SOAPPartTest.java?rev=732873&r1=732872&r2=732873&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/SOAPPartTest.java
(original)
+++ webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/SOAPPartTest.java
Thu Jan  8 15:38:46 2009
@@ -115,12 +115,10 @@
 
 
     public void testAddSource2() throws Exception {
-        javax.xml.soap.SOAPMessage soapMessage =
-                javax.xml.soap.MessageFactory.newInstance().createMessage();
-        javax.xml.soap.SOAPEnvelope soapEnv =
-                soapMessage.getSOAPPart().getEnvelope();
-        javax.xml.soap.SOAPHeader header = soapEnv.getHeader();
-        javax.xml.soap.SOAPBody body = soapEnv.getBody();
+        SOAPMessage soapMessage = MessageFactory.newInstance().createMessage();
+        SOAPEnvelope soapEnv = soapMessage.getSOAPPart().getEnvelope();
+        SOAPHeader header = soapEnv.getHeader();
+        SOAPBody body = soapEnv.getBody();
 
         assertTrue(header.addChildElement("ebxmlms1", "ch2",
                                           "http://test.apache.org") instanceof SOAPHeaderElement);
@@ -132,8 +130,7 @@
         body.addChildElement("bodyEle1", "ele1", "http://ws.apache.org");
         soapMessage.saveChanges();
 
-        javax.xml.soap.SOAPMessage soapMessage2 =
-                javax.xml.soap.MessageFactory.newInstance().createMessage();
+        SOAPMessage soapMessage2 = MessageFactory.newInstance().createMessage();
         SOAPPart soapPart = soapMessage2.getSOAPPart();
         soapPart.setContent(soapMessage.getSOAPPart().getContent());
         soapMessage2.saveChanges();
@@ -141,12 +138,10 @@
     }
 
     public void testAddSource3() throws Exception {
-        javax.xml.soap.SOAPMessage soapMessage =
-                javax.xml.soap.MessageFactory.newInstance().createMessage();
-        javax.xml.soap.SOAPEnvelope soapEnv =
-                soapMessage.getSOAPPart().getEnvelope();
-        javax.xml.soap.SOAPHeader header = soapEnv.getHeader();
-        javax.xml.soap.SOAPBody body = soapEnv.getBody();
+        SOAPMessage soapMessage = MessageFactory.newInstance().createMessage();
+        SOAPEnvelope soapEnv = soapMessage.getSOAPPart().getEnvelope();
+        SOAPHeader header = soapEnv.getHeader();
+        SOAPBody body = soapEnv.getBody();
 
         assertTrue(header.addChildElement("ebxmlms1", "ch2",
                                           "http://test.apache.org") instanceof SOAPHeaderElement);
@@ -158,8 +153,7 @@
         body.addChildElement("bodyEle1", "ele1", "http://ws.apache.org");
         soapMessage.saveChanges();
 
-        javax.xml.soap.SOAPMessage soapMessage2 =
-                javax.xml.soap.MessageFactory.newInstance().createMessage();
+        SOAPMessage soapMessage2 = MessageFactory.newInstance().createMessage();
         SOAPPart soapPart = soapMessage2.getSOAPPart();
         soapPart.setContent(soapMessage.getSOAPPart().getContent());
         soapMessage2.saveChanges();



Mime
View raw message