camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1143466 - /camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileRecursiveDepthTest.java
Date Wed, 06 Jul 2011 15:33:16 GMT
Author: davsclaus
Date: Wed Jul  6 15:33:16 2011
New Revision: 1143466

URL: http://svn.apache.org/viewvc?rev=1143466&view=rev
Log:
CAMEL-3894: Fixed test writing into target dir only

Modified:
    camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileRecursiveDepthTest.java

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileRecursiveDepthTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileRecursiveDepthTest.java?rev=1143466&r1=1143465&r2=1143466&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileRecursiveDepthTest.java
(original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileRecursiveDepthTest.java
Wed Jul  6 15:33:16 2011
@@ -15,6 +15,7 @@
  * limitations under the License.
  */
 package org.apache.camel.component.file;
+
 import org.apache.camel.ContextTestSupport;
 import org.apache.camel.Exchange;
 import org.apache.camel.builder.RouteBuilder;
@@ -28,7 +29,6 @@ public class FileRecursiveDepthTest exte
         super.setUp();
     }
 
-
     public void testDepth() throws Exception {
         MockEndpoint mock = getMockEndpoint("mock:result");
         mock.expectedBodiesReceivedInAnyOrder("a2", "b2");
@@ -50,12 +50,12 @@ public class FileRecursiveDepthTest exte
 
         mock.expectedBodiesReceivedInAnyOrder("a2", "b2", "a3", "b3");
 
-        template.sendBodyAndHeader("file:target2/depth/2", "a", Exchange.FILE_NAME, "a.txt");
-        template.sendBodyAndHeader("file:target2/depth/2", "b", Exchange.FILE_NAME, "b.txt");
-        template.sendBodyAndHeader("file:target2/depth/2/bar", "b2", Exchange.FILE_NAME,
"b2.txt");
-        template.sendBodyAndHeader("file:target2/depth/2/foo", "a2", Exchange.FILE_NAME,
"a2.txt");
-        template.sendBodyAndHeader("file:target2/depth/2/foo/bar", "a3", Exchange.FILE_NAME,
"a3.txt");
-        template.sendBodyAndHeader("file:target2/depth/2/bar/foo", "b3", Exchange.FILE_NAME,
"b3.txt");
+        template.sendBodyAndHeader("file:target/depth2/2", "a", Exchange.FILE_NAME, "a.txt");
+        template.sendBodyAndHeader("file:target/depth2/2", "b", Exchange.FILE_NAME, "b.txt");
+        template.sendBodyAndHeader("file:target/depth2/2/bar", "b2", Exchange.FILE_NAME,
"b2.txt");
+        template.sendBodyAndHeader("file:target/depth2/2/foo", "a2", Exchange.FILE_NAME,
"a2.txt");
+        template.sendBodyAndHeader("file:target/depth2/2/foo/bar", "a3", Exchange.FILE_NAME,
"a3.txt");
+        template.sendBodyAndHeader("file:target/depth2/2/bar/foo", "b3", Exchange.FILE_NAME,
"b3.txt");
 
         assertMockEndpointsSatisfied();
     }
@@ -85,7 +85,7 @@ public class FileRecursiveDepthTest exte
                     .convertBodyTo(String.class)
                     .to("mock:result");
 
-                from("file:target2/depth/2?recursive=true&minDepth=2&maxDepth=99")
+                from("file:target/depth2/2?recursive=true&minDepth=2&maxDepth=99")
                     .convertBodyTo(String.class)
                     .to("mock:result");
 



Mime
View raw message