Fixed test

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

Branch: refs/heads/master
Commit: bee0d3b0494da5ff6525439a34ccced831c19a62
Parents: 7c826d3
Author: Claus Ibsen <davscl...@apache.org>
Authored: Sun Feb 7 17:13:17 2016 +0100
Committer: Claus Ibsen <davscl...@apache.org>
Committed: Sun Feb 7 17:13:17 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/bee0d3b0/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());

Reply via email to