Spring Boot RabbitMQ 的任何单元和集成测试工具或框架?

Any Unit & Integration Testing tool or Framework for Spring Boot RabbitMQ?

我使用 Spring boot 和 RabbitMQ 开发了一个包含多个生产者和消费者的应用程序。应用程序运行良好,没有任何问题,但我仍然想进行单元测试和集成 testing.I 浏览 google 但运气不好,没有得到可靠的用例来一起测试 Spring boot 和 rabbitMQ。

所以我想知道哪种工具最适合测试 Spring Boot & RabbitMQ(至少提示如何编写测试用例是很重要的)? 我看到了类似的 Whosebug post 但没有得到 solution.Your 帮助,不胜感激。

不确定您在寻找什么,但是 Spring 启动测试框架与经典的 JUnit 和 Mockito 一起足以进行单元测试。

此外,您可以查看 spring-rabbit-test 库,我们有足够有用的测试实用程序:http://docs.spring.io/spring-amqp/docs/1.6.0.RELEASE/reference/html/_reference.html#testing