RabbitMQ的集成测试 [英] Integration tests with RabbitMQ

查看:175
本文介绍了RabbitMQ的集成测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当前,我正在处理某些与RabbitMQ交互的Spring Boot 2.x应用程序. 我想创建一个集成测试来测试整个应用程序.逻辑,包括与Rabbit互动.到目前为止,我需要轻巧的AMQP标准独立实现来使Spring Boot与其配合使用,包括发送&接收消息.我在这里 但它需要RabbitMQ在对我的IT不太有利的地方运行.还有其他成熟的轻量级独立AMQP实现吗?

Currently i'm working on some Spring Boot 2.x application interacting w/ RabbitMQ. I'd like to create an integration test to test the whole app. logic, including interaction w/ Rabbit. So far i need a light-weight stand-alone implementation of AMQP standart to make Spring Boot work w/ it, including sending & receiving messages. I had a look at Qpid sample here but it needs RabbitMQ running somewhere what is not very good for my IT. Are there some another mature light-weight stand-alone AMQP implementations?

首先感谢您的协助.

推荐答案

摘自Gary Russel 评论:

From Gary Russel comment:

当我回答这个问题.我从来没有想过如何启动7.0.x嵌入式代理.我将针对该答案的项目放在我的沙箱中.

I got it working ok with QPID 6.1.6 while answering this question. I never figured out how to launch a 7.0.x embedded broker. I put the project for that answer in my sandbox.

这篇关于RabbitMQ的集成测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆