axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject svn commit: r367882 - /webservices/axis/trunk/java/test/saaj/TestDOM.java
Date Wed, 11 Jan 2006 02:24:40 GMT
Author: ias
Date: Tue Jan 10 18:24:35 2006
New Revision: 367882

URL: http://svn.apache.org/viewcvs?rev=367882&view=rev
Log:
Add a test case for AXIS-2365 - SOAPDocumentImpl calls MessageElement constructor with wrong
arguments

Modified:
    webservices/axis/trunk/java/test/saaj/TestDOM.java

Modified: webservices/axis/trunk/java/test/saaj/TestDOM.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/test/saaj/TestDOM.java?rev=367882&r1=367881&r2=367882&view=diff
==============================================================================
--- webservices/axis/trunk/java/test/saaj/TestDOM.java (original)
+++ webservices/axis/trunk/java/test/saaj/TestDOM.java Tue Jan 10 18:24:35 2006
@@ -11,6 +11,7 @@
 import javax.xml.soap.MimeHeaders;
 import javax.xml.soap.Name;
 import javax.xml.soap.SOAPEnvelope;
+import javax.xml.soap.SOAPException;
 import javax.xml.soap.SOAPFactory;
 import javax.xml.soap.SOAPHeader;
 import javax.xml.soap.SOAPHeaderElement;
@@ -204,4 +205,13 @@
         return new String(baos.toByteArray());
     }
 
+    public void testCreateElementFromDocument() throws SOAPException {
+        MessageFactory factory = new org.apache.axis.soap.MessageFactoryImpl();
+        SOAPMessage msg = factory.createMessage();
+        org.apache.axis.SOAPPart part = (org.apache.axis.SOAPPart) msg.getSOAPPart();
+        Document doc = part.getSOAPDocument();
+        String elementName = "test";
+        Element element = doc.createElement(elementName);
+        assertEquals(elementName, element.getNodeName());
+    }
 }



Mime
View raw message