Author: chinthaka
Date: Mon Aug 21 00:06:58 2006
New Revision: 433185

URL: http://svn.apache.org/viewvc?rev=433185&view=rev
Log:
This test was just printing the output to the console. Removed that by just 
serializing. Rich or some one wanna actually test something indide this test, 
later?

Modified:
    
webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/om/impl/serializer/OMFaultSerializerTest.java

Modified: 
webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/om/impl/serializer/OMFaultSerializerTest.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/om/impl/serializer/OMFaultSerializerTest.java?rev=433185&r1=433184&r2=433185&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/om/impl/serializer/OMFaultSerializerTest.java
 (original)
+++ 
webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/om/impl/serializer/OMFaultSerializerTest.java
 Mon Aug 21 00:06:58 2006
@@ -17,21 +17,11 @@
 package org.apache.axiom.om.impl.serializer;
 
 import org.apache.axiom.om.AbstractTestCase;
-import org.apache.axiom.om.OMAbstractFactory;
 import org.apache.axiom.om.OMElement;
-import org.apache.axiom.om.OMXMLParserWrapper;
-import org.apache.axiom.om.impl.llom.factory.OMXMLBuilderFactory;
-import org.apache.axiom.om.impl.serialize.StreamingOMSerializer;
-import org.apache.axiom.soap.SOAPBody;
-import org.apache.axiom.soap.SOAPEnvelope;
 import org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder;
 
 import javax.xml.stream.XMLInputFactory;
-import javax.xml.stream.XMLOutputFactory;
-import javax.xml.stream.XMLStreamException;
 import javax.xml.stream.XMLStreamReader;
-import javax.xml.stream.XMLStreamWriter;
-import java.io.File;
 import java.io.FileReader;
 
 public class OMFaultSerializerTest extends AbstractTestCase {
@@ -53,18 +43,20 @@
                     createXMLStreamReader(
                             new FileReader(
                                     
getTestResourceFile("soap/soap11/soapfault2.xml")));
-       
+
     }
 
     /**
      * Test SOAPFault that does not disable the default namespace
      * (i.e. does not use xmlns="")
+     *
      * @throws Exception
      */
     public void test1() throws Exception {
        StAXSOAPModelBuilder builder = new StAXSOAPModelBuilder(reader1, null);
         OMElement ome = builder.getDocumentElement();
-        System.out.println(ome);
+        ome.toString();
+//        System.out.println(ome);
     }
     /**
      * Test SOAPFault that does disable the default namespace
@@ -74,7 +66,8 @@
     public void test2() throws Exception {
        StAXSOAPModelBuilder builder = new StAXSOAPModelBuilder(reader2, null);
         OMElement ome = builder.getDocumentElement();
-        System.out.println(ome);
+        ome.toString();
+//        System.out.println(ome);
     }
 }
     



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to