Code:
RabbitMQListener:
@Component
public class ServerThroughRabbitMQ implements ServerThroughAMQPBroker {
private static final AtomicLong ID_COUNTER
RabbitMQ and Integration Testing can be hard, since Rabbit MQ keeps some kind of state: - messages from previous tests in queues - listeners from previous tests still listening on queues
There are several approaches:
cleanTestQueues()
)