The generated tests(producer side) failed in Spring Cloud contract and AMQP/RabbitMQ
The generated tests(producer side) failed in Spring Cloud contract and AMQP/RabbitMQ I was trying to use AMQP/RabbitMQ and Spring cloud contract in my microservice projects to define the contract between producers and consumers. I am using the last Spring Boot 2.0.3, and Spring Cloud Contract 2.0.0. I have prepared a sample project to reproduce the problem. In the producer side , I created a base test class: @SpringBootTest(properties = "stubrunner.amqp.enabled=true") @RunWith(SpringRunner.class) @AutoConfigureMessageVerifier public class MessageVerifierBase { @Autowired MessageVerifier verifier; @Autowired Sender sender; public void send() { this.sender.send(Notification.builder().body("test message").build()); } @Before public void setup() { verifier.receive("notification.exchange", 100, TimeUnit.MILLISECONDS); } } The Sender just called RabbitTemplate . Sender RabbitTemplate @Component public clas...
