I need to mock a RabbitMQ in my unit Test

后端 未结 3 2059
-上瘾入骨i
-上瘾入骨i 2021-02-07 19:17

I am using a RabbitMQ in my project.

I have in my consumer the code of the client part of rabbitMQ and the connection need a tls1.1 to connect with the real MQ.

3条回答
  •  有刺的猬
    2021-02-07 20:15

    I know, it is an old question, still as there is no answer so far. What helped me a lot at the same question, is the following blog post: https://tamasgyorfi.net/2016/04/21/writing-integration-tests-for-rabbitmq-based-components/. It uses Apache QPID (not ActiveMQ as suggested in the OP) and it has support for AMQP 0.9.1.

提交回复
热议问题