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 2012/11/09 14:07:40 UTC
svn commit: r1407442 -
/camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/strategy/MarkerFileExclusiveReadLockStrategyReadLockFailedTest.java
Author: ningjiang
Date: Fri Nov 9 13:07:39 2012
New Revision: 1407442
URL: http://svn.apache.org/viewvc?rev=1407442&view=rev
Log:
CAMEL-5776 polish the test
Modified:
camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/strategy/MarkerFileExclusiveReadLockStrategyReadLockFailedTest.java
Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/strategy/MarkerFileExclusiveReadLockStrategyReadLockFailedTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/strategy/MarkerFileExclusiveReadLockStrategyReadLockFailedTest.java?rev=1407442&r1=1407441&r2=1407442&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/strategy/MarkerFileExclusiveReadLockStrategyReadLockFailedTest.java (original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/strategy/MarkerFileExclusiveReadLockStrategyReadLockFailedTest.java Fri Nov 9 13:07:39 2012
@@ -48,7 +48,6 @@ public class MarkerFileExclusiveReadLock
mock.expectedFileExists("target/readlock/out/file1.dat");
writeFiles();
-
assertMockEndpointsSatisfied();
@@ -66,6 +65,13 @@ public class MarkerFileExclusiveReadLock
assertFileDoesNotExists("target/readlock/in/file1.dat");
assertFileExists("target/readlock/in/file2.dat");
+
+ File lock = new File("target/readlock/in/file2.dat.camelLock");
+ lock.delete();
+ // wait for a while for camel to clean up the file
+ Thread.sleep(500);
+ assertFileExists("target/readlock/out/file2.dat");
+
}