I need to mock a RabbitMQ in my unit Test
问题 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. I want to test this code in my JUnit test and to mock the message delivery to my consumer. I see in google several examples with different tools how camel rabbit or activeMQ but this tools works with amqp 1.0 and rabbitMQ only works in amqp 0.9 . Someone had this problem? Thanks! UPDATE This is the code to testing to receive a json