You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by cm...@apache.org on 2012/01/03 23:55:02 UTC

svn commit: r1226977 - /camel/branches/camel-2.7.x/camel-core/src/test/java/org/apache/camel/component/file/FileProduceAppendTest.java

Author: cmueller
Date: Tue Jan  3 22:55:02 2012
New Revision: 1226977

URL: http://svn.apache.org/viewvc?rev=1226977&view=rev
Log:
improve unit test

Modified:
    camel/branches/camel-2.7.x/camel-core/src/test/java/org/apache/camel/component/file/FileProduceAppendTest.java

Modified: camel/branches/camel-2.7.x/camel-core/src/test/java/org/apache/camel/component/file/FileProduceAppendTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.7.x/camel-core/src/test/java/org/apache/camel/component/file/FileProduceAppendTest.java?rev=1226977&r1=1226976&r2=1226977&view=diff
==============================================================================
--- camel/branches/camel-2.7.x/camel-core/src/test/java/org/apache/camel/component/file/FileProduceAppendTest.java (original)
+++ camel/branches/camel-2.7.x/camel-core/src/test/java/org/apache/camel/component/file/FileProduceAppendTest.java Tue Jan  3 22:55:02 2012
@@ -29,6 +29,9 @@ import org.apache.camel.component.mock.M
 public class FileProduceAppendTest extends ContextTestSupport {
 
     public void testAppendText() throws Exception {
+    	// we expect this file with the content 'Hello'
+    	assertFileExists("target/test-file-append/hello.txt");
+    	
         MockEndpoint mock = getMockEndpoint("mock:result");
         mock.expectedMessageCount(1);
         mock.expectedFileExists("target/test-file-append/hello.txt", "Hello World");
@@ -39,6 +42,9 @@ public class FileProduceAppendTest exten
     }
 
     public void testAppendFile() throws Exception {
+    	// we expect this file with the content 'Hello'
+    	assertFileExists("target/test-file-append/hello.txt");
+    	
         MockEndpoint mock = getMockEndpoint("mock:result");
         mock.expectedMessageCount(1);
         mock.expectedFileExists("target/test-file-append/hello.txt", "Hello World");