Updated Branches:
  refs/heads/master 292544445 -> 956bcbb7c

CAMEL-5828 polish the code of DisruptorUnitOfWorkTest


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

Branch: refs/heads/master
Commit: 956bcbb7c129e69820149116b00ab7452f7ade6a
Parents: 98ae1cc
Author: Willem Jiang <[email protected]>
Authored: Thu May 23 09:33:13 2013 +0800
Committer: Willem Jiang <[email protected]>
Committed: Thu May 23 09:33:56 2013 +0800

----------------------------------------------------------------------
 .../disruptor/DisruptorUnitOfWorkTest.java         |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/956bcbb7/components/camel-disruptor/src/test/java/org/apache/camel/component/disruptor/DisruptorUnitOfWorkTest.java
----------------------------------------------------------------------
diff --git 
a/components/camel-disruptor/src/test/java/org/apache/camel/component/disruptor/DisruptorUnitOfWorkTest.java
 
b/components/camel-disruptor/src/test/java/org/apache/camel/component/disruptor/DisruptorUnitOfWorkTest.java
index 90fdf00..5f9ef7d 100644
--- 
a/components/camel-disruptor/src/test/java/org/apache/camel/component/disruptor/DisruptorUnitOfWorkTest.java
+++ 
b/components/camel-disruptor/src/test/java/org/apache/camel/component/disruptor/DisruptorUnitOfWorkTest.java
@@ -37,15 +37,16 @@ public class DisruptorUnitOfWorkTest extends 
CamelTestSupport {
 
     @Test
     public void testDisruptorUOW() throws Exception {
-        final NotifyBuilder notify = new 
NotifyBuilder(context).from("disruptor:foo").whenDone(1).create();
+        final NotifyBuilder notify = new 
NotifyBuilder(context).whenDone(2).create();
 
         final MockEndpoint mock = getMockEndpoint("mock:result");
         mock.expectedMessageCount(1);
-        notify.create();
+        
         
         template.sendBody("direct:start", "Hello World");
 
         assertMockEndpointsSatisfied();
+        notify.matchesMockWaitTime();
         // need to sleep a while to wait for the calling of onComplete
         Thread.sleep(200);
         

Reply via email to