camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r963949 - /camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/tx/TransactedAsyncUsingThreadsTest.java
Date Wed, 14 Jul 2010 05:04:16 GMT
Author: davsclaus
Date: Wed Jul 14 05:04:15 2010
New Revision: 963949

URL: http://svn.apache.org/viewvc?rev=963949&view=rev
Log:
Fixed test.

Modified:
    camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/tx/TransactedAsyncUsingThreadsTest.java

Modified: camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/tx/TransactedAsyncUsingThreadsTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/tx/TransactedAsyncUsingThreadsTest.java?rev=963949&r1=963948&r2=963949&view=diff
==============================================================================
--- camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/tx/TransactedAsyncUsingThreadsTest.java
(original)
+++ camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/tx/TransactedAsyncUsingThreadsTest.java
Wed Jul 14 05:04:15 2010
@@ -60,7 +60,8 @@ public class TransactedAsyncUsingThreads
 
         assertMockEndpointsSatisfied();
 
-        assertNotSame("Should use a different thread when doing async routing", thread1,
thread2);
+        // transacted causes Camel to force sync routing
+        assertEquals("Should use a same thread when doing transacted async routing", thread1,
thread2);
     }
 
     @Test
@@ -81,7 +82,8 @@ public class TransactedAsyncUsingThreads
 
         assertMockEndpointsSatisfied();
 
-        assertNotSame("Should use a different thread when doing async routing", thread1,
thread2);
+        // transacted causes Camel to force sync routing
+        assertEquals("Should use a same thread when doing transacted async routing", thread1,
thread2);
     }
 
     @Override



Mime
View raw message