cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject svn commit: r596565 - in /incubator/cxf/trunk: systests/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerBookTest.java testutils/src/main/java/org/apache/hello_world_soap_http/GreeterImpl.java
Date Tue, 20 Nov 2007 08:19:00 GMT
Author: mmao
Date: Tue Nov 20 00:18:59 2007
New Revision: 596565

URL: http://svn.apache.org/viewvc?rev=596565&view=rev
Log:
* Cleanup the output during the tests


Modified:
    incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerBookTest.java
    incubator/cxf/trunk/testutils/src/main/java/org/apache/hello_world_soap_http/GreeterImpl.java

Modified: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerBookTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerBookTest.java?rev=596565&r1=596564&r2=596565&view=diff
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerBookTest.java
(original)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerBookTest.java
Tue Nov 20 00:18:59 2007
@@ -53,7 +53,6 @@
         InputStream expected = getClass()
             .getResourceAsStream("resources/expected_get_book123.txt");
 
-        //System.out.println("---" + getStringFromInputStream(in));
         assertEquals(getStringFromInputStream(expected), getStringFromInputStream(in)); 
     }
     
@@ -68,9 +67,6 @@
         try {
             int result = httpclient.executeMethod(get);
             assertEquals(500, result);
-            //System.out.println("Response status code: " + result);
-            //System.out.println("Response body: ");
-            //System.out.println(get.getResponseBodyAsString());
             
             InputStream expected = getClass().getResourceAsStream("resources/expected_get_book_notfound.txt");
             
@@ -96,9 +92,6 @@
         try {
             int result = httpclient.executeMethod(post);
             assertEquals(200, result);
-            //System.out.println("Response status code: " + result);
-            //System.out.println("Response body: ");
-            //System.out.println(post.getResponseBodyAsString());
             
             InputStream expected = getClass().getResourceAsStream("resources/expected_add_book.txt");
             
@@ -123,9 +116,6 @@
         try {
             int result = httpclient.executeMethod(put);
             assertEquals(200, result);
-            System.out.println("Response status code: " + result);
-            System.out.println("Response body: ");
-            System.out.println(put.getResponseBodyAsString());
         } finally {
             // Release current connection to the connection pool once you are
             // done
@@ -140,7 +130,6 @@
 
         InputStream expected = getClass().getResourceAsStream("resources/expected_update_book.txt");
 
-        // System.out.println("---" + getStringFromInputStream(in));
         assertEquals(getStringFromInputStream(expected), getStringFromInputStream(in));
 
         // Roll back changes:
@@ -154,9 +143,6 @@
         try {
             int result = httpclient1.executeMethod(put);
             assertEquals(200, result);
-            System.out.println("Response status code: " + result);
-            System.out.println("Response body: ");
-            System.out.println(put.getResponseBodyAsString());
         } finally {
             // Release current connection to the connection pool once you are
             // done
@@ -179,10 +165,6 @@
         try {
             int result = httpclient.executeMethod(post);
             assertEquals(304, result);
-            System.out.println("Response status code: " + result);
-            System.out.println("Response body: ");
-            System.out.println(post.getResponseBodyAsString());
-           
         } finally {
             // Release current connection to the connection pool once you are done
             post.releaseConnection();
@@ -211,12 +193,10 @@
         URL url = new URL(endpointAddress);
         InputStream in = url.openStream();
         assertNotNull(in);           
-        //System.out.println("---" + getStringFromInputStream(in));
 
         InputStream expected = getClass()
             .getResourceAsStream("resources/expected_get_cdjson.txt");
 
-        //System.out.println("---" + getStringFromInputStream(in));
         assertEquals(getStringFromInputStream(expected), getStringFromInputStream(in)); 
     }
     
@@ -225,7 +205,6 @@
         IOUtils.copy(in, bos);
         in.close();
         bos.close();
-        //System.out.println(bos.getOut().toString());        
         return bos.getOut().toString();        
     }
 

Modified: incubator/cxf/trunk/testutils/src/main/java/org/apache/hello_world_soap_http/GreeterImpl.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/testutils/src/main/java/org/apache/hello_world_soap_http/GreeterImpl.java?rev=596565&r1=596564&r2=596565&view=diff
==============================================================================
--- incubator/cxf/trunk/testutils/src/main/java/org/apache/hello_world_soap_http/GreeterImpl.java
(original)
+++ incubator/cxf/trunk/testutils/src/main/java/org/apache/hello_world_soap_http/GreeterImpl.java
Tue Nov 20 00:18:59 2007
@@ -122,7 +122,7 @@
 
     public void greetMeOneWay(String requestType) {
         invocationCount++;
-        System.out.println("*********  greetMeOneWay: " + requestType);
+        //System.out.println("*********  greetMeOneWay: " + requestType);
     }
 
     public String greetMeSometime(String me) {



Mime
View raw message