camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hadr...@apache.org
Subject svn commit: r1164783 - /camel/trunk/components/camel-restlet/src/test/java/org/apache/camel/component/restlet/RestletExceptionResponseTest.java
Date Sat, 03 Sep 2011 01:37:41 GMT
Author: hadrian
Date: Sat Sep  3 01:37:40 2011
New Revision: 1164783

URL: http://svn.apache.org/viewvc?rev=1164783&view=rev
Log:
Checkstyle fixes

Modified:
    camel/trunk/components/camel-restlet/src/test/java/org/apache/camel/component/restlet/RestletExceptionResponseTest.java

Modified: camel/trunk/components/camel-restlet/src/test/java/org/apache/camel/component/restlet/RestletExceptionResponseTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-restlet/src/test/java/org/apache/camel/component/restlet/RestletExceptionResponseTest.java?rev=1164783&r1=1164782&r2=1164783&view=diff
==============================================================================
--- camel/trunk/components/camel-restlet/src/test/java/org/apache/camel/component/restlet/RestletExceptionResponseTest.java
(original)
+++ camel/trunk/components/camel-restlet/src/test/java/org/apache/camel/component/restlet/RestletExceptionResponseTest.java
Sat Sep  3 01:37:40 2011
@@ -68,13 +68,11 @@ public class RestletExceptionResponseTes
     }
 
     protected void sendRequest(String endpointUri) throws Exception {
-        Exchange exchange = template.request(
-            endpointUri,
-                new Processor() {
-                    @Override
-                    public void process(Exchange exchange) throws Exception {
-                        exchange.getIn().setBody("<order foo='1'/>");
-                    }
+        Exchange exchange = template.request(endpointUri, new Processor() {
+                @Override
+                public void process(Exchange exchange) throws Exception {
+                    exchange.getIn().setBody("<order foo='1'/>");
+                }
             });
         RestletOperationException exception = (RestletOperationException) exchange.getException();
         String body = exception.getResponseBody();
@@ -83,4 +81,4 @@ public class RestletExceptionResponseTes
         assertTrue(body.contains("Damn something went wrong"));
     }
 
-}
\ No newline at end of file
+}



Mime
View raw message