axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject svn commit: r239413 - /webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/impl/serializer/OMSerializerTest.java
Date Tue, 23 Aug 2005 14:20:54 GMT
Author: ajith
Date: Tue Aug 23 07:20:44 2005
New Revision: 239413

URL: http://svn.apache.org/viewcvs?rev=239413&view=rev
Log:
Modified the test for accuracy

Modified:
    webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/impl/serializer/OMSerializerTest.java

Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/impl/serializer/OMSerializerTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/impl/serializer/OMSerializerTest.java?rev=239413&r1=239412&r2=239413&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/impl/serializer/OMSerializerTest.java
(original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/impl/serializer/OMSerializerTest.java
Tue Aug 23 07:20:44 2005
@@ -47,9 +47,12 @@
                         new FileReader(
                                 getTestResourceFile("soap/soapmessage.xml")));
         tempFile = File.createTempFile("temp", "xml");
-        writer =
+//        writer =
+//                XMLOutputFactory.newInstance().
+//                        createXMLStreamWriter(new FileOutputStream(tempFile));
+         writer =
                 XMLOutputFactory.newInstance().
-                        createXMLStreamWriter(new FileOutputStream(tempFile));
+                        createXMLStreamWriter(System.out);
     }
 
     public void testRawSerializer() throws Exception {
@@ -73,8 +76,7 @@
                 OMAbstractFactory.getSOAP11Factory(),
                 reader);
         SOAPEnvelope env = (SOAPEnvelope) builder.getDocumentElement();
-        StreamingOMSerializer serializer = new StreamingOMSerializer();
-        serializer.serialize(env.getXMLStreamReader(), writer);
+        env.serialize(writer);
     }
 
     public void testElementPullStream2() throws Exception {



Mime
View raw message