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

svn commit: r729258 - /activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/processor/idempotent/FileConsumerIdempotentTest.java

Author: ningjiang
Date: Tue Dec 23 23:06:24 2008
New Revision: 729258

URL: http://svn.apache.org/viewvc?rev=729258&view=rev
Log:
Fixed the test error of FileConsumerIdempotentTest in camel-spring

Modified:
    activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/processor/idempotent/FileConsumerIdempotentTest.java

Modified: activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/processor/idempotent/FileConsumerIdempotentTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/processor/idempotent/FileConsumerIdempotentTest.java?rev=729258&r1=729257&r2=729258&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/processor/idempotent/FileConsumerIdempotentTest.java (original)
+++ activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/processor/idempotent/FileConsumerIdempotentTest.java Tue Dec 23 23:06:24 2008
@@ -69,8 +69,11 @@
 
         // should NOT consume the file again, let 2 secs pass to let the consumer try to consume it but it should not
         assertMockEndpointsSatisfied();
-
-        assertTrue(repo.contains("report.txt"));
+        if (System.getProperty("os.name").startsWith("Windows")) {
+            assertTrue(repo.contains("target\\fileidempotent\\report.txt"));
+        } else {
+            assertTrue(repo.contains("target/fileidempotent/report.txt"));
+        }
     }
 
 }