camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r936604 - in /camel/trunk: camel-core/src/test/java/org/apache/camel/component/file/ components/camel-jetty/src/test/java/org/apache/camel/component/jetty/ components/camel-restlet/src/main/java/org/apache/camel/component/restlet/ component...
Date Thu, 22 Apr 2010 03:40:31 GMT
Author: ningjiang
Date: Thu Apr 22 03:40:31 2010
New Revision: 936604

URL: http://svn.apache.org/viewvc?rev=936604&view=rev
Log:
Fixed the CS errors

Modified:
    camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileBeginFailureOneTimeTest.java
    camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettySuspendWhileInProgressTest.java
    camel/trunk/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/DefaultRestletBinding.java
    camel/trunk/components/camel-restlet/src/test/java/org/apache/camel/component/restlet/RestletRouteBuilderTest.java

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileBeginFailureOneTimeTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileBeginFailureOneTimeTest.java?rev=936604&r1=936603&r2=936604&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileBeginFailureOneTimeTest.java
(original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileBeginFailureOneTimeTest.java
Thu Apr 22 03:40:31 2010
@@ -74,7 +74,8 @@ public class FileBeginFailureOneTimeTest
         public void prepareOnStartup(GenericFileOperations<File> fileGenericFileOperations,
GenericFileEndpoint<File> fileGenericFileEndpoint) throws Exception {
         }
 
-        public boolean begin(GenericFileOperations<File> fileGenericFileOperations,
GenericFileEndpoint<File> fileGenericFileEndpoint, Exchange exchange, GenericFile<File>
fileGenericFile) throws Exception {
+        public boolean begin(GenericFileOperations<File> fileGenericFileOperations,
GenericFileEndpoint<File> fileGenericFileEndpoint,
+                             Exchange exchange, GenericFile<File> fileGenericFile)
throws Exception {
             invoked++;
             if (invoked <= 1) {
                 throw new IllegalArgumentException("Damn I cannot do this");
@@ -82,10 +83,12 @@ public class FileBeginFailureOneTimeTest
             return true;
         }
 
-        public void commit(GenericFileOperations<File> fileGenericFileOperations, GenericFileEndpoint<File>
fileGenericFileEndpoint, Exchange exchange, GenericFile<File> fileGenericFile) throws
Exception {
+        public void commit(GenericFileOperations<File> fileGenericFileOperations, GenericFileEndpoint<File>
fileGenericFileEndpoint,
+                            Exchange exchange, GenericFile<File> fileGenericFile) throws
Exception {
         }
 
-        public void rollback(GenericFileOperations<File> fileGenericFileOperations,
GenericFileEndpoint<File> fileGenericFileEndpoint, Exchange exchange, GenericFile<File>
fileGenericFile) throws Exception {
+        public void rollback(GenericFileOperations<File> fileGenericFileOperations,
GenericFileEndpoint<File> fileGenericFileEndpoint,
+                            Exchange exchange, GenericFile<File> fileGenericFile) throws
Exception {
         }
 
         public int getInvoked() {

Modified: camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettySuspendWhileInProgressTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettySuspendWhileInProgressTest.java?rev=936604&r1=936603&r2=936604&view=diff
==============================================================================
--- camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettySuspendWhileInProgressTest.java
(original)
+++ camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettySuspendWhileInProgressTest.java
Thu Apr 22 03:40:31 2010
@@ -66,7 +66,7 @@ public class JettySuspendWhileInProgress
         // the 2nd should have a 503 returned as we are shutting down
         try {
             reply2.get(20, TimeUnit.SECONDS);
-           fail("Should throw exception");
+            fail("Should throw exception");
         } catch (Exception e) {
             RuntimeCamelException rce = assertIsInstanceOf(RuntimeCamelException.class, e.getCause());
             HttpOperationFailedException hofe = assertIsInstanceOf(HttpOperationFailedException.class,
rce.getCause());

Modified: camel/trunk/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/DefaultRestletBinding.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/DefaultRestletBinding.java?rev=936604&r1=936603&r2=936604&view=diff
==============================================================================
--- camel/trunk/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/DefaultRestletBinding.java
(original)
+++ camel/trunk/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/DefaultRestletBinding.java
Thu Apr 22 03:40:31 2010
@@ -138,8 +138,7 @@ public class DefaultRestletBinding imple
                         // put the user stuff in the form
                         form.add(entry.getKey(), entry.getValue().toString());   
                     }
-                }
-                else {
+                } else {
                     // For non-form post put all the headers in attributes
                     request.getAttributes().put(entry.getKey(), entry.getValue());
                 }
@@ -158,8 +157,7 @@ public class DefaultRestletBinding imple
         // Only URL Encode for GET and form POST
         if (request.getMethod() == Method.GET || (request.getMethod() == Method.POST &&
mediaType == MediaType.APPLICATION_WWW_FORM)) {
             request.setEntity(form.getWebRepresentation());
-        }
-        else {
+        } else {
             request.setEntity(body, mediaType);
         }
     }

Modified: camel/trunk/components/camel-restlet/src/test/java/org/apache/camel/component/restlet/RestletRouteBuilderTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-restlet/src/test/java/org/apache/camel/component/restlet/RestletRouteBuilderTest.java?rev=936604&r1=936603&r2=936604&view=diff
==============================================================================
--- camel/trunk/components/camel-restlet/src/test/java/org/apache/camel/component/restlet/RestletRouteBuilderTest.java
(original)
+++ camel/trunk/components/camel-restlet/src/test/java/org/apache/camel/component/restlet/RestletRouteBuilderTest.java
Thu Apr 22 03:40:31 2010
@@ -61,7 +61,7 @@ public class RestletRouteBuilderTest ext
                     public void process(Exchange exchange) throws Exception {
                         String body = exchange.getIn().getBody(String.class);
                         if (body.indexOf("{") == -1) {
-                            throw new Exception("Inproperly formatted JSON:  " + body );
+                            throw new Exception("Inproperly formatted JSON:  " + body);
                         }
                         exchange.getOut().setBody(exchange.getIn().getBody());
                     }
@@ -95,7 +95,7 @@ public class RestletRouteBuilderTest ext
 
     @Test
     public void testProducerJSON() throws IOException {
-        String response = (String)template.sendBodyAndHeader( 
+        String response = (String)template.sendBodyAndHeader(
                 "restlet:http://localhost:9080/ordersJSON?restletMethod=post&foo=bar",

                 ExchangePattern.InOut,
                 JSON,
@@ -109,7 +109,7 @@ public class RestletRouteBuilderTest ext
     @Test
     public void testProducerJSONFailure() throws IOException {
         
-        String response = (String)template.sendBody( 
+        String response = (String)template.sendBody(
                 "restlet:http://localhost:9080/ordersJSON?restletMethod=post&foo=bar",

                 ExchangePattern.InOut,
                 "{'JSON'}");



Mime
View raw message