<div dir="ltr">Yes, I want to test message requeing scenario. Here, my target is, let say there are two consumers, "consumer1" received message(ex - "Message1") from queue (ex - "Test_Queue") and consumer failed before acknowledgement to server, so that message is not deleted from rabbitmq server right? That same message ("Message1") has to be consumed by "consumer2" right?<div>
<br></div><div>So, this is the case I want test. Here, I want to stop the "consumer1" before sending ack to rabbitmq server. So, how to achieve this? Thanks</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Thu, Oct 17, 2013 at 6:51 PM, Michael Klishin <span dir="ltr"><<a href="mailto:mklishin@gopivotal.com" target="_blank">mklishin@gopivotal.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 17 Oct 2013, at 17:16, Rajasekhar P <<a href="mailto:sekhar434145@gmail.com">sekhar434145@gmail.com</a>> wrote:<br>
<br>
> Here, I am struck with how to test this case? can you please share me consumer code?<br>
<br>
</div>Can we take a step back and clarify what will the test verify?<br>
<br>
If you want to test that messages are requeued, create a custom consumer that closes its channel<br>
and stops, for example. But this particular aspect is already tested in RabbitMQ server and Java client<br>
suites.<br>
<div class="HOEnZb"><div class="h5"><br>
MK<br>
<br>
<br>
<br>
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</div></div></blockquote></div><br></div>