You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by ve...@apache.org on 2009/07/30 21:06:02 UTC

svn commit: r799406 - in /webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom: om/ om/impl/mtom/ soap/

Author: veithen
Date: Thu Jul 30 19:06:02 2009
New Revision: 799406

URL: http://svn.apache.org/viewvc?rev=799406&view=rev
Log:
Reduced the noise created by the unit tests.

Modified:
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/om/NamespaceTest.java
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/om/OMSourcedElementTest.java
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/om/SourcedOMElementTest.java
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/om/impl/mtom/MTOMStAXSOAPModelBuilderTest.java
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPHeaderTestBase.java

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/om/NamespaceTest.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/om/NamespaceTest.java?rev=799406&r1=799405&r2=799406&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/om/NamespaceTest.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/om/NamespaceTest.java Thu Jul 30 19:06:02 2009
@@ -370,8 +370,8 @@
                             "</outerTag>";
 
             OMElement elem = AXIOMUtil.stringToOM(xmlString);
-            System.out.println("--- Calling toStringWithConsume() ---\n");
-            System.out.println(elem.toStringWithConsume());
+//            System.out.println("--- Calling toStringWithConsume() ---\n");
+//            System.out.println(elem.toStringWithConsume());
 
             xmlString =
                     "<outerTag xmlns=\"http://someNamespace\">" +
@@ -382,8 +382,8 @@
                             "</outerTag>";
 
             elem = AXIOMUtil.stringToOM(xmlString);
-            System.out.println("\n--- Calling toString() ---\n");
-            System.out.println(elem.toString());
+//            System.out.println("\n--- Calling toString() ---\n");
+//            System.out.println(elem.toString());
         }
         catch (Exception e) {
             e.printStackTrace();

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/om/OMSourcedElementTest.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/om/OMSourcedElementTest.java?rev=799406&r1=799405&r2=799406&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/om/OMSourcedElementTest.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/om/OMSourcedElementTest.java Thu Jul 30 19:06:02 2009
@@ -121,7 +121,7 @@
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
         soapBody.serialize(baos);
         String output = baos.toString(ENCODING);
-        System.out.println(output);
+//        System.out.println(output);
         assertTrue("The payload was not present in the output",
                    output.indexOf(payload1) > 0);
         assertTrue("OMSourcedElement is expanded.  This is unexpected", !child.isExpanded());
@@ -181,7 +181,7 @@
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
         soapHeader.serialize(baos);
         String output = baos.toString(ENCODING);
-        System.out.println(output);
+//        System.out.println(output);
         assertTrue("The payload was not present in the output",
                    output.indexOf(payload1) > 0);
         assertTrue("OMSourcedElement is expanded.  This is unexpected", !child.isExpanded());
@@ -224,7 +224,7 @@
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
         soapBody.serialize(baos);
         String output = baos.toString(ENCODING);
-        System.out.println(output);
+//        System.out.println(output);
         assertTrue("The payload was not present in the output",
                    output.indexOf(payload1) > 0);
         assertTrue("OMSourcedElement is expanded.  This is unexpected", !child.isExpanded());
@@ -326,7 +326,7 @@
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
         soapBody.serialize(baos);
         String output = baos.toString(ENCODING);
-        System.out.println(output);
+//        System.out.println(output);
         assertTrue("The payload was not present in the output",
                    output.indexOf(payload1) > 0);
         assertTrue("OMSourcedElement is expanded.  This is unexpected", !child.isExpanded());
@@ -340,7 +340,7 @@
         baos = new ByteArrayOutputStream();
         soapBody.serialize(baos);
         output = baos.toString(ENCODING);
-        System.out.println(output);
+//        System.out.println(output);
         assertTrue("The payload was not present in the output",
                    output.indexOf(payload2) > 0);
         assertTrue("OMSourcedElement is expanded.  This is unexpected", !child.isExpanded());
@@ -350,7 +350,7 @@
         baos = new ByteArrayOutputStream();
         soapBody.serialize(baos);
         output = baos.toString(ENCODING);
-        System.out.println(output);
+//        System.out.println(output);
         assertTrue("The payload was not present in the output",
                    output.indexOf(payload1) > 0);
         
@@ -360,7 +360,7 @@
         baos = new ByteArrayOutputStream();
         soapBody.serialize(baos);
         output = baos.toString(ENCODING);
-        System.out.println(output);
+//        System.out.println(output);
         assertTrue("The payload was not present in the output",
                    output.indexOf(payload2) > 0);
         

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/om/SourcedOMElementTest.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/om/SourcedOMElementTest.java?rev=799406&r1=799405&r2=799406&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/om/SourcedOMElementTest.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/om/SourcedOMElementTest.java Thu Jul 30 19:06:02 2009
@@ -55,7 +55,7 @@
         payload.getBuilder().setCache(false); // Or This line will cause NoSuchElementException
         StringWriter writer = new StringWriter();
         envelope.serializeAndConsume(writer);
-        System.out.println(writer);
+//        System.out.println(writer);
     }
     
     private static class DummySource implements OMDataSource {

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/om/impl/mtom/MTOMStAXSOAPModelBuilderTest.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/om/impl/mtom/MTOMStAXSOAPModelBuilderTest.java?rev=799406&r1=799405&r2=799406&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/om/impl/mtom/MTOMStAXSOAPModelBuilderTest.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/om/impl/mtom/MTOMStAXSOAPModelBuilderTest.java Thu Jul 30 19:06:02 2009
@@ -271,7 +271,6 @@
                                                SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
         OMElement root = builder.getDocumentElement();
         root.build();
-        System.out.println(root.toString());
     }
 
     public void testCreateAndXMLStreamReader() throws Exception {

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPHeaderTestBase.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPHeaderTestBase.java?rev=799406&r1=799405&r2=799406&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPHeaderTestBase.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPHeaderTestBase.java Thu Jul 30 19:06:02 2009
@@ -64,7 +64,6 @@
     }
 
     public void testSOAP11ExamineHeaderBlocks() {
-        System.out.println("Failing test...");
         soap11Header.addHeaderBlock("echoOk1", namespace).setRole(
                 "http://schemas.xmlsoap.org/soap/envelope/actor/ultimateReceiver");
         soap11Header.addHeaderBlock("echoOk2", namespace).setRole(ROLE_URI);