axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r349883 - in /webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om: OMBlankElementTest.java OMDocumentTest.java SpacesTest.java infoset/XMLConformanceUnit.java
Date Wed, 30 Nov 2005 05:27:28 GMT
Author: dims
Date: Tue Nov 29 21:27:20 2005
New Revision: 349883

URL: http://svn.apache.org/viewcvs?rev=349883&view=rev
Log:
missed a few spots (clean imports, simpler code)


Modified:
    webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/OMBlankElementTest.java
    webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/OMDocumentTest.java
    webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/SpacesTest.java
    webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/infoset/XMLConformanceUnit.java

Modified: webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/OMBlankElementTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/OMBlankElementTest.java?rev=349883&r1=349882&r2=349883&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/OMBlankElementTest.java
(original)
+++ webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/OMBlankElementTest.java
Tue Nov 29 21:27:20 2005
@@ -17,9 +17,7 @@
 package org.apache.axis2.om;
 
 import junit.framework.TestCase;
-import org.apache.axis2.om.impl.OMOutputImpl;
 
-import javax.xml.stream.XMLOutputFactory;
 import javax.xml.stream.XMLStreamException;
 import java.io.StringWriter;
 

Modified: webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/OMDocumentTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/OMDocumentTest.java?rev=349883&r1=349882&r2=349883&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/OMDocumentTest.java
(original)
+++ webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/OMDocumentTest.java
Tue Nov 29 21:27:20 2005
@@ -17,7 +17,6 @@
 package org.apache.axis2.om;
 
 import junit.framework.TestCase;
-import org.apache.axis2.om.impl.OMOutputImpl;
 import org.apache.axis2.om.impl.llom.builder.StAXOMBuilder;
 
 import javax.xml.stream.XMLInputFactory;

Modified: webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/SpacesTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/SpacesTest.java?rev=349883&r1=349882&r2=349883&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/SpacesTest.java (original)
+++ webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/SpacesTest.java Tue
Nov 29 21:27:20 2005
@@ -16,7 +16,6 @@
 
 package org.apache.axis2.om;
 
-import org.apache.axis2.om.impl.OMOutputImpl;
 import org.apache.axis2.om.impl.llom.builder.StAXOMBuilder;
 import org.apache.axis2.om.impl.llom.factory.OMXMLBuilderFactory;
 import org.custommonkey.xmlunit.Diff;
@@ -29,9 +28,7 @@
 import javax.xml.parsers.DocumentBuilderFactory;
 import javax.xml.parsers.ParserConfigurationException;
 import javax.xml.stream.XMLInputFactory;
-import javax.xml.stream.XMLOutputFactory;
 import javax.xml.stream.XMLStreamException;
-import javax.xml.stream.XMLStreamWriter;
 import java.io.ByteArrayInputStream;
 import java.io.ByteArrayOutputStream;
 import java.io.FileInputStream;
@@ -63,16 +60,8 @@
             staxOMBuilder.setDoDebug(true);
             rootElement = staxOMBuilder.getDocumentElement();
 
-            XMLStreamWriter writer;
             ByteArrayOutputStream baos = new ByteArrayOutputStream();
-            writer = XMLOutputFactory.newInstance().
-                    createXMLStreamWriter(baos);
-
-            ((OMDocument) rootElement.getParent()).serialize(new OMOutputImpl(writer));
-
-            writer.flush();
-            writer.close();
-
+            ((OMDocument) rootElement.getParent()).serialize(baos);
 
             InputSource resultXML = new InputSource(new InputStreamReader(
                     new ByteArrayInputStream(baos.toByteArray())));

Modified: webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/infoset/XMLConformanceUnit.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/infoset/XMLConformanceUnit.java?rev=349883&r1=349882&r2=349883&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/infoset/XMLConformanceUnit.java
(original)
+++ webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/infoset/XMLConformanceUnit.java
Tue Nov 29 21:27:20 2005
@@ -19,7 +19,6 @@
 import org.apache.axis2.om.OMAbstractFactory;
 import org.apache.axis2.om.OMDocument;
 import org.apache.axis2.om.OMElement;
-import org.apache.axis2.om.impl.OMOutputImpl;
 import org.apache.axis2.om.impl.llom.builder.StAXOMBuilder;
 import org.apache.axis2.om.impl.llom.factory.OMXMLBuilderFactory;
 import org.custommonkey.xmlunit.Diff;
@@ -33,8 +32,6 @@
 import javax.xml.parsers.DocumentBuilderFactory;
 import javax.xml.parsers.ParserConfigurationException;
 import javax.xml.stream.XMLInputFactory;
-import javax.xml.stream.XMLOutputFactory;
-import javax.xml.stream.XMLStreamWriter;
 import java.io.ByteArrayInputStream;
 import java.io.ByteArrayOutputStream;
 import java.io.File;



Mime
View raw message