You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2013/06/24 12:13:14 UTC

[2/3] git commit: CAMEL-6479: Fixed CS

CAMEL-6479: Fixed CS


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/f1879c76
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/f1879c76
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/f1879c76

Branch: refs/heads/master
Commit: f1879c764c4d53e8267063f00d853b5474a3e183
Parents: 52e1ec7
Author: Claus Ibsen <da...@apache.org>
Authored: Mon Jun 24 12:12:35 2013 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Mon Jun 24 12:12:35 2013 +0200

----------------------------------------------------------------------
 .../file/FileProducerFileExistTryRenameTest.java    | 16 ++++++----------
 1 file changed, 6 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/f1879c76/camel-core/src/test/java/org/apache/camel/component/file/FileProducerFileExistTryRenameTest.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/file/FileProducerFileExistTryRenameTest.java b/camel-core/src/test/java/org/apache/camel/component/file/FileProducerFileExistTryRenameTest.java
index dd72304..be5a9a8 100644
--- a/camel-core/src/test/java/org/apache/camel/component/file/FileProducerFileExistTryRenameTest.java
+++ b/camel-core/src/test/java/org/apache/camel/component/file/FileProducerFileExistTryRenameTest.java
@@ -16,34 +16,30 @@
  */
 package org.apache.camel.component.file;
 
-import java.util.Locale;
-
-import junit.framework.TestResult;
 import org.apache.camel.ContextTestSupport;
 import org.apache.camel.Exchange;
-import org.apache.camel.TestSupport;
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.component.mock.MockEndpoint;
 
 /**
- * @version 
+ * @version
  */
 public class FileProducerFileExistTryRenameTest extends ContextTestSupport {
 
-   @Override
+    @Override
     protected void setUp() throws Exception {
         deleteDirectory("target/file");
         super.setUp();
         template.sendBodyAndHeader("file://target/file", "Hello World", Exchange.FILE_NAME, "hello.txt");
     }
-   
 
-    public void testIgnore() throws Exception {
 
+    public void testIgnore() throws Exception {
         // Does not work on Windows
-        if(TestSupport.isPlatform("windows"))
+        if (isPlatform("windows")) {
             return;
-        
+        }
+
         MockEndpoint mock = getMockEndpoint("mock:result");
         mock.expectedBodiesReceived("Bye World");
         mock.expectedFileExists("target/file/hello.txt", "Bye World");