Repository: camel
Updated Branches:
  refs/heads/master 40ed7b8ae -> 6f5d7af7f


Added an unit test of RabbitMQ endpoint based on the question mailing list


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

Branch: refs/heads/master
Commit: 6f5d7af7f8e6a4d050848edb0298542e6343704e
Parents: 40ed7b8
Author: Willem Jiang <willem.ji...@gmail.com>
Authored: Tue Mar 11 10:25:57 2014 +0800
Committer: Willem Jiang <willem.ji...@gmail.com>
Committed: Tue Mar 11 10:26:39 2014 +0800

----------------------------------------------------------------------
 .../apache/camel/component/rabbitmq/RabbitMQEndpointTest.java  | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/6f5d7af7/components/camel-rabbitmq/src/test/java/org/apache/camel/component/rabbitmq/RabbitMQEndpointTest.java
----------------------------------------------------------------------
diff --git 
a/components/camel-rabbitmq/src/test/java/org/apache/camel/component/rabbitmq/RabbitMQEndpointTest.java
 
b/components/camel-rabbitmq/src/test/java/org/apache/camel/component/rabbitmq/RabbitMQEndpointTest.java
index 74a6134..21c97f2 100644
--- 
a/components/camel-rabbitmq/src/test/java/org/apache/camel/component/rabbitmq/RabbitMQEndpointTest.java
+++ 
b/components/camel-rabbitmq/src/test/java/org/apache/camel/component/rabbitmq/RabbitMQEndpointTest.java
@@ -105,6 +105,12 @@ public class RabbitMQEndpointTest extends CamelTestSupport 
{
         ThreadPoolExecutor executor = 
assertIsInstanceOf(ThreadPoolExecutor.class,  endpoint.createExecutor());
         assertEquals(20, executor.getCorePoolSize());
     }
+    
+    @Test
+    public void createEndpointWithAutoAckDisabled() throws Exception {
+        RabbitMQEndpoint endpoint = 
context.getEndpoint("rabbitmq:localhost/exchange?autoAck=false", 
RabbitMQEndpoint.class);
+        assertEquals(false, endpoint.isAutoAck());
+    }
 
     @Test
     public void assertSingleton() throws Exception {

Reply via email to