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 2016/02/07 18:19:26 UTC

[6/6] camel git commit: Fixed test

Fixed test


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

Branch: refs/heads/camel-2.16.x
Commit: 0ea3ce9a170a96785a270369af76b019adae9233
Parents: 59c0b00
Author: Claus Ibsen <da...@apache.org>
Authored: Sun Feb 7 17:13:17 2016 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Sun Feb 7 18:19:13 2016 +0100

----------------------------------------------------------------------
 .../camel/component/file/FileProducerRenameUsingCopyTest.java   | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/0ea3ce9a/camel-core/src/test/java/org/apache/camel/component/file/FileProducerRenameUsingCopyTest.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/file/FileProducerRenameUsingCopyTest.java b/camel-core/src/test/java/org/apache/camel/component/file/FileProducerRenameUsingCopyTest.java
index c5dbfb6..d318014 100644
--- a/camel-core/src/test/java/org/apache/camel/component/file/FileProducerRenameUsingCopyTest.java
+++ b/camel-core/src/test/java/org/apache/camel/component/file/FileProducerRenameUsingCopyTest.java
@@ -33,11 +33,12 @@ public class FileProducerRenameUsingCopyTest extends ContextTestSupport {
 
     public void testMove() throws Exception {
         final String body = "Hello Camel";
-        template.sendBodyAndHeader("file://target/file", body, Exchange.FILE_NAME, "hello.txt");
-
         MockEndpoint mock = getMockEndpoint("mock:result");
         mock.expectedMessageCount(1);
         mock.expectedFileExists("target/file/done/hello.txt", body);
+
+        template.sendBodyAndHeader("file://target/file", body, Exchange.FILE_NAME, "hello.txt");
+
         assertMockEndpointsSatisfied();
 
         assertTrue("File not copied", new File("target/file/done/hello.txt").exists());