camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r1311782 - in /camel/trunk/components/camel-cxf/src: main/java/org/apache/camel/component/cxf/jaxrs/ test/java/org/apache/camel/component/cxf/jaxrs/ test/java/org/apache/camel/component/cxf/jaxrs/testbean/
Date Tue, 10 Apr 2012 15:14:04 GMT
Author: ningjiang
Date: Tue Apr 10 15:14:03 2012
New Revision: 1311782

URL: http://svn.apache.org/viewvc?rev=1311782&view=rev
Log:
CAMEL-5158 removed the System.out.println()

Modified:
    camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfRsProducer.java
    camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/CxfRsProducerTest.java
    camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/testbean/CustomerService.java

Modified: camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfRsProducer.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfRsProducer.java?rev=1311782&r1=1311781&r2=1311782&view=diff
==============================================================================
--- camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfRsProducer.java
(original)
+++ camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfRsProducer.java
Tue Apr 10 15:14:03 2012
@@ -303,7 +303,6 @@ public class CxfRsProducer extends Defau
         Map<String, String> headers = parseResponseHeaders(response, exchange);
         //Get the response detail string
         String copy = exchange.getContext().getTypeConverter().convertTo(String.class, response.getEntity());
-        System.out.println("The entity response is " + copy + "!");
         if (responseCode >= 300 && responseCode < 400) {
             String redirectLocation;
             if (response.getMetadata().getFirst("Location") != null) {

Modified: camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/CxfRsProducerTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/CxfRsProducerTest.java?rev=1311782&r1=1311781&r2=1311782&view=diff
==============================================================================
--- camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/CxfRsProducerTest.java
(original)
+++ camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/CxfRsProducerTest.java
Tue Apr 10 15:14:03 2012
@@ -184,7 +184,7 @@ public class CxfRsProducerTest extends C
         assertNotNull("Expect the exception here", exchange.getException());
         CxfOperationException exception = (CxfOperationException)exchange.getException();
         
-        System.out.println(exception.getResponseBody());
+        assertEquals("Get a wrong response body", "Cannot find the customer!", exception.getResponseBody());
         
     }
     

Modified: camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/testbean/CustomerService.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/testbean/CustomerService.java?rev=1311782&r1=1311781&r2=1311782&view=diff
==============================================================================
--- camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/testbean/CustomerService.java
(original)
+++ camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/testbean/CustomerService.java
Tue Apr 10 15:14:03 2012
@@ -81,7 +81,7 @@ public class CustomerService {
             customers.put(customer.getId(), customer);
             r = Response.ok().build();
         } else {
-            r = Response.status(406).entity("Cannot find the customer").build();
+            r = Response.status(406).entity("Cannot find the customer!").build();
         }
 
         return r;



Mime
View raw message