You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2010/07/14 07:04:16 UTC

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

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