axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From az...@apache.org
Subject svn commit: r498620 [3/3] - in /webservices/axis2/trunk/java/modules: saaj-api/ saaj-api/src/javax/xml/soap/ saaj/src/org/apache/axis2/saaj/ saaj/test/org/apache/axis2/saaj/
Date Mon, 22 Jan 2007 14:28:21 GMT
Modified: webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/SOAPHeaderTest.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/SOAPHeaderTest.java?view=diff&rev=498620&r1=498619&r2=498620
==============================================================================
--- webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/SOAPHeaderTest.java
(original)
+++ webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/SOAPHeaderTest.java
Mon Jan 22 06:28:19 2007
@@ -15,18 +15,24 @@
  */
 package org.apache.axis2.saaj;
 
-import junit.framework.TestCase;
+import java.util.ArrayList;
+import java.util.Iterator;
 
+import javax.xml.namespace.QName;
 import javax.xml.soap.MessageFactory;
 import javax.xml.soap.Name;
 import javax.xml.soap.SOAPBody;
+import javax.xml.soap.SOAPConstants;
+import javax.xml.soap.SOAPElement;
 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;
 import javax.xml.soap.SOAPMessage;
 import javax.xml.soap.SOAPPart;
-import java.util.Iterator;
+
+import junit.framework.TestCase;
 
 public class SOAPHeaderTest extends TestCase {
     private MessageFactory mf = null;
@@ -41,7 +47,7 @@
         super(name);
     }
 
-    public void testAddHeaderElements() throws Exception {
+    public void _testAddHeaderElements() throws Exception {
         javax.xml.soap.SOAPMessage soapMessage =
                 javax.xml.soap.MessageFactory.newInstance().createMessage();
         javax.xml.soap.SOAPEnvelope soapEnv =
@@ -202,4 +208,194 @@
             fail("Unexpected Exception: " + e);
         }
     }
-}
+    
+    public void testAddNotUnderstoodHeaderElement() throws Exception {
+        javax.xml.soap.SOAPMessage soapMessage =
+                javax.xml.soap.MessageFactory.newInstance(
+                		SOAPConstants.SOAP_1_2_PROTOCOL).createMessage();
+        
+        javax.xml.soap.SOAPEnvelope soapEnv =
+                soapMessage.getSOAPPart().getEnvelope();
+        javax.xml.soap.SOAPHeader header = soapEnv.getHeader();
+        
+	    SOAPElement soapElement = header.addNotUnderstoodHeaderElement(
+	    		new QName("http://foo.org", "foo", "f"));
+	    
+        assertNotNull(soapElement);
+	        Name name = soapElement.getElementName();
+	        System.out.println("URI = " + name.getURI());
+	        System.out.println("QualifiedName = " + name.getQualifiedName());
+	        System.out.println("Prefix = " + name.getPrefix());
+	        System.out.println("LocalName = " + name.getLocalName());
+	        String uri = name.getURI();
+	        String localName = name.getLocalName();
+	        System.out.println("Validate the URI which must be " 
+		    + SOAPConstants.URI_NS_SOAP_1_2_ENVELOPE);
+	        
+	        assertEquals(SOAPConstants.URI_NS_SOAP_1_2_ENVELOPE, uri);
+	        System.out.println(
+	        		"Validate the LocalName which must be NotUnderstood");
+	        assertEquals("NotUnderstood", localName);
+    }
+
+    
+    public void testAddUpgradeHeaderElement() throws Exception {
+    	javax.xml.soap.SOAPMessage soapMessage =
+    		javax.xml.soap.MessageFactory.newInstance(
+    				SOAPConstants.SOAP_1_2_PROTOCOL).createMessage();
+
+    	javax.xml.soap.SOAPEnvelope soapEnv =
+    		soapMessage.getSOAPPart().getEnvelope();
+    	javax.xml.soap.SOAPHeader header = soapEnv.getHeader();
+
+    	// create a list of supported URIs.
+    	ArrayList supported = new ArrayList();
+    	supported.add(SOAPConstants.URI_NS_SOAP_1_2_ENVELOPE);
+    	supported.add(SOAPConstants.URI_NS_SOAP_ENVELOPE);
+
+    	System.out.println("Creating Upgrade SOAPHeaderElement");
+    	SOAPElement soapElement = header.addUpgradeHeaderElement(supported.iterator());
+
+    	System.out.println("Validating SOAPHeaderElement object creation");
+    	assertNotNull(soapElement);
+    	System.out.println("SOAPHeaderElement was created");
+
+    	System.out.println("Validating Upgrade SOAPHeaderElement Name");
+    	System.out.println("Get the ElementName");
+    	Name name = soapElement.getElementName();
+    	System.out.println("URI = " + name.getURI());
+    	System.out.println("QualifiedName = " + name.getQualifiedName());
+    	System.out.println("Prefix = " + name.getPrefix());
+    	System.out.println("LocalName = " + name.getLocalName());
+    	String uri = name.getURI();
+    	String localName = name.getLocalName();
+    	System.out.println("Validate the URI which must be "
+    			+ SOAPConstants.URI_NS_SOAP_1_2_ENVELOPE);
+
+    	assertTrue(uri.equals(SOAPConstants.URI_NS_SOAP_1_2_ENVELOPE));
+
+    	System.out.println("Validate the LocalName which must be Upgrade");
+    	assertTrue(localName.equals("Upgrade"));
+    }
+
+    public void testExamineHeaderElements() throws Exception {
+    	javax.xml.soap.SOAPMessage soapMessage =
+    		javax.xml.soap.MessageFactory.newInstance(
+    				SOAPConstants.SOAP_1_2_PROTOCOL).createMessage();
+
+    	javax.xml.soap.SOAPEnvelope soapEnv =
+    		soapMessage.getSOAPPart().getEnvelope();
+    	javax.xml.soap.SOAPHeader header = soapEnv.getHeader();
+
+    	System.out.println("Creating SOAPHeaderElement 1");
+    	SOAPHeaderElement soapHeaderElement = header.addHeaderElement(envelope.createName("foo1",
"f1", "foo1-URI"));
+
+    	Iterator iterator = null;
+    	System.out.println("Set the role associated with SOAPHeaderElement");
+    	soapHeaderElement.setRole("role-URI");
+
+    	System.out.println("Examing SOAPHeaderElements with role of role1-URI");
+    	iterator = header.examineHeaderElements("role1-URI");
+
+    	int count=0;
+    	while (iterator.hasNext()) {
+    		count++;
+    		iterator.next();
+    	}
+
+    	assertEquals(0, count);
+    	System.out.println("SOAPHeaderElement count mismatch: expected 0, received " + count);
+
+    }
+    
+    /*
+     * examineHeaderElementsTest4
+     */
+    public void testExamineHeaderElements2() 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();
+    	SOAPHeaderElement soapHeaderElement = null;
+
+    	try{
+    		// Add some soap header elements
+    		System.out.println("Add SOAP HeaderElement Header1");
+    		SOAPElement se = header.addHeaderElement(
+    				envelope.createName("Header1", "prefix", "http://myuri"))
+    				.addTextNode("This is Header1");
+    		soapHeaderElement = (SOAPHeaderElement) se;
+    		soapHeaderElement.setMustUnderstand(true);
+
+    		System.out.println("Add SOAP HeaderElement Header2");
+    		se = header.addHeaderElement(
+    				envelope.createName("Header2", "prefix", "http://myuri"))
+    				.addTextNode("This is Header2");
+    		soapHeaderElement = (SOAPHeaderElement) se;
+    		soapHeaderElement.setMustUnderstand(false);
+
+    		System.out.println("Add SOAP HeaderElement Header3");
+    		se = header.addHeaderElement(
+    				envelope.createName("Header3", "prefix", "http://myuri"))
+    				.addTextNode("This is Header3");
+    		soapHeaderElement = (SOAPHeaderElement) se;
+    		soapHeaderElement.setMustUnderstand(true);
+
+    		System.out.println("Add SOAP HeaderElement Header4");
+    		se = header.addHeaderElement(
+    				envelope.createName("Header4", "prefix", "http://myuri"))
+    				.addTextNode("This is Header4");
+    		soapHeaderElement = (SOAPHeaderElement) se;
+    		soapHeaderElement.setMustUnderstand(false);
+
+    		System.out.println("Examing all SOAPHeaderElements");
+    		Iterator iterator = header.examineAllHeaderElements();
+
+    		System.out.println("Validating Iterator count .... should be 4");
+    		int cnt=0;
+    		while (iterator.hasNext()) {
+    			cnt++;
+    			soapHeaderElement = (SOAPHeaderElement)iterator.next();
+    		}
+    		if (cnt != 4) {
+    			fail("SOAPHeaderElement count mismatch: expected 4, received " + cnt);
+    		}
+
+    		System.out.println("Examing SOAPHeaderElements passing actor next uri");
+    		iterator = header.examineHeaderElements(SOAPConstants.URI_SOAP_ACTOR_NEXT);
+
+    		System.out.println("Validating Iterator count .... should now be 0");
+    		cnt=0;
+    		while (iterator.hasNext()) {
+    			cnt++;
+    			soapHeaderElement = (SOAPHeaderElement)iterator.next();
+    		}
+    		if (cnt != 0) {
+    			fail("SOAPHeaderElement count mismatch: expected 0, received " + cnt);
+    		}
+
+    	} catch (Exception e) {
+    		fail("Unexpected Exception: " + e);
+    	}
+    }
+    
+    public void testQNamesOnHeader(){
+    	SOAPHeaderElement transaction = null;
+    	try {
+    		System.out.println("SOAP1.1 and SOAP1.2 requires all HeaderElements to be"
+    				+ " namespace qualified");
+    		System.out.println("Try adding HeaderElement with unqualified QName "
+    				+ "not belonging to any namespace (expect SOAPException)");
+    		System.out.println("No URI and no PREFIX in QName");
+    		transaction = 
+    			hdr.addHeaderElement(envelope.createName("Transaction"));
+    		System.out.println("Did not throw expected SOAPException");
+    	} catch (SOAPException e) {
+    		System.out.println("Did throw expected SOAPException");
+    	} catch (Exception e) {
+    		System.out.println("Unexpected Exception: " + e.getMessage());
+    	}
+    }
+}
\ No newline at end of file

Modified: webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/SOAPMessageTest.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/SOAPMessageTest.java?view=diff&rev=498620&r1=498619&r2=498620
==============================================================================
--- webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/SOAPMessageTest.java
(original)
+++ webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/SOAPMessageTest.java
Mon Jan 22 06:28:19 2007
@@ -15,10 +15,25 @@
  */
 package org.apache.axis2.saaj;
 
-import junit.framework.TestCase;
+import java.net.URL;
+import java.util.Iterator;
 
+import javax.activation.DataHandler;
+import javax.xml.namespace.QName;
+import javax.xml.soap.AttachmentPart;
 import javax.xml.soap.MessageFactory;
+import javax.xml.soap.MimeHeaders;
+import javax.xml.soap.SOAPBody;
+import javax.xml.soap.SOAPBodyElement;
+import javax.xml.soap.SOAPConstants;
+import javax.xml.soap.SOAPElement;
+import javax.xml.soap.SOAPEnvelope;
+import javax.xml.soap.SOAPFault;
+import javax.xml.soap.SOAPHeader;
 import javax.xml.soap.SOAPMessage;
+import javax.xml.soap.SOAPPart;
+
+import junit.framework.TestCase;
 
 /**
  * 
@@ -46,4 +61,212 @@
             fail("Unexpected Exception : " + e);
         }
     }
+    
+    public void _testGetAttachmentByHref() {
+    	String NS_PREFIX="mypre";
+    	String NS_URI="http://myuri.org/";
+
+    	try {
+    		System.out.println("Create SOAP message from message factory");
+
+    		// Message creation takes care of creating the SOAPPart - a
+    		// required part of the message as per the SOAP 1.1 spec.
+    		System.out.println("Get SOAP Part");
+    		SOAPPart sp = msg.getSOAPPart();
+
+    		// Retrieve the envelope from the soap part to start building
+    		// the soap message.
+    		System.out.println("Get SOAP Envelope");
+    		SOAPEnvelope envelope = sp.getEnvelope();
+
+    		// Create a soap header from the envelope.
+    		System.out.println("Create SOAP Header");
+    		SOAPHeader hdr = envelope.getHeader();
+
+    		// Create a soap body from the envelope.
+    		System.out.println("Create SOAP Body");
+    		SOAPBody bdy = envelope.getBody();
+
+    		// Add a soap body element
+    		System.out.println("Add SOAP BodyElement Body1");
+    		SOAPBodyElement sbe1 = bdy.addBodyElement(
+    				envelope.createName("Body1", NS_PREFIX, NS_URI));
+
+    		// Add a child element
+    		System.out.println("Add ChildElement TheGifAttachment");
+    		sbe1.addChildElement(envelope.createName(
+    				"TheGifAttachment", NS_PREFIX, NS_URI));
+    		sbe1.setAttribute("href", "cid:THEGIF");
+
+    		// Add another soap body element
+    		System.out.println("Add SOAP BodyElement Body2");
+    		SOAPBodyElement sbe2 = bdy.addBodyElement(
+    				envelope.createName("Body2", NS_PREFIX, NS_URI));
+
+    		// Add a child element
+    		System.out.println("Add ChildElement TheXmlAttachment");
+    		sbe2.addChildElement(envelope.createName(
+    				"TheXmlAttachment", NS_PREFIX, NS_URI));
+    		sbe2.setAttribute("href", "cid:THEXML");
+
+    		System.out.println("Add various mime type attachments to SOAP message");
+    		URL url1 = new URL("http://my.uri.org");
+    		URL url2 = new URL("http://my.uri.org");
+    		URL url3 = new URL("http://my.uri.org");
+    		URL url4 = new URL("http://my.uri.org");
+    		URL url5 = new URL("http://my.uri.org");
+
+    		System.out.println("Create SOAP Attachment (XML document)");
+    		System.out.println("URL1=" + url1);
+    		AttachmentPart ap1 = msg.createAttachmentPart(new DataHandler(url1));
+
+    		System.out.println("Create SOAP Attachment (GIF image)");
+    		System.out.println("URL2=" + url2);
+    		AttachmentPart ap2 = msg.createAttachmentPart(new DataHandler(url2));
+
+    		System.out.println("Create SOAP Attachment (Plain text)");
+    		System.out.println("URL3=" + url3);
+    		AttachmentPart ap3 = msg.createAttachmentPart(new DataHandler(url3));
+
+    		System.out.println("Create SOAP Attachment (HTML document)");
+    		System.out.println("URL4=" + url4);
+    		AttachmentPart ap4 = msg.createAttachmentPart(new DataHandler(url4));
+
+    		System.out.println("Create SOAP Attachment (JPEG image)");
+    		System.out.println("URL5=" + url5);
+    		AttachmentPart ap5 = msg.createAttachmentPart(new DataHandler(url5));
+
+    		ap1.setContentType("text/xml");
+    		ap1.setContentId("<THEXML>");
+    		ap2.setContentType("image/gif");
+    		ap2.setContentId("<THEGIF>");
+    		ap3.setContentType("text/plain");
+    		ap3.setContentId("<THEPLAIN>");
+    		ap4.setContentType("text/html");
+    		ap4.setContentId("<THEHTML>");
+    		ap5.setContentType("image/jpeg");
+    		ap5.setContentId("<THEJPEG>");
+
+    		// Add the attachments to the message.
+    		System.out.println(
+    		"Add SOAP Attachment (XML document) to SOAP message");
+    		msg.addAttachmentPart(ap1);
+    		System.out.println(
+    				"Add SOAP Attachment (GIF image) to SOAP message");
+    		msg.addAttachmentPart(ap2);
+    		System.out.println(
+    				"Add SOAP Attachment (Plain text) to SOAP message");
+    		msg.addAttachmentPart(ap3);
+    		System.out.println(
+    				"Add SOAP Attachment (HTML document) to SOAP message");
+    		msg.addAttachmentPart(ap4);
+    		System.out.println(
+    				"Add SOAP Attachment (JPEG image) to SOAP message");
+    		msg.addAttachmentPart(ap5);
+    		msg.saveChanges();
+    		System.out.println("Done creating SOAP message");
+
+    		System.out.println("Retrieve attachment with href=cid:THEGIF");
+    		AttachmentPart myap = msg.getAttachment(sbe1);
+    		if(myap == null) {
+    			System.out.println("Returned null (unexpected)");
+    		} else if(!myap.getContentType().equals("image/gif")) {
+    			System.out.println("Wrong attachment was returned: Got Content-Type of "
+    					+myap.getContentType()+", Expected Content-Type of image/gif");
+    		} else
+    			System.out.println("Correct attachment was returned");
+
+    		System.out.println("Retrieve attachment with href=cid:THEXML");
+    		myap = msg.getAttachment(sbe2);
+    		if(myap == null) {
+    			System.out.println("Returned null (unexpected)");
+    		} else if(!myap.getContentType().equals("text/xml")) {
+    			System.out.println("Wrong attachment was returned: Got Content-Type of "
+    					+myap.getContentType()+", Expected Content-Type of text/xml");
+    		} else
+    			System.out.println("Correct attachment was returned");
+
+    		System.out.println("Retrieve attachment with href=cid:boo-hoo (expect null)");
+    		QName myqname = new QName("boo-hoo");
+    		SOAPElement myse = SOAPFactoryImpl.newInstance(SOAPConstants.SOAP_1_2_PROTOCOL).createElement(myqname);
+    		myse.addTextNode("<theBooHooAttachment href=\"cid:boo-hoo\"/>");
+    		myap = msg.getAttachment(myse);
+    		if(myap == null)
+    			System.out.println("Returned null (expected)");
+    		else {
+    			System.out.println("Returned non null (unexpected)");
+    		}
+
+    	} catch (Exception e) {
+    		fail("Unexpected Exception : " + e);
+    	}
+    }
+    
+    
+    
+    //TODO : sumedha complete
+    public void testRemoveAttachement(){
+    	Iterator iterator = null;
+    	try 
+    	{
+    		MessageFactory fac = MessageFactory.newInstance(SOAPConstants.SOAP_1_2_PROTOCOL);
+    		//MessageFactory fac = MessageFactory.newInstance();
+    		SOAPMessage msg = fac.createMessage();
+    		SOAPPart soapPart = msg.getSOAPPart();
+    		SOAPEnvelope envelope = soapPart.getEnvelope();
+    		SOAPBody body = envelope.getBody();
+    		SOAPFault sf = body.addFault();
+
+    		System.out.println("get all attachments");
+    		iterator = msg.getAttachments();
+
+    		int cnt = 0;
+    		while(iterator.hasNext()){
+    			cnt++;
+    			iterator.next();
+    		}
+
+    		System.out.println("number of attachments: " + cnt);
+
+    		if (cnt != 3) {
+    			System.out.println("only 3 attachments was added, count not correct");
+    		}else{
+    			System.out.println("3 attachments exist as expected");
+    		}
+
+    		System.out.println("remove just the text/xml attachments which are 2");
+    		MimeHeaders mhs = new MimeHeaders();
+    		mhs.addHeader("Content-Type", "text/xml");
+    		msg.removeAttachments(mhs);
+
+    		System.out.println("get all attachments");
+    		iterator = msg.getAttachments();
+
+    		cnt = 0;
+    		iterator = msg.getAttachments();
+
+    		while(iterator.hasNext()){
+    			cnt++;
+    			iterator.next();
+    		}
+    		System.out.println("number of attachments: " + cnt);
+
+    		if (cnt > 1) {
+    			System.out.println("the 2 text/xml attachments were not removed (unexpected)");
+    		} else if(cnt == 1) {
+    			AttachmentPart ap = (AttachmentPart) iterator.next();
+    			String ctype = ap.getContentType();
+    			System.out.println("Content-Type of remaining attachment is: "+ctype);
+    			if(ctype.equals("text/xml")) {
+    				System.out.println("one of the text/xml attachments was not removed");
+    			}
+    		} else {
+    			System.out.println("all attachments were removed (unexpected)");
+    		}
+
+    	} catch(Exception e) {
+    		System.out.println("Exception: " + e);
+    	}
+    }
 }
+

Modified: webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/SOAPNamespaceTest.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/SOAPNamespaceTest.java?view=diff&rev=498620&r1=498619&r2=498620
==============================================================================
--- webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/SOAPNamespaceTest.java
(original)
+++ webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/SOAPNamespaceTest.java
Mon Jan 22 06:28:19 2007
@@ -16,11 +16,11 @@
 
 package org.apache.axis2.saaj;
 
-import javax.xml.soap.MessageFactory;
-import javax.xml.soap.SOAPMessage;
-
 import java.io.ByteArrayInputStream;
 import java.io.ByteArrayOutputStream;
+
+import javax.xml.soap.MessageFactory;
+import javax.xml.soap.SOAPMessage;
 
 import junit.framework.TestCase;
 

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?view=diff&rev=498620&r1=498619&r2=498620
==============================================================================
--- 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
Mon Jan 22 06:28:19 2007
@@ -15,9 +15,10 @@
  */
 package org.apache.axis2.saaj;
 
-import junit.framework.TestCase;
-import org.w3c.dom.Document;
-import org.w3c.dom.Node;
+import java.io.ByteArrayInputStream;
+import java.io.File;
+import java.io.InputStream;
+import java.util.Iterator;
 
 import javax.activation.DataHandler;
 import javax.xml.parsers.DocumentBuilder;
@@ -33,10 +34,11 @@
 import javax.xml.transform.Source;
 import javax.xml.transform.dom.DOMSource;
 import javax.xml.transform.stream.StreamSource;
-import java.io.ByteArrayInputStream;
-import java.io.File;
-import java.io.InputStream;
-import java.util.Iterator;
+
+import junit.framework.TestCase;
+
+import org.w3c.dom.Document;
+import org.w3c.dom.Node;
 
 /**
  * 
@@ -94,8 +96,8 @@
             assertEquals("soapenv", header.getPrefix());
 
             Node firstChild = header.getFirstChild();
-//            assertEquals("Hello", firstChild.getLocalName());
-//            assertEquals("shw", firstChild.getPrefix());
+            //assertEquals("Hello", firstChild.getLocalName());
+            //assertEquals("shw", firstChild.getPrefix());
 
             SOAPBody body = envelope.getBody();
             assertEquals("Body", body.getLocalName());

Modified: webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/TextTest.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/TextTest.java?view=diff&rev=498620&r1=498619&r2=498620
==============================================================================
--- webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/TextTest.java (original)
+++ webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/TextTest.java Mon
Jan 22 06:28:19 2007
@@ -16,9 +16,8 @@
 
 package org.apache.axis2.saaj;
 
-import junit.framework.TestCase;
-import org.w3c.dom.Node;
-import org.w3c.dom.NodeList;
+import java.io.ByteArrayInputStream;
+import java.io.IOException;
 
 import javax.xml.soap.MessageFactory;
 import javax.xml.soap.MimeHeaders;
@@ -30,8 +29,11 @@
 import javax.xml.soap.SOAPFactory;
 import javax.xml.soap.SOAPMessage;
 import javax.xml.soap.Text;
-import java.io.ByteArrayInputStream;
-import java.io.IOException;
+
+import junit.framework.TestCase;
+
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
 
 public class TextTest extends TestCase {
 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message